public class DataflowWithRates extends Dataflow
| Red (cxh) |
| Red (cxh) |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataflowWithRates.ActionRateSignature |
_actions, _actor, _actorInterpreter, _context, _currentStateSet, _currentTransitions, _env, _inputPorts, _lastFiredAction, _outputPorts, _ptActorCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
DataflowWithRates(TypedAtomicActor ptActor,
caltrop.interpreter.ast.Actor actor,
caltrop.interpreter.Context context,
caltrop.interpreter.environment.Environment env)
Create an new DataflowWithRates DDI.
|
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
_allEqual(java.lang.Object[] objs) |
protected void |
_annotatePortsWithRates(java.util.List ports,
java.util.Map rateMap,
java.lang.String varName)
Annotate the given list of TypedIOPorts with rate parameters
according to the given map.
|
protected boolean |
_atLeastOneUnguardedAction() |
protected boolean |
_checkInitializerGuards() |
protected DataflowWithRates.ActionRateSignature |
_computeActionRates(caltrop.interpreter.ast.Action action) |
protected DataflowWithRates.ActionRateSignature[] |
_computeActionRates(caltrop.interpreter.ast.Action[] actions) |
protected static boolean |
_isBoundByPortVar(java.lang.String name,
caltrop.interpreter.ast.Action action) |
_selectAction, _selectInitializer, fire, getName, initialize, isLegalActor, postfire, prefire, preinitialize, setupActoraddInitializable, isFireFunctional, isStrict, iterate, removeInitializable, stop, stopFire, terminate, wrapuppublic DataflowWithRates(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.protected void _annotatePortsWithRates(java.util.List ports,
java.util.Map rateMap,
java.lang.String varName)
protected boolean _atLeastOneUnguardedAction()
protected boolean _checkInitializerGuards()
protected DataflowWithRates.ActionRateSignature[] _computeActionRates(caltrop.interpreter.ast.Action[] actions) throws java.lang.Exception
java.lang.Exceptionprotected DataflowWithRates.ActionRateSignature _computeActionRates(caltrop.interpreter.ast.Action action) throws java.lang.Exception
java.lang.Exceptionprotected static boolean _isBoundByPortVar(java.lang.String name,
caltrop.interpreter.ast.Action action)
protected static boolean _allEqual(java.lang.Object[] objs)