edu.isi.pegasus.planner.classes
Class CompoundTransformation

java.lang.Object
  extended by edu.isi.pegasus.planner.classes.CompoundTransformation

public class CompoundTransformation
extends Object

A data class to contain compound transformations.

Version:
$Revision: 3664 $
Author:
Karan Vahi

Field Summary
protected  String mName
          The name of the tranformation.
protected  String mNamespace
          The namespace of the compound transformation.
protected  Notifications mNotifications
          All the notifications associated with the job
protected  List<PegasusFile> mUses
          The list of dependant executables
protected  String mVersion
          The version
 
Constructor Summary
CompoundTransformation(String name)
          Constructor
CompoundTransformation(String namespace, String name, String version)
          Overloaded Constructor
 
Method Summary
 void addDependantFile(PegasusFile pf)
          Adds a dependant file.
 void addNotification(Invoke invoke)
          Adds a Invoke object correpsonding to a notification.
 void addNotifications(Notifications invokes)
          Adds all the notifications passed to the underlying container.
 boolean equals(Object obj)
          Returns whether two objects are equal or not on the basis of the complete name of the transformation.
 String getCompleteName()
          Returns the complete name for the transformation.
 List<PegasusFile> getDependantFiles()
          Returns the List of dependant files
 String getName()
          Returns name of compound transformation.
 String getNamespace()
          Returns the namespace
 Notifications getNotifications()
          Returns all the notifications associated with the job.
 Collection<Invoke> getNotifications(Invoke.WHEN when)
          Returns a collection of all the notifications that need to be done for a particular condition
 String getVersion()
          Returns the version
 int hashCode()
          Calculate a hash code value for the object to support hash tables.
 String toString()
          Converts object to String
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mNamespace

protected String mNamespace
The namespace of the compound transformation.


mName

protected String mName
The name of the tranformation.


mVersion

protected String mVersion
The version


mUses

protected List<PegasusFile> mUses
The list of dependant executables


mNotifications

protected Notifications mNotifications
All the notifications associated with the job

Constructor Detail

CompoundTransformation

public CompoundTransformation(String name)
Constructor

Parameters:
name - of transformation

CompoundTransformation

public CompoundTransformation(String namespace,
                              String name,
                              String version)
Overloaded Constructor

Parameters:
namespace - namespace
name - name
version - version
Method Detail

getName

public String getName()
Returns name of compound transformation.

Returns:
name

getNamespace

public String getNamespace()
Returns the namespace

Returns:
namespace

getVersion

public String getVersion()
Returns the version

Returns:
version

addDependantFile

public void addDependantFile(PegasusFile pf)
Adds a dependant file.

Parameters:
pf -

getDependantFiles

public List<PegasusFile> getDependantFiles()
Returns the List of dependant files

Returns:
List of Dependant Files

addNotification

public void addNotification(Invoke invoke)
Adds a Invoke object correpsonding to a notification.

Parameters:
invoke - the invoke object containing the notification

addNotifications

public void addNotifications(Notifications invokes)
Adds all the notifications passed to the underlying container.

Parameters:
invokes - the notifications to be added

getNotifications

public Collection<Invoke> getNotifications(Invoke.WHEN when)
Returns a collection of all the notifications that need to be done for a particular condition

Parameters:
when - the condition
Returns:

getNotifications

public Notifications getNotifications()
Returns all the notifications associated with the job.

Returns:
the notifications

equals

public boolean equals(Object obj)
Returns whether two objects are equal or not on the basis of the complete name of the transformation.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true, if the primary keys match, false otherwise.

hashCode

public int hashCode()
Calculate a hash code value for the object to support hash tables. The hashcode value is computed only on basis of namespace, name and version fields

Overrides:
hashCode in class Object
Returns:
a hash code value for the object.

getCompleteName

public String getCompleteName()
Returns the complete name for the transformation.

Returns:
the complete name

toString

public String toString()
Converts object to String

Overrides:
toString in class Object
Returns:
the textual description


Copyright © 2011 The University of Southern California. All Rights Reserved.