public class ProcessDirector extends SequencedModelDirector
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected MultiHashMap |
_processSeqMap
The hashMap for Process and corresponding sequence numbers.
|
Parameter |
defaultProcessExecutionArray
Parameter that contains the default list of processes to run.
|
_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 |
---|
ProcessDirector()
Construct a director in the default workspace with an empty string
as its name.
|
ProcessDirector(CompositeEntity container,
java.lang.String name)
Construct a director in the given container with the given name.
|
ProcessDirector(Workspace workspace)
Construct a director in the workspace with an empty name.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
_getDefaultProcessExecutionArray()
Return the default process execution array specified by the defaultProcessExecutionArray
parameter.
|
protected void |
_init()
Initialize the object.
|
void |
clearProcessExecutionArray()
Clear the process execution array so that the default process
execution will run.
|
void |
fire()
Get a firingIterator for each process and execute the model.
|
void |
preinitialize()
Preinitialize the actors associated with this director and
compute the schedule.
|
void |
setProcessExecutionArray(java.lang.String[] processArray)
Set the process execution order by providing an array of
process names.
|
_getInitialValueParameterName, _setScheduler, checkAttributeType, clone, fireSchedule, getContainedEntities, getScheduler, initialize, invalidateSchedule, isScheduleValid, newReceiver, postfire, setOutputInitialValues, setScheduler, suggestedModalModelDirectors, supportMultirateFiring
_actorFinished, _consultTimeRegulators, _description, _isEmbedded, _isTopLevel, _schedule, _transferInputs, _transferOutputs, addInitializable, attributeChanged, createSchedule, defaultDependency, delayDependency, elapsedTimeSinceStart, finish, fireAt, fireAt, fireAt, fireAtCurrentTime, fireContainerAt, fireContainerAt, getCausalityInterface, getCurrentTime, getDeadline, getEnvironmentTime, 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 Parameter defaultProcessExecutionArray
protected MultiHashMap _processSeqMap
public ProcessDirector() throws IllegalActionException, NameDuplicationException
IllegalActionException
- If the name has a period in it, or
the director is not compatible with the specified container.NameDuplicationException
- If the container already contains
an entity with the specified name.public ProcessDirector(Workspace workspace) throws IllegalActionException, NameDuplicationException
workspace
- The workspace for this object.IllegalActionException
- If the name has a period in it, or
the director is not compatible with the specified container.NameDuplicationException
- If the container already contains
an entity with the specified name.public ProcessDirector(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 void clearProcessExecutionArray()
public void fire() throws IllegalActionException
This method may be overridden by some domains to perform additional domain-specific operations.
fire
in interface Executable
fire
in class Director
IllegalActionException
- If any actor executed by this
actor return false in prefire.InvalidStateException
- If this director does not have a
container.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class SequencedModelDirector
IllegalActionException
- If the preinitialize() method of
one of the associated actors throws it.public void setProcessExecutionArray(java.lang.String[] processArray)
processArray
- The array of process names to be executed in
the order they are specified in the array.protected void _init() throws IllegalActionException, NameDuplicationException
_init
in class SequencedModelDirector
IllegalActionException
- If there is a problem instantiating
the director's parameters.NameDuplicationException
- If there is a problem instantiating
the director's parameters.protected java.lang.String[] _getDefaultProcessExecutionArray() throws IllegalActionException
IllegalActionException
- If there is a problem getting the array token from the parameter.