cz.cuni.amis.dash
Class DashActionPresenter

Package class diagram package DashActionPresenter
java.lang.Object
  extended by cz.cuni.pogamut.shed.presenter.PrimitivePresenter<PRIMITIVE_TYPE>
      extended by cz.cuni.amis.dash.DashPrimitivePresenter<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>
          extended by cz.cuni.amis.dash.DashActionPresenter
All Implemented Interfaces:
IDebugEngineListener, cz.cuni.amis.pogamut.sposh.elements.ILapChainListener, cz.cuni.amis.pogamut.sposh.elements.PoshElementListener<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>, cz.cuni.pogamut.shed.presenter.IPresenter, PropertyChangeListener, EventListener

public class DashActionPresenter
extends DashPrimitivePresenter<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>

Presenter used by Dash to present TriggeredAction.

Author:
Honza
See Also:
Presenter with functionality common to {@link TriggeredAction} and {@link Sense}.

Field Summary
protected  cz.cuni.pogamut.shed.presenter.ShedPresenter presenter
           
protected  cz.cuni.pogamut.shed.widget.ShedScene scene
           
 
Fields inherited from class cz.cuni.pogamut.shed.presenter.PrimitivePresenter
primitive, primitiveChain, primitiveWidget
 
Constructor Summary
DashActionPresenter(IDebugEngine engine, cz.cuni.amis.pogamut.sposh.elements.LapPath primitivePath, cz.cuni.pogamut.shed.widget.ShedScene scene, cz.cuni.pogamut.shed.presenter.ShedPresenter presenter, cz.cuni.amis.pogamut.sposh.elements.TriggeredAction primitive, cz.cuni.pogamut.shed.widget.ShedVariableWidget primitiveWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain primitiveChain)
           
 
Method Summary
protected  cz.cuni.amis.pogamut.sposh.elements.TriggeredAction extractAction(List<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected  cz.cuni.amis.pogamut.sposh.elements.ActionPattern extractActionPattern(List<cz.cuni.amis.pogamut.sposh.elements.ActionPattern> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected  cz.cuni.amis.pogamut.sposh.elements.Competence extractCompetence(List<cz.cuni.amis.pogamut.sposh.elements.Competence> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected  cz.cuni.amis.pogamut.sposh.elements.DriveElement extractDrive(List<cz.cuni.amis.pogamut.sposh.elements.DriveElement> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected  cz.cuni.amis.pogamut.sposh.elements.CompetenceElement extractChoice(List<cz.cuni.amis.pogamut.sposh.elements.CompetenceElement> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected  cz.cuni.amis.pogamut.sposh.elements.Sense extractSense(cz.cuni.amis.pogamut.sposh.elements.Trigger<?> arg0, cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)
           
protected
<T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>
int
getPosition(List<T> arg0, T arg1)
           
protected  String getTitleText()
          Get title text to be displayed in ther widget.
protected  boolean isAction(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
protected  boolean isActionPattern(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
protected  boolean isCompetence(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
protected  boolean isDrive(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
protected  boolean isChoice(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
protected  boolean isSense(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)
           
 
Methods inherited from class cz.cuni.amis.dash.DashPrimitivePresenter
breakpointAdded, breakpointRemoved, connected, disconnected, evaluationFinished, evaluationReached, getAcceptProviders, getEditAction, getMenuActions, pathReached, planRecieved, propertyChange, register, unregister
 
Methods inherited from class cz.cuni.pogamut.shed.presenter.PrimitivePresenter
childElementAdded, childElementMoved, childElementRemoved, nameMapChanged, notifyLinkChanged, updateWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scene

protected final cz.cuni.pogamut.shed.widget.ShedScene scene

presenter

protected final cz.cuni.pogamut.shed.presenter.ShedPresenter presenter
Constructor Detail

DashActionPresenter

public DashActionPresenter(IDebugEngine engine,
                           cz.cuni.amis.pogamut.sposh.elements.LapPath primitivePath,
                           cz.cuni.pogamut.shed.widget.ShedScene scene,
                           cz.cuni.pogamut.shed.presenter.ShedPresenter presenter,
                           cz.cuni.amis.pogamut.sposh.elements.TriggeredAction primitive,
                           cz.cuni.pogamut.shed.widget.ShedVariableWidget primitiveWidget,
                           cz.cuni.amis.pogamut.sposh.elements.LapChain primitiveChain)
Method Detail

getTitleText

protected String getTitleText()
Get title text to be displayed in ther widget. It uses mapped name, i.e. it takes information from PrimitiveInfo of the presented TriggeredAction.

Specified by:
getTitleText in class cz.cuni.pogamut.shed.presenter.PrimitivePresenter<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction>
Returns:
Mapped name, if exists, FQN otherwise

isSense

protected final boolean isSense(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractSense

protected final cz.cuni.amis.pogamut.sposh.elements.Sense extractSense(cz.cuni.amis.pogamut.sposh.elements.Trigger<?> arg0,
                                                                       cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

isAction

protected final boolean isAction(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractAction

protected final cz.cuni.amis.pogamut.sposh.elements.TriggeredAction extractAction(List<cz.cuni.amis.pogamut.sposh.elements.TriggeredAction> arg0,
                                                                                  cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

isDrive

protected final boolean isDrive(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractDrive

protected final cz.cuni.amis.pogamut.sposh.elements.DriveElement extractDrive(List<cz.cuni.amis.pogamut.sposh.elements.DriveElement> arg0,
                                                                              cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

isChoice

protected final boolean isChoice(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractChoice

protected final cz.cuni.amis.pogamut.sposh.elements.CompetenceElement extractChoice(List<cz.cuni.amis.pogamut.sposh.elements.CompetenceElement> arg0,
                                                                                    cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

isActionPattern

protected final boolean isActionPattern(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractActionPattern

protected final cz.cuni.amis.pogamut.sposh.elements.ActionPattern extractActionPattern(List<cz.cuni.amis.pogamut.sposh.elements.ActionPattern> arg0,
                                                                                       cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

isCompetence

protected final boolean isCompetence(cz.cuni.amis.pogamut.sposh.elements.PoshElement arg0)

extractCompetence

protected final cz.cuni.amis.pogamut.sposh.elements.Competence extractCompetence(List<cz.cuni.amis.pogamut.sposh.elements.Competence> arg0,
                                                                                 cz.cuni.amis.pogamut.sposh.elements.PoshElement arg1)

getPosition

protected final <T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> int getPosition(List<T> arg0,
                                                                                            T arg1)


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