public class FlowPlanElement extends PlanElementBase implements Iterable<IPlanElement>
IPlanElements. It orchestrates their execution by
executing the elements that are contained in the ElementCollection in parallel
and waiting for their completion. If one of the elements is terminated with an error, after all the elements
have terminated, the exception indicating the error is re-thrown. If more than one elements finished with an
error, only the first error found iterating through the ElementCollection is thrown.PlanElementBase.ClockTypeIPlanElement.PlanElementType| Modifier and Type | Field and Description |
|---|---|
List<IPlanElement> |
ElementCollection
The Element collection that are to be executed in parallel
|
| Constructor and Description |
|---|
FlowPlanElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
ExecuteExtender(ExecutionHandle Handle)
Execute extender.
|
void |
FromXML(Element XML)
Populate the element from its xml serialization as returned by
IPlanElement.ToXML() |
void |
FromXML(String XML)
Populate the element from its xml serialization as returned by
IPlanElement.ToXML() |
List<ContingencyTrigger> |
GetContingencyTriggers()
Gets the contingency triggers.
|
org.slf4j.Logger |
GetExtenderLogger()
Gets the extender logger.
|
String |
GetID()
Gets the id.
|
Set<String> |
GetModifiedVariableNames()
Gets the modified variable names of the element and of the elements contained.
|
String |
GetName()
Gets the name.
|
Set<String> |
GetNeededVariableNames()
Gets the needed variable names of the element and of the elements contained.
|
IPlanElement.PlanElementType |
GetPlanElementType()
Gets the plan element type.
|
Iterator<IPlanElement> |
iterator() |
IPlanElement |
Locate(String ID)
Locate the plan element with the provided id.
|
Set<IPlanElement> |
LocateActionElements()
Retrieves the Action elements under this elements
|
void |
SetContingencyResourcePick(ExecutionHandle Handle,
String Pick)
Sets the picked resource in case the
IContingencyReaction.ReactionType#Pick reaction is supported |
void |
SetName(String Name)
Sets the name.
|
IContingencyReaction.ReactionType[] |
SupportedContingencyTriggers()
Retrieves the supported contingency triggers.
|
boolean |
SupportsContingencyTriggers()
Checks if the element supports contingency triggers.
|
String |
ToXML()
Serialize to xml the element and all its contained elements
|
void |
Validate()
Validate the element and any sub element it contains
|
void |
ValidatePreExecution(ExecutionHandle Handle)
Validate the element and any sub element it contains before it is executed
|
CheckStatus, Execute, ExecuteWithStateAwareness, GetPerformanceEvent, RegisterToRunningActionElementsRestriction, ResetClocks, StartClock, StopClock, UnregisterToRunningActionElementsRestriction, updatepublic List<IPlanElement> ElementCollection
public Iterator<IPlanElement> iterator()
iterator in interface Iterable<IPlanElement>public void FromXML(String XML) throws ExecutionSerializationException
IPlanElementIPlanElement.ToXML()FromXML in interface IPlanElementXML - the xML serializationExecutionSerializationException - A serialization error occurredpublic void FromXML(Element XML) throws ExecutionSerializationException
IPlanElementIPlanElement.ToXML()FromXML in interface IPlanElementXML - the xML serializationExecutionSerializationException - A serialization error occurredpublic String GetID()
IPlanElementGetID in interface IPlanElementpublic String GetName()
IPlanElementGetName in interface IPlanElementpublic IPlanElement.PlanElementType GetPlanElementType()
IPlanElementGetPlanElementType in interface IPlanElementpublic IPlanElement Locate(String ID)
IPlanElementLocate in interface IPlanElementID - the iDpublic Set<IPlanElement> LocateActionElements()
IPlanElementLocateActionElements in interface IPlanElementpublic void SetName(String Name)
IPlanElementSetName in interface IPlanElementName - the namepublic String ToXML() throws ExecutionSerializationException
IPlanElementToXML in interface IPlanElementExecutionSerializationException - A serialization error occurredpublic void Validate()
throws ExecutionValidationException
IPlanElementValidate in interface IPlanElementExecutionValidationException - A validation error occurredpublic IContingencyReaction.ReactionType[] SupportedContingencyTriggers()
IPlanElementSupportedContingencyTriggers in interface IPlanElementpublic boolean SupportsContingencyTriggers()
IPlanElementSupportsContingencyTriggers in interface IPlanElementpublic List<ContingencyTrigger> GetContingencyTriggers()
IPlanElementGetContingencyTriggers in interface IPlanElementpublic void SetContingencyResourcePick(ExecutionHandle Handle, String Pick) throws ExecutionRunTimeException
IPlanElementIContingencyReaction.ReactionType#Pick reaction is supportedSetContingencyResourcePick in interface IPlanElementHandle - the execution handle handlePick - the picked resourceExecutionRunTimeException - A runtime error occurredpublic Set<String> GetModifiedVariableNames()
IPlanElementGetModifiedVariableNames in interface IPlanElementpublic Set<String> GetNeededVariableNames()
IPlanElementGetNeededVariableNames in interface IPlanElementpublic org.slf4j.Logger GetExtenderLogger()
PlanElementBaseGetExtenderLogger in class PlanElementBasepublic void ExecuteExtender(ExecutionHandle Handle) throws ExecutionRunTimeException, ExecutionInternalErrorException, ExecutionCancelException, ExecutionBreakException
PlanElementBaseExecuteExtender in class PlanElementBaseHandle - the execution handleExecutionRunTimeException - A runtime error occurredExecutionInternalErrorException - An internal error occurredExecutionCancelException - The execution was canceledExecutionBreakException - The execution was terminatedpublic void ValidatePreExecution(ExecutionHandle Handle) throws ExecutionValidationException
IPlanElementValidatePreExecution in interface IPlanElementHandle - the execution handleExecutionValidationException - A validation error occurredCopyright © 2015. All Rights Reserved.