org.gridbus.broker.plan
Class PlanInterpreter

java.lang.Object
  extended byorg.gridbus.broker.plan.ClassInterpreter
      extended byorg.gridbus.broker.plan.PlanInterpreter

public class PlanInterpreter
extends ClassInterpreter

This is the interpreter for plan files (subclasses) ClassInterpreter

Author:
Ding Choon Hoong (chd@students.cs.mu.oz.au)

Constructor Summary
PlanInterpreter()
           
 
Method Summary
 java.util.Vector getConstVars()
          Gets the list of constant variables defined in the parsed xml file.
 Task getFinishTask()
          Gets the "rootfinish" task and associated commands defined in the parsed xml file.
 java.util.Vector getJobs()
          Gets the jobs defined in the parsed xml file.
 java.util.Vector getListVars()
          Gets the list of list type variables defined in the parsed xml file.
 Task getStartTask()
          Gets the "nodestart" task and associated commands defined in the parsed xml file.
 java.util.Vector jobPermuter(java.util.Hashtable indexTracker)
          Returns a vector of job combinations
 void printJobs()
          Prints the details of the jobs defined in the parsed xml file.
 void process(org.dom4j.Document doc)
          This method processes an xml plan file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanInterpreter

public PlanInterpreter()
Method Detail

getJobs

public java.util.Vector getJobs()
Gets the jobs defined in the parsed xml file.

Returns:
jobs

getListVars

public java.util.Vector getListVars()
Gets the list of list type variables defined in the parsed xml file.

Returns:
list variables

getConstVars

public java.util.Vector getConstVars()
Gets the list of constant variables defined in the parsed xml file.

Returns:
constant variables

getStartTask

public Task getStartTask()
Gets the "nodestart" task and associated commands defined in the parsed xml file.

Returns:
the nodestart task and its associated commands.

getFinishTask

public Task getFinishTask()
Gets the "rootfinish" task and associated commands defined in the parsed xml file.

Returns:
the rootfinish task and its associated commands.

printJobs

public void printJobs()
Prints the details of the jobs defined in the parsed xml file.


process

public void process(org.dom4j.Document doc)
This method processes an xml plan file

Overrides:
process in class ClassInterpreter
Parameters:
doc -

jobPermuter

public java.util.Vector jobPermuter(java.util.Hashtable indexTracker)
Returns a vector of job combinations

Parameters:
indexTracker -
Returns:
a vector of job combinations