|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.caltrop.ddi.AbstractDDI
ptolemy.caltrop.ddi.Dataflow
| Red (cxh) |
| Red (cxh) |
| Field Summary |
| Fields inherited from interface ptolemy.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
| Constructor Summary | |
Dataflow(CalInterpreter ptActor,
caltrop.interpreter.ast.Actor actor,
caltrop.interpreter.Context context,
caltrop.interpreter.environment.Environment env)
|
|
| Method Summary | |
void |
fire()
Executes the selected action on the first fire() call. |
java.lang.String |
getName()
Get the name of the domain that this DDI implements. |
void |
initialize()
Begin execution of the actor. |
boolean |
isLegalActor()
Perform static checking on the actor, ensuring its validity in a given domain. |
boolean |
postfire()
This method should be invoked once per iteration, after the last invocation of fire() in that iteration. |
boolean |
prefire()
Select a firable action among the actions of the actor, if possible. |
void |
preinitialize()
This method should be invoked exactly once per execution of a model, before any of these other methods are invoked. |
void |
setupActor()
Perform any domain dependent setup. |
| Methods inherited from class ptolemy.caltrop.ddi.AbstractDDI |
iterate, stop, stopFire, terminate, wrapup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ptolemy.actor.Executable |
iterate, stop, stopFire, terminate, wrapup |
| Constructor Detail |
public Dataflow(CalInterpreter ptActor,
caltrop.interpreter.ast.Actor actor,
caltrop.interpreter.Context context,
caltrop.interpreter.environment.Environment env)
| Method Detail |
public boolean isLegalActor()
DDI
isLegalActor in interface DDIpublic void setupActor()
DDI
setupActor in interface DDIpublic java.lang.String getName()
DDI
getName in interface DDI
public void fire()
throws IllegalActionException
fire() call. On successive calls, it rolls back previous state
changes, selects a new action and executes it.
Note: Is this correct behavior? What is the contract between the result of prefire() and successive calls to fire()?
fire in interface ExecutableIllegalActionException - If an error occurs during the
interpretation of the action.
public void initialize()
throws IllegalActionException
Executable
initialize in interface ExecutableIllegalActionException - If execution is not permitted.
public boolean postfire()
throws IllegalActionException
Executable
postfire in interface ExecutableIllegalActionException - If postfiring is not permitted.
public boolean prefire()
throws IllegalActionException
prefire in interface ExecutableIllegalActionException - If an error occurred during the
action selection.
public void preinitialize()
throws IllegalActionException
Executable
preinitialize in interface ExecutableIllegalActionException - If initializing is not permitted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||