cz.cuni.pogamut.shed.widget
Class LapSceneFactory

Package class diagram package LapSceneFactory
java.lang.Object
  extended by cz.cuni.pogamut.shed.widget.LapSceneFactory

public class LapSceneFactory
extends Object

Factory for creating different scenes of YAPOSH tree. There should be two of them, first is scene modifiable for Shed editor and second nonmodifiable should be for Dash debugger.

Author:
Honza

Constructor Summary
LapSceneFactory()
           
 
Method Summary
static ShedScene createDashScene(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan, ShedScene scene, IPresenterFactory presenterFactory)
          Create scene that will show the expanded tree of the @plan.
static ShedScene createShedScene(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Create scene for editor Shed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LapSceneFactory

public LapSceneFactory()
Method Detail

createShedScene

public static ShedScene createShedScene(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Create scene for editor Shed.

Parameters:
plan - Empty plan object that will be visualized in the scene. Must be empty (no goals of DC and no drives).
Returns:
Created empty scene.

createDashScene

public static ShedScene createDashScene(cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan,
                                        ShedScene scene,
                                        IPresenterFactory presenterFactory)
Create scene that will show the expanded tree of the @plan. This scene is not for editing, but for observing.

Parameters:
plan - Plan that will be displayed in the scene.
scene - Empty scene.
presenterFactory - Presenter factory used for creation of tree in the scene.
Returns:
same scene as was passed in parameter @scene, but filled with displayed tree.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.