public interface IPlanElement extends Serializable
ExecutionPlan| Modifier and Type | Interface and Description |
|---|---|
static class |
IPlanElement.PlanElementType
The type of the plan element
|
| Modifier and Type | Method and Description |
|---|---|
void |
Execute(ExecutionHandle Handle)
Execute the element
|
void |
FromXML(Element XML)
Populate the element from its xml serialization as returned by
ToXML() |
void |
FromXML(String XML)
Populate the element from its xml serialization as returned by
ToXML() |
List<ContingencyTrigger> |
GetContingencyTriggers()
Gets the contingency triggers.
|
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.
|
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
|
IPlanElement.PlanElementType GetPlanElementType()
String GetID()
String GetName()
void SetName(String Name)
Name - the namevoid Validate()
throws ExecutionValidationException
ExecutionValidationException - A validation error occurredvoid ValidatePreExecution(ExecutionHandle Handle) throws ExecutionValidationException
Handle - the execution handleExecutionValidationException - A validation error occurredIPlanElement Locate(String ID)
ID - the iDSet<IPlanElement> LocateActionElements()
String ToXML() throws ExecutionSerializationException
ExecutionSerializationException - A serialization error occurredvoid FromXML(String XML) throws ExecutionSerializationException
ToXML()XML - the xML serializationExecutionSerializationException - A serialization error occurredvoid FromXML(Element XML) throws ExecutionSerializationException
ToXML()XML - the xML serializationExecutionSerializationException - A serialization error occurredboolean SupportsContingencyTriggers()
IContingencyReaction.ReactionType[] SupportedContingencyTriggers()
List<ContingencyTrigger> GetContingencyTriggers()
void SetContingencyResourcePick(ExecutionHandle Handle, String Pick) throws ExecutionRunTimeException
IContingencyReaction.ReactionType#Pick reaction is supportedHandle - the execution handle handlePick - the picked resourceExecutionRunTimeException - A runtime error occurredSet<String> GetNeededVariableNames()
Set<String> GetModifiedVariableNames()
void Execute(ExecutionHandle Handle) throws ExecutionRunTimeException, ExecutionInternalErrorException, ExecutionCancelException, ExecutionBreakException
Handle - the execution handleExecutionRunTimeException - A runtime error occurredExecutionInternalErrorException - An internal error occurredExecutionCancelException - The execution is canceledExecutionBreakException - The execution was terminated after an explicit requestCopyright © 2015. All Rights Reserved.