Class Transformation

java.lang.Object
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$
Author:
gmehta
  • Field Details

    • 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 Details

    • Transformation

      public Transformation(String name)
      Create a new Transformation object
      Parameters:
      name - the name of transformation
    • Transformation

      public Transformation(Transformation t)
      Copy Constructor
      Parameters:
      t - Transformation to copy from
    • Transformation

      public Transformation(String namespace, String name, String version)
      Create a new Transformation Object
      Parameters:
      namespace - the namespace
      name - the name
      version - the version
  • Method Details

    • getName

      public String getName()
      Get the name of the transformation
      Returns:
      the name
    • getNamespace

      public String getNamespace()
      Get the namespace of the transformation
      Returns:
      the namespace
    • getVersion

      public String getVersion()
      Get the version of the transformation
      Returns:
      the version
    • getInvoke

      public List<Invoke> getInvoke()
      Return the list of Notification objects
      Returns:
      List of Invoke objects
    • getNotification

      public List<Invoke> getNotification()
      Return the list of Notification objects (same as getInvoke()
      Returns:
      List of Invoke objects
    • addInvoke

      public Transformation addInvoke(Invoke.WHEN when, String what)
      Add a Notification for this Transformation
      Parameters:
      when - when to invoke the notification
      what - the executable to invoke with the arg string
      Returns:
      Transformation
    • addNotification

      public Transformation addNotification(Invoke.WHEN when, String what)
      Add a Notification for this Transformation same as addInvoke()
      Parameters:
      when - when to invoke the notification
      what - the executable to invoke with the arg string
      Returns:
      Transformation
    • addInvoke

      public Transformation addInvoke(Invoke invoke)
      Add a Notification for this Transformation
      Parameters:
      invoke - the invoke object containing the invocation to invoke
      Returns:
      Transformation
    • addInvokes

      public Transformation addInvokes(List<Invoke> invokes)
      Add a List of Notifications for this Transformation
      Parameters:
      invokes - list of notifications to associate with
      Returns:
      Transformation
    • addNotifications

      public Transformation addNotifications(List<Invoke> invokes)
      Add a List of Notifications for this Transformation. Same as addInvokes()
      Parameters:
      invokes - list of notifications to associate with
      Returns:
      Transformation
    • uses

      public Transformation uses(CatalogType fileorexecutable)
      Set the file or executable being used by the transformation
      Parameters:
      fileorexecutable - file used by executable
      Returns:
      Transformation
    • uses

      public Transformation uses(List<CatalogType> filesorexecutables)
      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

      public List<CatalogType> getUses()
      Get the List of files and/or executables being used by the transformation
      Returns:
      List of Files and Executables used
    • equals

      public boolean equals(Object obj)
      Returns boolean indicating whether this instance of object is equal to the object being passed
      Overrides:
      equals in class Object
      Parameters:
      obj - object being compared
      Returns:
      boolean
    • hashCode

      public int hashCode()
      Return the hashcode
      Overrides:
      hashCode in class Object
      Returns:
      int
    • toString

      public String toString()
      Return the String version
      Overrides:
      toString in class Object
      Returns:
      String
    • 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 writer
      indent - number pf indent spaces