edu.isi.pegasus.planner.dax
Class Transformation

java.lang.Object
  extended by edu.isi.pegasus.planner.dax.Transformation

public class Transformation
extends Object

This Object is used to create a complex Transformation. A complex transformation is one that uses other executables and files

Version:
$Revision: 3675 $
Author:
gmehta

Field Summary
protected  List<Invoke> mInvokes
           
protected  String mName
          Name of the transformation
protected  String mNamespace
          Namespace of the Transformation
protected  List<CatalogType> mUses
          List of executable of files used by the transformation
protected  String mVersion
          Version of the transformation
 
Constructor Summary
Transformation(String name)
          Create a new Transformation object
Transformation(String namespace, String name, String version)
          Create a new Transformation Object
Transformation(Transformation t)
          Copy Constructor
 
Method Summary
 Transformation addInvoke(Invoke.WHEN when, String what)
          Add a Notification for this Transformation
 Transformation addInvoke(Invoke invoke)
          Add a Notification for this Transformation
 Transformation addInvokes(List<Invoke> invokes)
          Add a List of Notifications for this Transformation
 boolean equals(Object obj)
           
 List<Invoke> getInvoke()
          Return the list of Notification objects
 String getName()
          Get the name of the transformation
 String getNamespace()
          Get the namespace of the transformation
 List<CatalogType> getUses()
          Get the List of files and/or executables being used by the transformation
 String getVersion()
          Get the version of the transformation
 int hashCode()
           
 String toString()
           
 void toXML(XMLWriter writer)
           
 void toXML(XMLWriter writer, int indent)
           
 Transformation uses(CatalogType fileorexecutable)
          Set the file or executable being used by the transformation
 Transformation uses(List<CatalogType> filesorexecutables)
          Set the List of files and/or executables being used by the transformation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mNamespace

protected String mNamespace
Namespace of the Transformation


mName

protected String mName
Name of the transformation


mVersion

protected String mVersion
Version of the transformation


mUses

protected List<CatalogType> mUses
List of executable of files used by the transformation


mInvokes

protected List<Invoke> mInvokes
Constructor Detail

Transformation

public Transformation(String name)
Create a new Transformation object

Parameters:
name -

Transformation

public Transformation(Transformation t)
Copy Constructor

Parameters:
t -

Transformation

public Transformation(String namespace,
                      String name,
                      String version)
Create a new Transformation Object

Parameters:
namespace -
name -
version -
Method Detail

getName

public String getName()
Get the name of the transformation

Returns:

getNamespace

public String getNamespace()
Get the namespace of the transformation

Returns:

getVersion

public String getVersion()
Get the version of the transformation

Returns:

getInvoke

public List<Invoke> getInvoke()
Return the list of Notification objects

Returns:
List

addInvoke

public Transformation addInvoke(Invoke.WHEN when,
                                String what)
Add a Notification for this Transformation

Parameters:
when -
what -
Returns:
Transformation

addInvoke

public Transformation addInvoke(Invoke invoke)
Add a Notification for this Transformation

Parameters:
invoke -
Returns:
Transformation

addInvokes

public Transformation addInvokes(List<Invoke> invokes)
Add a List of Notifications for this Transformation

Parameters:
invokes -
Returns:
Transformation

uses

public Transformation uses(CatalogType fileorexecutable)
Set the file or executable being used by the transformation

Parameters:
fileorexecutable -
Returns:

uses

public Transformation uses(List<CatalogType> filesorexecutables)
Set the List of files and/or executables being used by the transformation

Parameters:
filesorexecutables -
Returns:

getUses

public List<CatalogType> getUses()
Get the List of files and/or executables being used by the transformation

Returns:

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toXML

public void toXML(XMLWriter writer)

toXML

public void toXML(XMLWriter writer,
                  int indent)


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