GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

JobDescription.java

Go to the documentation of this file.
00001 /*
00002  * Created on Apr 22, 2004
00003  */
00004 package org.gridlab.gat.resources;
00005 
00006 import org.gridlab.gat.GATContext;
00007 
00008 /**
00009  * @author rob
00010  * 
00011  * An instance of this class describes a job to be run. It consists of a
00012  * description of the "executable" (a GATSoftwareDescription), and of a
00013  * description of the resource requirements of the job. The latter can be given
00014  * as either a GATResourceDescription, or as a specific GATResource; only one of
00015  * these may be specified.
00016  */
00017 public class JobDescription implements java.io.Serializable {
00018 
00019     GATContext gatContext;
00020 
00021     SoftwareDescription softwareDescription;
00022 
00023     ResourceDescription resourceDescription;
00024 
00025     Resource resource;
00026 
00027     public JobDescription(GATContext gatContext,
00028             SoftwareDescription softwareDescription,
00029             ResourceDescription resourceDescription) {
00030         this.gatContext = gatContext;
00031         this.softwareDescription = softwareDescription;
00032         this.resourceDescription = resourceDescription;
00033     }
00034 
00035     public JobDescription(GATContext gatContext,
00036             SoftwareDescription softwareDescription, Resource resource) {
00037         this.gatContext = gatContext;
00038         this.softwareDescription = softwareDescription;
00039         this.resource = resource;
00040     }
00041 }