org.gridlab.gat.resources
Class CoScheduleJobDescription

java.lang.Object
  extended by org.gridlab.gat.resources.AbstractJobDescription
      extended by org.gridlab.gat.resources.CoScheduleJobDescription
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OrderedCoScheduleJobDescription

public class CoScheduleJobDescription
extends AbstractJobDescription

An instance of this class describes an coschedule job to be run. A coschedule job consists of multiple jobs that should be started together. Some adaptors, like the Koala adaptor, can handle CoScheduleJobDescriptions.

Author:
rkemp
See Also:
Serialized Form

Constructor Summary
CoScheduleJobDescription()
          Creates a CoScheduleJobDescription without JobDescription
CoScheduleJobDescription(JobDescription jobDescription)
          Creates a CoScheduleJobDescription with one JobDescription of a job that will be included in the coscheduling.
CoScheduleJobDescription(JobDescription[] jobDescriptions)
          Creates a CoScheduleJobDescription with a set of JobDescriptions of a jobs that will be included in the coscheduling.
 
Method Summary
 void add(JobDescription jobDescription)
          Adds a single JobDescription to the set of JobDescriptions that will be included in the coscheduling.
 void add(JobDescription[] jobDescriptions)
          Adds a set of JobDescriptions to the set of JobDescriptions that will be included in the coscheduling.
 List<JobDescription> getJobDescriptions()
          Returns the set of JobDescriptions that will be included in the coscheduling.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoScheduleJobDescription

public CoScheduleJobDescription()
Creates a CoScheduleJobDescription without JobDescription


CoScheduleJobDescription

public CoScheduleJobDescription(JobDescription jobDescription)
Creates a CoScheduleJobDescription with one JobDescription of a job that will be included in the coscheduling.

Parameters:
jobDescription - the description of the job that will be included in the coscheduling.

CoScheduleJobDescription

public CoScheduleJobDescription(JobDescription[] jobDescriptions)
Creates a CoScheduleJobDescription with a set of JobDescriptions of a jobs that will be included in the coscheduling.

Parameters:
jobDescriptions - the descriptions of the jobs that will be included in the coscheduling.
Method Detail

add

public void add(JobDescription jobDescription)
Adds a single JobDescription to the set of JobDescriptions that will be included in the coscheduling.

Parameters:
jobDescription - the JobDescription to be included in the coscheduling

add

public void add(JobDescription[] jobDescriptions)
Adds a set of JobDescriptions to the set of JobDescriptions that will be included in the coscheduling.

Parameters:
jobDescriptions - the JobDescriptions to be included in the coscheduling

getJobDescriptions

public List<JobDescription> getJobDescriptions()
Returns the set of JobDescriptions that will be included in the coscheduling.

Returns:
the set of JobDescriptions that will be included in the coscheduling.