|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPlanElement
This interface is implemented by all plan elements that can be used to assemble the ExecutionPlan
| Nested Class Summary | |
|---|---|
static class |
IPlanElement.PlanElementType
The type of the plan element |
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
IPlanElement.PlanElementType GetPlanElementType()
String GetID()
String GetName()
void SetName(String Name)
Name - the name
void Validate()
throws ExecutionValidationException
ExecutionValidationException - A validation error occurred
void ValidatePreExecution(ExecutionHandle Handle)
throws ExecutionValidationException
Handle - the execution handle
ExecutionValidationException - A validation error occurredIPlanElement Locate(String ID)
ID - the iD
Set<IPlanElement> LocateActionElements()
String ToXML()
throws ExecutionSerializationException
ExecutionSerializationException - A serialization error occurred
void FromXML(String XML)
throws ExecutionSerializationException
ToXML()
XML - the xML serialization
ExecutionSerializationException - A serialization error occurred
void FromXML(Element XML)
throws ExecutionSerializationException
ToXML()
XML - the xML serialization
ExecutionSerializationException - A serialization error occurredboolean SupportsContingencyTriggers()
IContingencyReaction.ReactionType[] SupportedContingencyTriggers()
List<ContingencyTrigger> GetContingencyTriggers()
void SetContingencyResourcePick(ExecutionHandle Handle,
String Pick)
throws ExecutionRunTimeException
IContingencyReaction.ReactionType#Pick reaction is supported
Handle - the execution handle handlePick - the picked resource
ExecutionRunTimeException - A runtime error occurredSet<String> GetNeededVariableNames()
Set<String> GetModifiedVariableNames()
void Execute(ExecutionHandle Handle)
throws ExecutionRunTimeException,
ExecutionInternalErrorException,
ExecutionCancelException,
ExecutionBreakException
Handle - the execution handle
ExecutionRunTimeException - A runtime error occurred
ExecutionInternalErrorException - An internal error occurred
ExecutionCancelException - The execution is canceled
ExecutionBreakException - The execution was terminated after an explicit request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||