Package adams.flow.control
Class SubProcess.SubProcessDirector
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.control.AbstractDirector
-
- adams.flow.control.SequentialDirector
-
- adams.flow.control.SubProcess.SubProcessDirector
-
- All Implemented Interfaces:
CleanUpHandler,LoggingSupporter,SizeOfHandler,Stoppable,StoppableWithFeedback,FlowPauseStateListener,Serializable
- Enclosing class:
- SubProcess
public static class SubProcess.SubProcessDirector extends SequentialDirector
A specialized director for the SubProcess actor.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.flow.control.SequentialDirector
m_Executed, m_FinalOutput, m_Finished
-
Fields inherited from class adams.flow.control.AbstractDirector
m_ControlActor, m_Flushing, m_LoggingPrefix, m_Paused, m_Stopped, m_Stopping
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SubProcessDirector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdoExecuteActors(Actor startActor)Peforms the execution of the actors.protected booleanisFinalOutputRecorded()Returns whether the final output of actors is recorded.voidsetControlActor(AbstractDirectedControlActor value)Sets the group to execute.-
Methods inherited from class adams.flow.control.SequentialDirector
activeIndices, activeIndices, checkActorHasStopped, cleanUp, doExecute, doExecuteStandalones, doHasOutput, doInput, doOutput, execute, flushExecution, getFinalOutput, handleError, handleException, initialize, isFinished, stopExecution
-
Methods inherited from class adams.flow.control.AbstractDirector
configureLogger, flowPauseStateChanged, getControlActor, getVariables, handleException, hasControlActor, isFlushing, isPaused, isStopped, isStopping, pause, pauseExecution, setControlActor, setLoggingLevel, toString, updatePrefix
-
Methods inherited from class adams.core.logging.LoggingObject
getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
setControlActor
public void setControlActor(AbstractDirectedControlActor value)
Sets the group to execute.- Parameters:
value- the group
-
isFinalOutputRecorded
protected boolean isFinalOutputRecorded()
Returns whether the final output of actors is recorded.- Overrides:
isFinalOutputRecordedin classSequentialDirector- Returns:
- true
-
doExecuteActors
protected String doExecuteActors(Actor startActor)
Peforms the execution of the actors.- Overrides:
doExecuteActorsin classSequentialDirector- Parameters:
startActor- the actor to start with- Returns:
- null if everything ok, otherwise the error message
-
-