cz.cuni.amis.dash
Class DashPrimitivePresenter<PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.IReferenceElement>

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

public abstract class DashPrimitivePresenter<PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.IReferenceElement>
extends cz.cuni.pogamut.shed.presenter.PrimitivePresenter<PRIMITIVE_TYPE>
implements IDebugEngineListener

Presenter used in Dash for actions and sense.

Author:
Honza

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
DashPrimitivePresenter(IDebugEngine engine, cz.cuni.amis.pogamut.sposh.elements.LapPath primitivePath, cz.cuni.pogamut.shed.widget.ShedScene scene, cz.cuni.pogamut.shed.presenter.ShedPresenter presenter, PRIMITIVE_TYPE primitive, cz.cuni.pogamut.shed.widget.ShedVariableWidget primitiveWidget, cz.cuni.amis.pogamut.sposh.elements.LapChain primitiveChain)
           
 
Method Summary
 void breakpointAdded(LapBreakpoint bp)
           
 void breakpointRemoved(LapBreakpoint bp)
           
 void connected()
          This method is called when debugger has successfully connected to the engine.
 void disconnected(String message, boolean error)
          When debugger crashes or user asks to be disconnected, it will sooner or later cause this.
 void evaluationFinished()
          Every time the debugger finished the evaluation, listeners are notified
 void evaluationReached()
          Every time the debugger reaches this stage, it calls this method.
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)
           
 cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction[] getAcceptProviders()
           
 org.netbeans.api.visual.action.WidgetAction getEditAction()
           
 Action[] getMenuActions()
           
protected
<T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement>
int
getPosition(List<T> arg0, T arg1)
           
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)
           
 void pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
          Notify about path that is about to be fired.
 void planRecieved(String name, cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
          Called when plan was recieved.
 void propertyChange(PropertyChangeEvent evt)
           
 void register()
           
 void unregister()
           
 
Methods inherited from class cz.cuni.pogamut.shed.presenter.PrimitivePresenter
getTitleText, 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

DashPrimitivePresenter

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

register

public void register()
Specified by:
register in interface cz.cuni.pogamut.shed.presenter.IPresenter
Overrides:
register in class cz.cuni.pogamut.shed.presenter.PrimitivePresenter<PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.IReferenceElement>

unregister

public void unregister()
Specified by:
unregister in interface cz.cuni.pogamut.shed.presenter.IPresenter
Overrides:
unregister in class cz.cuni.pogamut.shed.presenter.PrimitivePresenter<PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.IReferenceElement>

getMenuActions

public Action[] getMenuActions()
Specified by:
getMenuActions in interface cz.cuni.pogamut.shed.presenter.IPresenter

getAcceptProviders

public cz.cuni.pogamut.posh.widget.accept.AbstractAcceptAction[] getAcceptProviders()
Specified by:
getAcceptProviders in interface cz.cuni.pogamut.shed.presenter.IPresenter
Overrides:
getAcceptProviders in class cz.cuni.pogamut.shed.presenter.PrimitivePresenter<PRIMITIVE_TYPE extends cz.cuni.amis.pogamut.sposh.elements.PoshElement & cz.cuni.amis.pogamut.sposh.elements.IReferenceElement>

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

getEditAction

public org.netbeans.api.visual.action.WidgetAction getEditAction()
Specified by:
getEditAction in interface cz.cuni.pogamut.shed.presenter.IPresenter

connected

public void connected()
Description copied from interface: IDebugEngineListener
This method is called when debugger has successfully connected to the engine.

Specified by:
connected in interface IDebugEngineListener

planRecieved

public void planRecieved(String name,
                         cz.cuni.amis.pogamut.sposh.elements.PoshPlan plan)
Description copied from interface: IDebugEngineListener
Called when plan was recieved.

Specified by:
planRecieved in interface IDebugEngineListener
Parameters:
name - name used to identify the instance of the engine that is running this plan
plan - String representation of plan (e.g. POSH or Shade)

evaluationReached

public void evaluationReached()
Description copied from interface: IDebugEngineListener
Every time the debugger reaches this stage, it calls this method.

Specified by:
evaluationReached in interface IDebugEngineListener

pathReached

public void pathReached(cz.cuni.amis.pogamut.sposh.elements.LapPath path)
Description copied from interface: IDebugEngineListener
Notify about path that is about to be fired.

Specified by:
pathReached in interface IDebugEngineListener

evaluationFinished

public void evaluationFinished()
Description copied from interface: IDebugEngineListener
Every time the debugger finished the evaluation, listeners are notified

Specified by:
evaluationFinished in interface IDebugEngineListener

breakpointAdded

public void breakpointAdded(LapBreakpoint bp)
Specified by:
breakpointAdded in interface IDebugEngineListener

breakpointRemoved

public void breakpointRemoved(LapBreakpoint bp)
Specified by:
breakpointRemoved in interface IDebugEngineListener

disconnected

public void disconnected(String message,
                         boolean error)
Description copied from interface: IDebugEngineListener
When debugger crashes or user asks to be disconnected, it will sooner or later cause this.

Specified by:
disconnected in interface IDebugEngineListener
Parameters:
message - Optional message to display the user.
error - Was debugger disconnected because of an error or was it OK.

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.