public class ActionParallel
extends java.lang.Object
AutoEngine
script.
This class is created internally, so only ever create an ActionSequential
when
writing the script code. This is then one event in the sequence.Constructor and Description |
---|
ActionParallel(java.util.ArrayList<org.licas_xml.abs.Element> theSources,
AutoEngineInfo theAutoInfo,
boolean thisFirstOrBest)
Create a new instance of ActionParallel.
|
ActionParallel(java.lang.String theServiceType,
AutoEngineInfo theAutoInfo,
boolean thisFirstOrBest)
Create a new instance of ActionParallel.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
parallel(java.util.ArrayList<?> paramList,
ObjectsMap objectsMap)
Invoke the parallel method list and return the result.
|
void |
setCompleted()
To indicate that the call pool has completed
|
protected java.lang.Object |
waitEvaluateBestReply(ObjectsMap objectsMap)
Execute the callpool and evaluate as the best reply returned over all replies.
|
protected java.lang.Object |
waitEvaluateFirstReply(ObjectsMap objectsMap)
Execute the callpool and evaluate as the first reply returned.
|
public ActionParallel(java.lang.String theServiceType, AutoEngineInfo theAutoInfo, boolean thisFirstOrBest)
theServiceType
- the type of service to invoke.theAutoInfo
- the process element description to be executed.thisFirstOrBest
- if true return first true result, if false return the best
true result when all replies have been received.public ActionParallel(java.util.ArrayList<org.licas_xml.abs.Element> theSources, AutoEngineInfo theAutoInfo, boolean thisFirstOrBest)
theSources
- specific list of sources to invoke.theAutoInfo
- the process element description to be executed.thisFirstOrBest
- if true return first true result, if false return the best
true result when all replies have been received.protected java.lang.Object parallel(java.util.ArrayList<?> paramList, ObjectsMap objectsMap) throws java.lang.Exception
paramList
- an external set of objects that can replace named or tagged fields in
the method parameter lists. If empty or no match, then nothing gets changed.objectsMap
- mapping of variable names to instances. This method can ad more
variables, but should be for the method invocation only, so immediately cloned.effectorList
of the
input parameter if the evaluation is true, or an empty list if it is false.
Evaluating to true can include matching exactly to an XML description, or just have
any result, for example, by using a checkReply
method.java.lang.Exception
- any error.protected java.lang.Object waitEvaluateFirstReply(ObjectsMap objectsMap) throws java.lang.Exception
objectsMap
- mapping of variable names to instances. This method can ad more
variables, but should be for the method invocation only, so immediately cloned.effectorList
of the
input parameter if the evaluation is true, or an empty list if it is false.
Evaluating to true can include matching exactly to an XML description, or just have
any result, for example, by using a checkReply
method.java.lang.Exception
- any error.protected java.lang.Object waitEvaluateBestReply(ObjectsMap objectsMap) throws java.lang.Exception
objectsMap
- mapping of variable names to instances. This method can ad more
variables, but should be for the method invocation only, so immediately cloned.effectorList
of the
input parameter if the evaluation is true, or an empty list if it is false.
Evaluating to true can include matching exactly to an XML description, or just have
any result, for example, by using a checkReply
method.java.lang.Exception
- any error.public void setCompleted()