public class DDPDirector extends Director
NOTE: Only DDP pattern and I/O actors may be present in the workflow. Other actors must placed inside the composite pattern actors or in a different sub-workflow.
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
StringParameter |
configDir
DDP engine configuration directory.
|
static IntToken |
DEFAULT_INTTOKEN
The value used to signify the default degree of parallelism for
the degreeOfParallelism parameter.
|
static java.lang.String |
DEFAULT_NAME
The name of the DEFAULT degree of parallelism parameter.
|
Parameter |
degreeOfParallelism
The default degree of parallelism for ddp pattern actors.
|
StringParameter |
displayRedirectDir
The directory where the display related actors in DDP pattern sub-workflows will save their outputs.
|
static java.lang.String |
DISTRIBUTED_STRING
String for serverType parameter for running DDP Engine in a distributed environment.
|
StringParameter |
engine
The execution engine.
|
StringParameter |
includeJars
A comma-separated list of jar files to include.
|
StringParameter |
jobArguments
A comma-separated list of arguments for the job.
|
static java.lang.String |
SAME_JVM_STRING
String for serverType parameter for running DDP Engine in the same JVM.
|
StringParameter |
startServerType
The type of DDP server to start (if one is not running).
|
Parameter |
writeSubWorkflowsToFiles
If true, sub-workflows are written to files in a directory.
|
_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 |
---|
DDPDirector(CompositeEntity container,
java.lang.String name)
Construct a new DDPBaseDirector in a container with a given name.
|
DDPDirector(Workspace workspace)
Construct a new DDPBaseDirector for a workspace.
|
Modifier and Type | Method and Description |
---|---|
void |
attributeChanged(Attribute attribute)
React to a change in an attribute.
|
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace.
|
void |
fire()
Run the engine.
|
java.lang.String |
getDisplayRedirectDir()
Get the dir to redirect display related actors.
|
java.lang.String |
getEngineName()
Get the name of the DDP engine.
|
boolean |
postfire()
Postfire the engine.
|
void |
preinitialize()
Preinitialize the engine.
|
void |
stop()
Stop any running DDP jobs.
|
void |
wrapup()
Perform any cleanup in the engine.
|
_actorFinished, _consultTimeRegulators, _description, _isEmbedded, _isTopLevel, _schedule, _transferInputs, _transferOutputs, addInitializable, 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, initialize, invalidateResolvedTypes, invalidateSchedule, isEmbedded, isFireFunctional, isStopRequested, isStrict, iterate, mutexLockObject, newReceiver, notifyTokenSentToCommunicationAspect, prefire, preinitialize, removeInitializable, requestInitialization, resume, resumeActor, scheduleContainedActors, setContainer, setCurrentTime, setEmbedded, setModelTime, setTimeResolution, stopFire, suggestedModalModelDirectors, supportMultirateFiring, suspend, terminate, transferInputs, transferOutputs, transferOutputs
_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 StringParameter configDir
public Parameter degreeOfParallelism
public StringParameter includeJars
public StringParameter jobArguments
public StringParameter displayRedirectDir
public Parameter writeSubWorkflowsToFiles
public StringParameter engine
public StringParameter startServerType
public static final java.lang.String SAME_JVM_STRING
public static final java.lang.String DISTRIBUTED_STRING
public static final IntToken DEFAULT_INTTOKEN
public static final java.lang.String DEFAULT_NAME
public DDPDirector(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public DDPDirector(Workspace workspace) throws IllegalActionException, NameDuplicationException
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class Director
attribute
- The attribute that changed.IllegalActionException
- If timeResolution is
being changed and the model is executing (and not in
preinitialize()).public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class Director
workspace
- The workspace for the cloned object.java.lang.CloneNotSupportedException
- Not thrown in this base classNamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public void fire() throws IllegalActionException
fire
in interface Executable
fire
in class Director
IllegalActionException
- If any called method of one
of the associated actors throws it.public java.lang.String getDisplayRedirectDir() throws IllegalActionException
IllegalActionException
public java.lang.String getEngineName() throws IllegalActionException
IllegalActionException
public boolean postfire() throws IllegalActionException
postfire
in interface Executable
postfire
in class Director
IllegalActionException
- Not thrown in this base class.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class Director
IllegalActionException
- If the preinitialize() method of
one of the associated actors throws it.public void stop()
stop
in interface Executable
stop
in class Director
public void wrapup() throws IllegalActionException
wrapup
in interface Initializable
wrapup
in class Director
IllegalActionException
- If the wrapup() method of
one of the associated actors throws it.