public class SDF extends DataflowWithRates
DataflowWithRates.ActionRateSignature
_actions, _actor, _actorInterpreter, _context, _currentStateSet, _currentTransitions, _env, _inputPorts, _lastFiredAction, _outputPorts, _ptActor
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
SDF(TypedAtomicActor ptActor,
caltrop.interpreter.ast.Actor actor,
caltrop.interpreter.Context context,
caltrop.interpreter.environment.Environment env)
Create an new SDF DDI.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of this DDI.
|
boolean |
isLegalActor()
In SDF, an actor is legal if:
The rates of each action are statically computable, and
these rates are the same for each action.
|
void |
setupActor()
Setup the actor associated with this DDI.
|
_allEqual, _annotatePortsWithRates, _atLeastOneUnguardedAction, _checkInitializerGuards, _computeActionRates, _computeActionRates, _isBoundByPortVar
_selectAction, _selectInitializer, fire, initialize, postfire, prefire, preinitialize
addInitializable, isFireFunctional, isStrict, iterate, removeInitializable, stop, stopFire, terminate, wrapup
public SDF(TypedAtomicActor ptActor, caltrop.interpreter.ast.Actor actor, caltrop.interpreter.Context context, caltrop.interpreter.environment.Environment env)
ptActor
- The instance of ptolemy.actor.Actor
that the plugin will be associated with.actor
- The abstract syntax tree of the CAL source.context
- The context that the plugin will use.env
- The environment that the plugin will use.public boolean isLegalActor()
isLegalActor
in interface DDI
isLegalActor
in class Dataflow
public java.lang.String getName()
public void setupActor()
isLegalActor()
is called first.
Setup involves attaching attributes with token consumption/production rates to the input and output ports of the actor associated with this DDI.
setupActor
in interface DDI
setupActor
in class Dataflow