Package edu.isi.pegasus.planner.classes
Class CompoundTransformation
- java.lang.Object
-
- edu.isi.pegasus.planner.classes.CompoundTransformation
-
public class CompoundTransformation extends java.lang.ObjectA data class to contain compound transformations.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmNameThe name of the tranformation.protected java.lang.StringmNamespaceThe namespace of the compound transformation.protected NotificationsmNotificationsAll the notifications associated with the jobprotected java.util.List<PegasusFile>mUsesThe list of dependant executablesprotected java.lang.StringmVersionThe version
-
Constructor Summary
Constructors Constructor Description CompoundTransformation(java.lang.String name)ConstructorCompoundTransformation(java.lang.String namespace, java.lang.String name, java.lang.String version)Overloaded Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependantFile(PegasusFile pf)Adds a dependant file.voidaddNotification(Invoke invoke)Adds a Invoke object correpsonding to a notification.voidaddNotifications(Notifications invokes)Adds all the notifications passed to the underlying container.booleanequals(java.lang.Object obj)Returns whether two objects are equal or not on the basis of the complete name of the transformation.java.lang.StringgetCompleteName()Returns the complete name for the transformation.java.util.List<PegasusFile>getDependantFiles()Returns the List of dependant filesjava.lang.StringgetName()Returns name of compound transformation.java.lang.StringgetNamespace()Returns the namespaceNotificationsgetNotifications()Returns all the notifications associated with the job.java.util.Collection<Invoke>getNotifications(Invoke.WHEN when)Returns a collection of all the notifications that need to be done for a particular conditionjava.lang.StringgetVersion()Returns the versioninthashCode()Calculate a hash code value for the object to support hash tables.java.lang.StringtoString()Converts object to String
-
-
-
Field Detail
-
mNamespace
protected java.lang.String mNamespace
The namespace of the compound transformation.
-
mName
protected java.lang.String mName
The name of the tranformation.
-
mVersion
protected java.lang.String mVersion
The version
-
mUses
protected java.util.List<PegasusFile> mUses
The list of dependant executables
-
mNotifications
protected Notifications mNotifications
All the notifications associated with the job
-
-
Constructor Detail
-
CompoundTransformation
public CompoundTransformation(java.lang.String name)
Constructor- Parameters:
name- of transformation
-
CompoundTransformation
public CompoundTransformation(java.lang.String namespace, java.lang.String name, java.lang.String version)Overloaded Constructor- Parameters:
namespace- namespacename- nameversion- version
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns name of compound transformation.- Returns:
- name
-
getNamespace
public java.lang.String getNamespace()
Returns the namespace- Returns:
- namespace
-
getVersion
public java.lang.String getVersion()
Returns the version- Returns:
- version
-
addDependantFile
public void addDependantFile(PegasusFile pf)
Adds a dependant file.- Parameters:
pf-
-
getDependantFiles
public java.util.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 java.util.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(java.lang.Object obj)
Returns whether two objects are equal or not on the basis of the complete name of the transformation.- Overrides:
equalsin classjava.lang.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:
hashCodein classjava.lang.Object- Returns:
- a hash code value for the object.
-
getCompleteName
public java.lang.String getCompleteName()
Returns the complete name for the transformation.- Returns:
- the complete name
-
toString
public java.lang.String toString()
Converts object to String- Overrides:
toStringin classjava.lang.Object- Returns:
- the textual description
-
-