org.gridbus.broker.xpml
Class XpmlInterpreter

java.lang.Object
  extended by org.gridbus.broker.xpml.XpmlInterpreter
All Implemented Interfaces:
ClassInterpreter

public class XpmlInterpreter
extends java.lang.Object
implements ClassInterpreter

This is the interpreter for app-description files (subclasses) ClassInterpreter

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

Constructor Summary
XpmlInterpreter()
           
 
Method Summary
 java.util.Vector getDataFileList()
           
 java.util.Hashtable getDataHostTable()
           
 java.util.Vector getJobs()
          Gets the jobs defined in the parsed xml file.
 Requirement getNodeRequirements()
           
 void process(org.dom4j.Document doc)
          This method processes an xml app-description file: It iterates through each of the elements and invoke the appropriate method based on the element name (uses reflection).
 void setServices(java.util.Vector services)
          Information / other services needed during data discovery.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XpmlInterpreter

public XpmlInterpreter()
Method Detail

getJobs

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

Specified by:
getJobs in interface ClassInterpreter
Returns:
jobs

process

public void process(org.dom4j.Document doc)
This method processes an xml app-description file: It iterates through each of the elements and invoke the appropriate method based on the element name (uses reflection). It creates an object of the appropriate class for every element it encounters. So, its either ParameterProcessor, TaskProcessor or RequirementProcessor class(at present). Note: the *Processor classes are expected to be in the org.gridbus.broker.xpml package. The XML document should be passed through the constructor.

Specified by:
process in interface ClassInterpreter
Parameters:
doc -

getNodeRequirements

public Requirement getNodeRequirements()
Specified by:
getNodeRequirements in interface ClassInterpreter
Returns:
See Also:
ClassInterpreter.getNodeRequirements()

getDataFileList

public java.util.Vector getDataFileList()
Specified by:
getDataFileList in interface ClassInterpreter
Returns:
See Also:
org.gridbus.broker.xpml.ClassInterpreter#getDataFileURLs()

setServices

public void setServices(java.util.Vector services)
Information / other services needed during data discovery.

Specified by:
setServices in interface ClassInterpreter
Parameters:
services -

getDataHostTable

public java.util.Hashtable getDataHostTable()
Specified by:
getDataHostTable in interface ClassInterpreter
Returns:
See Also:
ClassInterpreter.getDataHostTable()