org.gridlab.gat.resources
Class OrderedCoScheduleJobDescription

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

public class OrderedCoScheduleJobDescription
extends CoScheduleJobDescription

Author:
Jerome Revillard
See Also:
Serialized Form

Nested Class Summary
static class OrderedCoScheduleJobDescription.JobLink
           
 
Constructor Summary
OrderedCoScheduleJobDescription()
           
OrderedCoScheduleJobDescription(JobDescription[] jobDescriptions)
           
 
Method Summary
 void addLink(JobDescription firstjob, JobDescription nextjob)
          Add a link between 2 Jobs represented by there JobDescription.
 HashSet<OrderedCoScheduleJobDescription.JobLink> getLinks()
           
 
Methods inherited from class org.gridlab.gat.resources.CoScheduleJobDescription
add, add, getJobDescriptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedCoScheduleJobDescription

public OrderedCoScheduleJobDescription()

OrderedCoScheduleJobDescription

public OrderedCoScheduleJobDescription(JobDescription[] jobDescriptions)
Method Detail

addLink

public void addLink(JobDescription firstjob,
                    JobDescription nextjob)
             throws IllegalArgumentException
Add a link between 2 Jobs represented by there JobDescription. The link means that the job represented by the description 1 must be finished before executing the job represented by the description 2.

Parameters:
firstjob - the description of the job that has to be completed before the other one
nextjob - the description of the job that will be started once the previous job will be completed
Throws:
IllegalArgumentException

getLinks

public HashSet<OrderedCoScheduleJobDescription.JobLink> getLinks()