org.gridbus.broker.jobdescription.commands
Class SubstituteCommand

java.lang.Object
  extended by org.gridbus.broker.jobdescription.TaskCommand
      extended by org.gridbus.broker.jobdescription.commands.SubstituteCommand

public class SubstituteCommand
extends TaskCommand

This class represents a substitute command

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
SubstituteCommand()
          Constructs a SubstituteCommand and sets its command type.
 
Method Summary
 java.lang.Object clone()
           
 void doSubstitution(java.util.Map map)
          Substitutes the source file with values in the map
 void doSubstitutionwin(java.util.Map map)
          Substitution for Windows OS
 java.lang.String getDestination()
          Returns the destination file
 java.lang.String getSource()
          Returns the source file
 int getType()
          Gets which type of command this is.
 void setDestination(java.lang.String string)
          Sets the destination file location for the substitute command.
 void setSource(java.lang.String string)
          Sets the source file location for this substitute command.
static java.lang.String substituteVariables(java.lang.String st, java.util.Map variableValues)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubstituteCommand

public SubstituteCommand()
Constructs a SubstituteCommand and sets its command type.

Method Detail

doSubstitution

public void doSubstitution(java.util.Map map)
Substitutes the source file with values in the map

Parameters:
map -

doSubstitutionwin

public void doSubstitutionwin(java.util.Map map)
Substitution for Windows OS

Parameters:
map -
See Also:
#doSubstitution(Hashtable)

substituteVariables

public static java.lang.String substituteVariables(java.lang.String st,
                                                   java.util.Map variableValues)
Parameters:
st -
variables - (value table)
Returns:

getDestination

public java.lang.String getDestination()
Returns the destination file

Returns:
string

getSource

public java.lang.String getSource()
Returns the source file

Returns:
string

setDestination

public void setDestination(java.lang.String string)
Sets the destination file location for the substitute command.

Parameters:
string -

setSource

public void setSource(java.lang.String string)
Sets the source file location for this substitute command.

Parameters:
string -

toString

public java.lang.String toString()
Overrides:
toString in class TaskCommand
See Also:
Object.toString()

getType

public int getType()
Description copied from class: TaskCommand
Gets which type of command this is.

Specified by:
getType in class TaskCommand
Returns:
the type of this command.

clone

public java.lang.Object clone()
Specified by:
clone in class TaskCommand

Copyright © The University of Melbourne. 2006