|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.nextgrid.api.pom.PemHelper com.gridsystems.nextgrid.api.pom.ProcessImpl com.gridsystems.nextgrid.api.pom.ControlProcessImpl com.gridsystems.nextgrid.api.pom.SequenceProcessImpl
public class SequenceProcessImpl
Control process that forces all its children to execute in a sequential basis. A child process must wait until its previous sibling finishes its execution to start its own.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gridsystems.nextgrid.api.pom.ProcessImpl |
---|
ProcessImpl.ValidationType |
Field Summary |
---|
Fields inherited from class com.gridsystems.nextgrid.api.pom.ProcessImpl |
---|
DFA_INITIAL_STATE, ENACTOR_LOG |
Constructor Summary | |
---|---|
SequenceProcessImpl()
Creates a new instance. |
Method Summary | |
---|---|
protected void |
doReset()
Performs specific reset actions in each subclass. |
protected void |
doValidate(ProcessImpl.ValidationType when)
Performs any validation action needed for the process implementation. |
void |
run(ProcessContext ctx)
Performs the actual enaction of a process. |
java.lang.String |
toString()
|
Methods inherited from class com.gridsystems.nextgrid.api.pom.ControlProcessImpl |
---|
addChildren, addChildren, copy, discover, doEvaluate, findProcessById, getChildCount, getChildren, getChildren, getLocalVar, getLocalVars, isMemoizeActive, prioritise, removeChild, removeChild, resetChildren, setChildren, setChildren, setLocalVar, setMemoizeActive, trim |
Methods inherited from class com.gridsystems.nextgrid.api.pom.ProcessImpl |
---|
attachListeners, enact, evaluate, evaluate, findRoot, getAttribute, getAttribute, getAttribute, getAttributes, getDescription, getId, getInput, getInputs, getInputs, getInputType, getName, getOutput, getOutputs, getOutputs, getOutputType, getParent, getState, getUsedInputNames, getUsedOutputNames, invalidate, isEvaluated, isLazy, isValidated, prioritise, putInput, putOutput, removeInput, removeOutput, reset, setAttribute, setAttribute, setDescription, setEvaluated, setId, setLazy, setName, setParent, setState, unuseInput, unuseOutput, useInput, useOutput, validate, waitForInputs |
Methods inherited from class com.gridsystems.nextgrid.api.pom.PemHelper |
---|
addListener, fireDiscovererSelected, fireDiscoveryFailed, fireDiscoveryFinished, fireDiscoveryStarting, fireEvent, fireProcessEvaluated, fireProcessFailed, fireProcessFailed, fireProcessFinished, fireProcessFinished, fireProcessSelected, fireProcessStarted, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface nextgrid.api.pom.ControlProcess |
---|
addChildren, addChildren, getChildCount, getChildren, getChildren, getLocalVar, getLocalVars, isLazy, isMemoizeActive, removeChild, removeChild, setChildren, setChildren, setLazy, setLocalVar, setMemoizeActive, trim |
Methods inherited from interface nextgrid.api.pom.Process |
---|
addListener, copy, discover, enact, evaluate, findProcessById, findRoot, getAttribute, getAttribute, getAttribute, getAttributes, getDescription, getId, getInput, getInputs, getInputType, getName, getOutput, getOutputs, getOutputType, getParent, getUsedInputNames, getUsedOutputNames, invalidate, isEvaluated, isValidated, prioritise, putInput, putOutput, removeInput, removeListener, removeOutput, reset, setAttribute, setAttribute, setDescription, setId, setName, setParent, unuseInput, unuseOutput, useInput, useOutput, validate |
Constructor Detail |
---|
public SequenceProcessImpl()
Method Detail |
---|
protected final void doValidate(ProcessImpl.ValidationType when) throws nextgrid.api.pom.ProcessException
doValidate
in class ProcessImpl
when
- Specifies when this validation is being invoked
nextgrid.api.pom.ProcessException
- If the validation failsprotected void doReset()
doReset
in class ProcessImpl
public void run(ProcessContext ctx) throws nextgrid.api.pom.ProcessException, java.lang.InterruptedException
The instance must take into account possible errors, like service unavailability, or execution errors. As long as there are more "valid" candidates for the process, errors should not be propagated to the parent, and the next candidate should be selected and enacted.
A ProcessException as a result of this call means that this process is unable to correctly finish its execution, and that the parent must do something to fix the problem.
run
in interface Enactable
ctx
- A process context
nextgrid.api.pom.ProcessException
- If an unrecoverable local error occurs
java.lang.InterruptedException
- If the thread is interruptedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |