org.opensha.commons.hpc.grid
Class GridJob

java.lang.Object
  extended by org.opensha.commons.hpc.grid.GridJob
All Implemented Interfaces:
XMLSaveable

public class GridJob
extends java.lang.Object
implements XMLSaveable


Field Summary
protected  GridCalculationParameters calcParams
           
static java.lang.String XML_METADATA_NAME
           
 
Constructor Summary
GridJob(GridResources resources, GridCalculationParameters calcParams, java.lang.String jobID, java.lang.String jobName, java.lang.String email, java.lang.String configFileName)
           
 
Method Summary
static GridJob fromXMLMetadata(Element jobElem)
           
 GridCalculationParameters getCalcParams()
           
 java.lang.String getConfigFileName()
           
 java.lang.String getEmail()
           
 java.lang.String getJobID()
           
 java.lang.String getJobName()
           
 GridResources getResources()
           
static java.lang.String indentString(java.lang.String str)
           
 void setConfigFileName(java.lang.String configFileName)
           
 void setEmail(java.lang.String email)
           
 void setJobID(java.lang.String jobID)
           
 java.lang.String toString()
           
 Element toXMLMetadata(Element root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_METADATA_NAME

public static final java.lang.String XML_METADATA_NAME
See Also:
Constant Field Values

calcParams

protected GridCalculationParameters calcParams
Constructor Detail

GridJob

public GridJob(GridResources resources,
               GridCalculationParameters calcParams,
               java.lang.String jobID,
               java.lang.String jobName,
               java.lang.String email,
               java.lang.String configFileName)
Method Detail

getResources

public GridResources getResources()

getCalcParams

public GridCalculationParameters getCalcParams()

setJobID

public void setJobID(java.lang.String jobID)

getJobID

public java.lang.String getJobID()

getJobName

public java.lang.String getJobName()

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

setConfigFileName

public void setConfigFileName(java.lang.String configFileName)

getConfigFileName

public java.lang.String getConfigFileName()

toXMLMetadata

public Element toXMLMetadata(Element root)
Specified by:
toXMLMetadata in interface XMLSaveable

fromXMLMetadata

public static GridJob fromXMLMetadata(Element jobElem)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

indentString

public static java.lang.String indentString(java.lang.String str)