cz.cuni.amis.dash
Class DashPresenterFactory

Package class diagram package DashPresenterFactory
java.lang.Object
  extended by cz.cuni.amis.dash.DashPresenterFactory
All Implemented Interfaces:
cz.cuni.pogamut.shed.presenter.IPresenterFactory

public class DashPresenterFactory
extends Object
implements cz.cuni.pogamut.shed.presenter.IPresenterFactory

Presenter factory for Dash. This factory creates presenters for widgets in the Dash, presents are desponsible for highlighting the widgets evaluiated by the engine. The presenters created by this factory don't reflect changes of underlying structures, so plan can't be changed (the displayed plan in the scene would be out of sync). Presenters for action and sense also have context menu with possiblity of adding breakpoint or go to source of primitive. Other elements have quite simple presenter that only updates intensity, when notified that YaposhEngine evaluated its node.

Author:
Honza

Constructor Summary
DashPresenterFactory(YaposhEngine engine, EngineData engineData, cz.cuni.pogamut.shed.widget.ShedScene scene, cz.cuni.pogamut.shed.presenter.ShedPresenter presenter)
          Create new presenter factory.
 
Method Summary
 cz.cuni.pogamut.shed.presenter.IPresenter createActionPatternPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPatternPath, cz.cuni.amis.pogamut.sposh.elements.TriggeredAction referencingAction, cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern, cz.cuni.pogamut.shed.widget.ShedVariableWidget actionPatternWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createActionPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPath, cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action, cz.cuni.pogamut.shed.widget.ShedVariableWidget actionWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain actionChain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createActionsPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPatternPath, cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern, cz.cuni.pogamut.shed.widget.ShedActionsEnvelope actionsEnvelope, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createCompetencePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath, cz.cuni.amis.pogamut.sposh.elements.TriggeredAction referencingAction, cz.cuni.amis.pogamut.sposh.elements.Competence competence, cz.cuni.pogamut.shed.widget.ShedVariableWidget competenceWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createDriveCollectionPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath driveCollectionPath, cz.cuni.amis.pogamut.sposh.elements.DriveCollection driveCollection)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createDrivePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath drivePath, cz.cuni.amis.pogamut.sposh.elements.DriveElement drive, cz.cuni.pogamut.shed.widget.ShedVariableWidget widget)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createExpandedActionPresenter(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action, cz.cuni.pogamut.shed.widget.ExpandedActionEnvelope envelope, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createChoicePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath, cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice, cz.cuni.pogamut.shed.widget.ShedVariableWidget choiceWidget)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createChoicesPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath, cz.cuni.amis.pogamut.sposh.elements.Competence competence, cz.cuni.pogamut.shed.widget.ShedChoicesEnvelope choicesEnvelope, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 cz.cuni.pogamut.shed.presenter.IPresenter createSensePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath sensePath, cz.cuni.amis.pogamut.sposh.elements.Sense sense, cz.cuni.pogamut.shed.widget.ShedSenseWidget senseWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain senseChain)
           
<TRIGGER_PARENT extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>
cz.cuni.pogamut.shed.presenter.IPresenter
createTriggerPresenter(TRIGGER_PARENT parent, cz.cuni.amis.pogamut.sposh.elements.Trigger<TRIGGER_PARENT> trigger, cz.cuni.pogamut.shed.widget.ShedTriggerEnvelope triggerEnvelope, cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashPresenterFactory

public DashPresenterFactory(YaposhEngine engine,
                            EngineData engineData,
                            cz.cuni.pogamut.shed.widget.ShedScene scene,
                            cz.cuni.pogamut.shed.presenter.ShedPresenter presenter)
Create new presenter factory.

Parameters:
engine - Engine presenter will listen on to determine, if his widget should be highlighted.
engineData - Data from execution of @engine from the past. Not currently used.
scene - Scene where are the presented widgets.
presenter - Presenter providing name mapping so we can display names from PrimitiveInfo annotation.
Method Detail

createActionPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createActionPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPath,
                                                                       cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action,
                                                                       cz.cuni.pogamut.shed.widget.ShedVariableWidget actionWidget,
                                                                       cz.cuni.amis.pogamut.sposh.elements.LapChain actionChain)
Specified by:
createActionPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createExpandedActionPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createExpandedActionPresenter(cz.cuni.amis.pogamut.sposh.elements.TriggeredAction action,
                                                                               cz.cuni.pogamut.shed.widget.ExpandedActionEnvelope envelope,
                                                                               cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createExpandedActionPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createSensePresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createSensePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath sensePath,
                                                                      cz.cuni.amis.pogamut.sposh.elements.Sense sense,
                                                                      cz.cuni.pogamut.shed.widget.ShedSenseWidget senseWidget,
                                                                      cz.cuni.amis.pogamut.sposh.elements.LapChain senseChain)
Specified by:
createSensePresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createTriggerPresenter

public <TRIGGER_PARENT extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> cz.cuni.pogamut.shed.presenter.IPresenter createTriggerPresenter(TRIGGER_PARENT parent,
                                                                                                                                                 cz.cuni.amis.pogamut.sposh.elements.Trigger<TRIGGER_PARENT> trigger,
                                                                                                                                                 cz.cuni.pogamut.shed.widget.ShedTriggerEnvelope triggerEnvelope,
                                                                                                                                                 cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createTriggerPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createDriveCollectionPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createDriveCollectionPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath driveCollectionPath,
                                                                                cz.cuni.amis.pogamut.sposh.elements.DriveCollection driveCollection)
Specified by:
createDriveCollectionPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createActionPatternPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createActionPatternPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPatternPath,
                                                                              cz.cuni.amis.pogamut.sposh.elements.TriggeredAction referencingAction,
                                                                              cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
                                                                              cz.cuni.pogamut.shed.widget.ShedVariableWidget actionPatternWidget,
                                                                              cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createActionPatternPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createCompetencePresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createCompetencePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath,
                                                                           cz.cuni.amis.pogamut.sposh.elements.TriggeredAction referencingAction,
                                                                           cz.cuni.amis.pogamut.sposh.elements.Competence competence,
                                                                           cz.cuni.pogamut.shed.widget.ShedVariableWidget competenceWidget,
                                                                           cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createCompetencePresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createChoicePresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createChoicePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath,
                                                                       cz.cuni.amis.pogamut.sposh.elements.CompetenceElement choice,
                                                                       cz.cuni.pogamut.shed.widget.ShedVariableWidget choiceWidget)
Specified by:
createChoicePresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createDrivePresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createDrivePresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath drivePath,
                                                                      cz.cuni.amis.pogamut.sposh.elements.DriveElement drive,
                                                                      cz.cuni.pogamut.shed.widget.ShedVariableWidget widget)
Specified by:
createDrivePresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createActionsPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createActionsPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath actionPatternPath,
                                                                        cz.cuni.amis.pogamut.sposh.elements.ActionPattern actionPattern,
                                                                        cz.cuni.pogamut.shed.widget.ShedActionsEnvelope actionsEnvelope,
                                                                        cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createActionsPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory

createChoicesPresenter

public cz.cuni.pogamut.shed.presenter.IPresenter createChoicesPresenter(cz.cuni.amis.pogamut.sposh.elements.LapPath competencePath,
                                                                        cz.cuni.amis.pogamut.sposh.elements.Competence competence,
                                                                        cz.cuni.pogamut.shed.widget.ShedChoicesEnvelope choicesEnvelope,
                                                                        cz.cuni.amis.pogamut.sposh.elements.LapChain chain)
Specified by:
createChoicesPresenter in interface cz.cuni.pogamut.shed.presenter.IPresenterFactory


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