uk.ac.ncl.cs.instantsoap.wsapi
Class JobSpecification

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.wsapi.JobSpecification

public class JobSpecification
extends Object

Specifies an application to run and the input values to give it.

The properties must all have non-null values before the job spec can be used.

Author:
Phillip Lord, Cheng-Yang(Louis) Tang, Matthew Pocock

Constructor Summary
JobSpecification()
          Create a new instance with all properties set to null.
JobSpecification(String application, Map<String,String> inputs)
          Create a new job specification, with the provided details.
 
Method Summary
 boolean equals(Object o)
           
 String getApplication()
          Get the application name.
 Map<String,String> getInputs()
          Get the inputs for this job spec.
 int hashCode()
           
 void setApplication(String application)
          Set the application name.
 void setInputs(Map<String,String> inputs)
          Set the inputs for this job spec.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobSpecification

public JobSpecification(String application,
                        Map<String,String> inputs)
Create a new job specification, with the provided details.

This takes ownership of inputs. After calling this constructor, do not modify it.

Parameters:
application - the String name of the application to launch
inputs - a Map containing the input values

JobSpecification

public JobSpecification()
Create a new instance with all properties set to null.

Method Detail

getApplication

public String getApplication()
Get the application name.

Returns:
the application name for this job spec

setApplication

public void setApplication(String application)
Set the application name.

Parameters:
application - the new application name

getInputs

public Map<String,String> getInputs()
Get the inputs for this job spec.

This object keeps ownership of the inputs. Do not modify the returned value.

Returns:
the inputs Map

setInputs

public void setInputs(Map<String,String> inputs)
Set the inputs for this job spec.

This object takes ownership of the inputs. Do not modify it.

Parameters:
inputs - the Map giving the job inputs

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2008. All Rights Reserved.