public class SDF extends DataflowWithRates
| Red (cxh) |
| Red (cxh) |
DataflowWithRates.ActionRateSignature_actions, _actor, _actorInterpreter, _context, _currentStateSet, _currentTransitions, _env, _inputPorts, _lastFiredAction, _outputPorts, _ptActorCOMPLETED, 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, preinitializeaddInitializable, isFireFunctional, isStrict, iterate, removeInitializable, stop, stopFire, terminate, wrapuppublic 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 DDIisLegalActor in class Dataflowpublic 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 DDIsetupActor in class Dataflow