public class ParameterProcessingPlanElement extends PlanElementBase implements Serializable
IPlanElement. The IParameter
that are used to retrieve inputs or store outputs in other IPlanElements are usually used for on the fly
processing of the inputs and outputs. Some values however may be needed more than once for multiple element. Some
parameters may also have complex definitions and there may be an interest in simplifying the definition of a
IPlanElement. This element is simply a placeholder for a number of IInputParameters. During execution,
the Parameters are iterated and for each one
IInputParameter.GetParameterValue(ExecutionHandle) is called. The return values are not used, so to be of value,
each parameter registered with this element should be of filtering type with ParameterFilterBase extending
filters that can store their outputs.PlanElementBase.ClockTypeIPlanElement.PlanElementType| Modifier and Type | Field and Description |
|---|---|
List<IInputParameter> |
Parameters
The Parameters that are to be evaluated
|
| Constructor and Description |
|---|
ParameterProcessingPlanElement() |
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
protected 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.
|
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<IInputParameter> Parameters
public IPlanElement.PlanElementType GetPlanElementType()
IPlanElementGetPlanElementType in interface IPlanElementpublic void Validate()
throws ExecutionValidationException
IPlanElementValidate in interface IPlanElementExecutionValidationException - A validation error occurredpublic void ValidatePreExecution(ExecutionHandle Handle) throws ExecutionValidationException
IPlanElementValidatePreExecution in interface IPlanElementHandle - the execution handleExecutionValidationException - A validation error occurredprotected org.slf4j.Logger GetExtenderLogger()
PlanElementBaseGetExtenderLogger in class PlanElementBasepublic String ToXML() throws ExecutionSerializationException
IPlanElementToXML in interface IPlanElementExecutionSerializationException - A serialization error occurredpublic 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 void SetName(String Name)
IPlanElementSetName in interface IPlanElementName - the namepublic IPlanElement Locate(String ID)
IPlanElementLocate in interface IPlanElementID - the iDpublic Set<IPlanElement> LocateActionElements()
IPlanElementLocateActionElements in interface IPlanElementpublic Set<String> GetNeededVariableNames()
IPlanElementGetNeededVariableNames in interface IPlanElementpublic Set<String> GetModifiedVariableNames()
IPlanElementGetModifiedVariableNames in interface IPlanElementpublic List<ContingencyTrigger> GetContingencyTriggers()
IPlanElementGetContingencyTriggers in interface IPlanElementpublic IContingencyReaction.ReactionType[] SupportedContingencyTriggers()
IPlanElementSupportedContingencyTriggers in interface IPlanElementpublic boolean SupportsContingencyTriggers()
IPlanElementSupportsContingencyTriggers 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 occurredprotected 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 terminatedCopyright © 2014. All Rights Reserved.