Package edu.isi.pegasus.planner.dax
Class Transformation
java.lang.Object
edu.isi.pegasus.planner.dax.Transformation
This Object is used to create a complex Transformation. A complex transformation is one that uses
other executables and files
- Version:
- $Revision$
- Author:
- gmehta
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Name of the transformationprotected String
Namespace of the Transformationprotected List<CatalogType>
List of executable of files used by the transformationprotected String
Version of the transformation -
Constructor Summary
ConstructorsConstructorDescriptionCopy ConstructorTransformation
(String name) Create a new Transformation objectTransformation
(String namespace, String name, String version) Create a new Transformation Object -
Method Summary
Modifier and TypeMethodDescriptionAdd a Notification for this TransformationaddInvoke
(Invoke.WHEN when, String what) Add a Notification for this TransformationaddInvokes
(List<Invoke> invokes) Add a List of Notifications for this TransformationaddNotification
(Invoke.WHEN when, String what) Add a Notification for this Transformation same as addInvoke()addNotifications
(List<Invoke> invokes) Add a List of Notifications for this Transformation.boolean
Returns boolean indicating whether this instance of object is equal to the object being passedReturn the list of Notification objectsgetName()
Get the name of the transformationGet the namespace of the transformationReturn the list of Notification objects (same as getInvoke()getUses()
Get the List of files and/or executables being used by the transformationGet the version of the transformationint
hashCode()
Return the hashcodetoString()
Return the String versionvoid
toXML
(edu.isi.pegasus.common.util.XMLWriter writer) Writes out XML representation using the writervoid
toXML
(edu.isi.pegasus.common.util.XMLWriter writer, int indent) Writes out XML representation using the writeruses
(CatalogType fileorexecutable) Set the file or executable being used by the transformationuses
(List<CatalogType> filesorexecutables) Set the List of files and/or executables being used by the transformation
-
Field Details
-
mNamespace
Namespace of the Transformation -
mName
Name of the transformation -
mVersion
Version of the transformation -
mUses
List of executable of files used by the transformation -
mInvokes
-
-
Constructor Details
-
Transformation
Create a new Transformation object- Parameters:
name
- the name of transformation
-
Transformation
Copy Constructor- Parameters:
t
- Transformation to copy from
-
Transformation
Create a new Transformation Object- Parameters:
namespace
- the namespacename
- the nameversion
- the version
-
-
Method Details
-
getName
Get the name of the transformation- Returns:
- the name
-
getNamespace
Get the namespace of the transformation- Returns:
- the namespace
-
getVersion
Get the version of the transformation- Returns:
- the version
-
getInvoke
Return the list of Notification objects- Returns:
- List of Invoke objects
-
getNotification
Return the list of Notification objects (same as getInvoke()- Returns:
- List of Invoke objects
-
addInvoke
Add a Notification for this Transformation- Parameters:
when
- when to invoke the notificationwhat
- the executable to invoke with the arg string- Returns:
- Transformation
-
addNotification
Add a Notification for this Transformation same as addInvoke()- Parameters:
when
- when to invoke the notificationwhat
- the executable to invoke with the arg string- Returns:
- Transformation
-
addInvoke
Add a Notification for this Transformation- Parameters:
invoke
- the invoke object containing the invocation to invoke- Returns:
- Transformation
-
addInvokes
Add a List of Notifications for this Transformation- Parameters:
invokes
- list of notifications to associate with- Returns:
- Transformation
-
addNotifications
Add a List of Notifications for this Transformation. Same as addInvokes()- Parameters:
invokes
- list of notifications to associate with- Returns:
- Transformation
-
uses
Set the file or executable being used by the transformation- Parameters:
fileorexecutable
- file used by executable- Returns:
- Transformation
-
uses
Set the List of files and/or executables being used by the transformation- Parameters:
filesorexecutables
- list of files or executables used by the transformation- Returns:
- Transformation
-
getUses
Get the List of files and/or executables being used by the transformation- Returns:
- List of Files and Executables used
-
equals
Returns boolean indicating whether this instance of object is equal to the object being passed -
hashCode
public int hashCode()Return the hashcode -
toString
Return the String version -
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer) Writes out XML representation using the writer- Parameters:
writer
- the writer
-
toXML
public void toXML(edu.isi.pegasus.common.util.XMLWriter writer, int indent) Writes out XML representation using the writer- Parameters:
writer
- the writerindent
- number pf indent spaces
-