gr.uoa.di.madgik.execution.plan
Class ExecutionPlan

java.lang.Object
  extended by gr.uoa.di.madgik.execution.plan.ExecutionPlan

public class ExecutionPlan
extends Object

The Class ExecutionPlan.

Author:
gpapanikos

Field Summary
 List<String> CleanUpLocalFiles
          A list of files that are to be cleaned up after the execution of the plan in the node that the instance of the sub plan that contains this list is located
 ValueCollection CleanUpSS
           
 ValueCollection CleanUpSSExclude
           
 PlanConfig Config
          The Configuration for the execution of the plan
 gr.uoa.di.madgik.environment.hint.EnvHintCollection EnvHints
           
 IPlanElement Root
          The Root element of the plan
 VariableCollection Variables
          The Variables that are shared between all the plan elements
 
Constructor Summary
ExecutionPlan()
          Instantiates a new execution plan.
 
Method Summary
 void Deserialize(String serialization)
          Deserialize the plan
 IPlanElement Locate(String ID)
          Locate a plan element that has the provided id
 Set<IPlanElement> LocateActionElements()
           
 String Serialize()
          Serialize the plan
 void Validate()
          Validates the plan element hierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Root

public IPlanElement Root
The Root element of the plan


EnvHints

public gr.uoa.di.madgik.environment.hint.EnvHintCollection EnvHints

Variables

public VariableCollection Variables
The Variables that are shared between all the plan elements


Config

public PlanConfig Config
The Configuration for the execution of the plan


CleanUpLocalFiles

public List<String> CleanUpLocalFiles
A list of files that are to be cleaned up after the execution of the plan in the node that the instance of the sub plan that contains this list is located


CleanUpSS

public ValueCollection CleanUpSS

CleanUpSSExclude

public ValueCollection CleanUpSSExclude
Constructor Detail

ExecutionPlan

public ExecutionPlan()
Instantiates a new execution plan.

Method Detail

Locate

public IPlanElement Locate(String ID)
Locate a plan element that has the provided id

Parameters:
ID - the iD
Returns:
the plan element or null if no element found

LocateActionElements

public Set<IPlanElement> LocateActionElements()

Validate

public void Validate()
              throws ExecutionValidationException
Validates the plan element hierarchy

Throws:
ExecutionValidationException - A validation error occurred

Serialize

public String Serialize()
                 throws ExecutionSerializationException
Serialize the plan

Returns:
the xml serialization
Throws:
ExecutionSerializationException - A serialization error occurred

Deserialize

public void Deserialize(String serialization)
                 throws ExecutionSerializationException
Deserialize the plan

Parameters:
serialization - the serialization as retrieved by Serialize()
Throws:
ExecutionSerializationException - A serialization error occurred


Copyright © 2012. All Rights Reserved.