org.griphyn.cPlanner.classes
Class Profile

java.lang.Object
  extended by org.griphyn.cPlanner.classes.Data
      extended by org.griphyn.cPlanner.classes.Profile
All Implemented Interfaces:
Cloneable

public class Profile
extends Data

This Class hold informations about profiles associated with a tc.

Version:
$Revision: 109 $
Author:
Gaurang Mehta gmehta@isi.edu, Karan Vahi vahi@isi.edu

Field Summary
static String CONDOR
           
static String DAGMAN
           
static String ENV
           
static String GLOBUS
           
static String HINTS
           
private static Escape mEscape
          A private static handle to the escape class.
private  String mKey
           
private  String mNamespace
           
private  String mValue
           
static String VDS
           
 
Fields inherited from class org.griphyn.cPlanner.classes.Data
mLogger, mLogMsg
 
Constructor Summary
Profile()
          C'tpr for the class;
Profile(String namespace, String key, String value)
          This constructor allows to set the namespace , key and value of the PoolProfile.
 
Method Summary
 Object clone()
          Returns a copy of the object.
 List getProfile()
          Returns the Profile (namespace, value and key);
 String getProfileKey()
          Returns the Key of the Profile
 String getProfileNamespace()
          Returns the NameSpace of the Profile
 String getProfileValue()
          Returns the Value for the profile
 void setProfile(String namespace, String key, String value)
          This method allows to set the namespace , key and value of the Profile.
 String toMultiLine()
          Returns the textual description of the contents of Profile object in the multiline format.
 String toString()
          This method returns a string of the contents of this object.
 String toXML()
          This method returns an xml of the contents of this object.
static String validTypesToString()
          Returns a comma separated string containing the valid namespace types.
 
Methods inherited from class org.griphyn.cPlanner.classes.Data
setToString, vectorToString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mEscape

private static Escape mEscape
A private static handle to the escape class.


CONDOR

public static final String CONDOR
See Also:
Constant Field Values

GLOBUS

public static final String GLOBUS
See Also:
Constant Field Values

VDS

public static final String VDS
See Also:
Constant Field Values

DAGMAN

public static final String DAGMAN
See Also:
Constant Field Values

HINTS

public static final String HINTS
See Also:
Constant Field Values

ENV

public static final String ENV
See Also:
Constant Field Values

mNamespace

private String mNamespace

mKey

private String mKey

mValue

private String mValue
Constructor Detail

Profile

public Profile()
C'tpr for the class;

Throws:
Exception

Profile

public Profile(String namespace,
               String key,
               String value)
This constructor allows to set the namespace , key and value of the PoolProfile.

Parameters:
namespace - Takes a String as the namespace. Has to be one of the predefined types.
key - Takes a String as the key.
value - The value for the key as String
Throws:
Exception
Method Detail

validTypesToString

public static String validTypesToString()
Returns a comma separated string containing the valid namespace types.

Returns:
comma separated list.

setProfile

public void setProfile(String namespace,
                       String key,
                       String value)
This method allows to set the namespace , key and value of the Profile.

Parameters:
namespace - Takes a String as the namespace. Has to be one of the predefined types.
key - Takes a String as the key.
value - The value for the key as String
Throws:
Exception

getProfile

public List getProfile()
Returns the Profile (namespace, value and key);

Returns:
ArrayList

getProfileNamespace

public String getProfileNamespace()
Returns the NameSpace of the Profile

Returns:
String

getProfileKey

public String getProfileKey()
Returns the Key of the Profile

Returns:
String

getProfileValue

public String getProfileValue()
Returns the Value for the profile

Returns:
String

toMultiLine

public String toMultiLine()
Returns the textual description of the contents of Profile object in the multiline format.

Returns:
the textual description in multiline format.

toString

public String toString()
This method returns a string of the contents of this object. The values are always escaped.

Specified by:
toString in class Data
Returns:
String
See Also:
Escape

toXML

public String toXML()
This method returns an xml of the contents of this object.

Returns:
String.

clone

public Object clone()
Returns a copy of the object.

Overrides:
clone in class Object
Returns:
copy of the object.


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