|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ControlProcess
Type description.
Method Summary | |
---|---|
void |
addChildren(int index,
Process child)
Inserts the specified element at the specified position in this list. |
void |
addChildren(Process... processes)
Adds a set of processes to the child list. |
int |
getChildCount()
Gets the number of child processes. |
Process[] |
getChildren()
Gets the processes in the children list. |
Process |
getChildren(int index)
Gets a child process by its index. |
Reference<?> |
getLocalVar(java.lang.String name)
Gets a reference used by this process as a local variable. |
java.util.Map<java.lang.String,Reference<?>> |
getLocalVars()
Gets the collection of all local variables defined in the scope of this process instance. |
boolean |
isLazy()
Gets the lazy flag value. |
boolean |
isMemoizeActive()
Gets the memoize flag value. |
Process |
removeChild(int index)
Removes the element at the specified position in this list. |
boolean |
removeChild(Process child)
Removes a process instance from the children list. |
void |
setChildren(int index,
Process child)
Sets a child process. |
void |
setChildren(Process... children)
Sets the list of child processes for this process instance. |
void |
setLazy(boolean lazy)
Sets the value of the lazy flag. |
void |
setLocalVar(java.lang.String name,
Reference<?> value)
Sets a reference used by this process as a local variable. |
void |
setMemoizeActive(boolean memoize)
Sets the memoize flag value. |
void |
trim(int count)
Sets the size of the children list to a maximum of count items. |
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 |
Method Detail |
---|
boolean isLazy()
This flag allows certqain control over the evaluation recursion level at runtime.
isLazy
in interface Process
void setLazy(boolean lazy)
This flag allows certqain control over the evaluation recursion level at runtime.
setLazy
in interface Process
lazy
- The flag valueboolean isMemoizeActive()
This flag determines if previous children evaluations will be reused for multiple executions. This is the case of loops, for example, in which the contained subworkflow may be reused among iteration steps.
void setMemoizeActive(boolean memoize)
This flag determines if previous children evaluations will be reused for multiple executions. This is the case of loops, for example, in which the contained subworkflow may be reused among iteration steps.
memoize
- The flag valueProcess[] getChildren()
Process getChildren(int index)
index
- The child process position
int getChildCount()
void trim(int count)
It correctly removes all items from position count to the end of the list. If the list is already smaller than count, it does nothing.
count
- The max number of elements to maintain in the children listvoid setChildren(Process... children)
children
- An array of processesvoid setChildren(int index, Process child)
index
- The position in the listchild
- The process to set
java.lang.UnsupportedOperationException
- If the process does not support childrenvoid addChildren(int index, Process child)
index
- index at which the specified element is to be inserted.child
- element to be inserted.
java.lang.UnsupportedOperationException
- if the add method is not supported by this list.
java.lang.ClassCastException
- if the class of the specified element prevents it from being added
to this list.
java.lang.IllegalArgumentException
- if some aspect of the specified element prevents it from being
added to this list.
java.lang.IndexOutOfBoundsException
- index is out of range (index < 0 || index > size()).void addChildren(Process... processes)
processes
- The processes to addProcess removeChild(int index)
index
- the index of the element to remove
java.lang.UnsupportedOperationException
- if the remove method is not supported by this list.
java.lang.IndexOutOfBoundsException
- if the specified index is out of range (index < 0 ||
index >= size()).boolean removeChild(Process child)
child
- The process to remove
Reference<?> getLocalVar(java.lang.String name)
Control processes can contain a set of "local variables", which are references not directly used by this process, but by its children.
Iterative constructs may use this collection for resetting their values in each loop iteration.
name
- Variable name
void setLocalVar(java.lang.String name, Reference<?> value)
name
- Variable namevalue
- Reference to the variable valuejava.util.Map<java.lang.String,Reference<?>> getLocalVars()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |