public abstract class TaskPtDirector extends VisualSequenceDirector
A TaskPtDirector has a shared memory that can be accessed by the actors that this director is controlling. The memory is local to this director (and not accessible for higher level entities).
For more details on this MoC see Torsten Limberg, Bastian Ristau, and Gerhard Fettweis. A Real-Time Programming Model for Heterogeneous MPSoCs, Proc. of SAMOS VIII.red (ristau) |
red (ristau) |
VisualSequenceDirector.SequenceConfigureFactory
NamedObj.ContainedObjectsIterator
icon, scheduleText
_iterationCount, _postfireReturns, _scheduler, _sequencedList, defaultOutputInitialValue, fireUnexecutedActors, iterations, userDefinedDefaultOutputInitialValue, userDefinedOutputInitialValue
_actorsFinishedExecution, _aspectForActor, _aspectsPresent, _defaultMicrostep, _executionAspects, _finishRequested, _initializables, _nextScheduleTime, _stopRequested, _tokenSentToCommunicationAspect, _zeroTime, localClock, startTime, stopTime
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
TaskPtDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_init()
Initialize the shared memory for the actors and set the
iterations for this director to one.
|
protected void |
_setInitialValues()
Set the initial Tokens present on the inputs of the actors.
|
protected boolean |
_transferInputs(IOPort port)
Transfer at most one data token from the given input port of
the container to the ports it is connected to on the inside.
|
protected boolean |
_transferOutputs(IOPort port)
Transfer at most one data token from the given output port of
the container to the ports it is connected to on the outside.
|
Memory |
getMemory()
Get the memory assigned to this director.
|
void |
initialize()
Initialize the model controlled by this director.
|
Receiver |
newReceiver()
Use a QueueReceiver model for this director.
|
boolean |
postfire()
Return false if the system has finished executing.
|
fire, preinitialize
_getInitialValueParameterName, _setScheduler, checkAttributeType, clone, fireSchedule, getContainedEntities, getScheduler, invalidateSchedule, isScheduleValid, setOutputInitialValues, setScheduler, suggestedModalModelDirectors, supportMultirateFiring
_actorFinished, _consultTimeRegulators, _description, _isEmbedded, _isTopLevel, _schedule, addInitializable, attributeChanged, createSchedule, defaultDependency, delayDependency, finish, fireAt, fireAt, fireAt, fireAtCurrentTime, fireContainerAt, fireContainerAt, getCausalityInterface, getCurrentTime, getDeadline, getEnvironmentTime, getErrorTolerance, getExecutionAspect, getGlobalTime, getModelNextIterationTime, getModelStartTime, getModelStopTime, getModelTime, getNextIterationTime, getStartTime, getStopTime, getTimeResolution, implementsStrictActorSemantics, initialize, invalidateResolvedTypes, isEmbedded, isFireFunctional, isStopRequested, isStrict, iterate, mutexLockObject, notifyTokenSentToCommunicationAspect, prefire, preinitialize, removeInitializable, requestInitialization, resume, resumeActor, scheduleContainedActors, setContainer, setCurrentTime, setEmbedded, setModelTime, setTimeResolution, stop, stopFire, suspend, terminate, transferInputs, transferOutputs, transferOutputs, wrapup
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public TaskPtDirector(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Container of the director.name
- Name of this director.IllegalActionException
- If the director is not compatible
with the specified container. May be thrown in a derived class.NameDuplicationException
- If the container is not a
CompositeActor and the name collides with an entity in the container.public Memory getMemory()
public void initialize() throws IllegalActionException
initialize
in interface Initializable
initialize
in class SequencedModelDirector
IllegalActionException
- Thrown if the initialize() method of
one of the associated actors throws it, or if there is no
scheduler.public Receiver newReceiver()
newReceiver
in class SequencedModelDirector
public boolean postfire() throws IllegalActionException
postfire
in interface Executable
postfire
in class SequencedModelDirector
IllegalActionException
- Thrown if the iterations parameter
does not contain a legal value.protected void _init() throws IllegalActionException, NameDuplicationException
_init
in class SequencedModelDirector
IllegalActionException
- Thrown if there is a problem instantiating
the director's parameters.NameDuplicationException
- Thrown if there is a problem instantiating
the director's parameters.protected boolean _transferInputs(IOPort port) throws IllegalActionException
_transferInputs
in class Director
port
- The port to transfer tokens from.IllegalActionException
- Thrown, if the port is not an opaque
input port.IOPort.transferInputs()
protected boolean _transferOutputs(IOPort port) throws IllegalActionException
_transferOutputs
in class Director
port
- The port to transfer tokens from.IllegalActionException
- Thrown, if the port is not an opaque
output port.protected void _setInitialValues() throws IllegalActionException
IllegalActionException
- Thrown if already present tokens cannot be
removed.