Class Uname
- java.lang.Object
-
- org.griphyn.vdl.Chimera
-
- edu.isi.pegasus.planner.invocation.Invocation
-
- edu.isi.pegasus.planner.invocation.MachineInfo
-
- edu.isi.pegasus.planner.invocation.Uname
-
- All Implemented Interfaces:
HasText,java.io.Serializable
public class Uname extends MachineInfo implements HasText
The uname element.- Version:
- $Revision$
- Author:
- Karan Vahi
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARCHMODE_ATTRIBUTE_KEYThe archmode attribute for the unamestatic java.lang.StringELEMENT_NAMEThe element namestatic java.lang.StringMACHINE_ATTRIBUTE_KEYThe release attribute for the unameprivate java.lang.StringBuffermValueThe text valuestatic java.lang.StringNODENAME_ATTRIBUTE_KEYThe nodename attribute for the unamestatic java.lang.StringRELEASE_ATTRIBUTE_KEYThe release attribute for the unamestatic java.lang.StringSYSTEM_ATTRIBUTE_KEYThe system attribute for the unamestatic java.lang.StringUNDEFINED_ARCHMODE_VALUEThe undefined value for archmode attribute.-
Fields inherited from class edu.isi.pegasus.planner.invocation.MachineInfo
mAttributeMap
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendValue(java.lang.String fragment)Appends a piece of text to the existing text.java.lang.StringgetElementName()Returns the name of the xml element corresponding to the object.java.lang.StringgetValue()AccessorvoidsetValue(java.lang.String value)Accessor.ArchitecturetoArchitecture()An adapter method to convert the uname object to the architecture object.static ArchitectureunameToArchitecture(Uname uname)An adapter method to convert the uname object to the architecture object.-
Methods inherited from class edu.isi.pegasus.planner.invocation.MachineInfo
addAttribute, addAttributes, get, getAttributeKeysIterator, toString, toXML
-
-
-
-
Field Detail
-
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
The element name- See Also:
- Constant Field Values
-
SYSTEM_ATTRIBUTE_KEY
public static final java.lang.String SYSTEM_ATTRIBUTE_KEY
The system attribute for the uname- See Also:
- Constant Field Values
-
NODENAME_ATTRIBUTE_KEY
public static final java.lang.String NODENAME_ATTRIBUTE_KEY
The nodename attribute for the uname- See Also:
- Constant Field Values
-
RELEASE_ATTRIBUTE_KEY
public static final java.lang.String RELEASE_ATTRIBUTE_KEY
The release attribute for the uname- See Also:
- Constant Field Values
-
MACHINE_ATTRIBUTE_KEY
public static final java.lang.String MACHINE_ATTRIBUTE_KEY
The release attribute for the uname- See Also:
- Constant Field Values
-
ARCHMODE_ATTRIBUTE_KEY
public static final java.lang.String ARCHMODE_ATTRIBUTE_KEY
The archmode attribute for the uname- See Also:
- Constant Field Values
-
UNDEFINED_ARCHMODE_VALUE
public static final java.lang.String UNDEFINED_ARCHMODE_VALUE
The undefined value for archmode attribute.- See Also:
- Constant Field Values
-
mValue
private java.lang.StringBuffer mValue
The text value
-
-
Method Detail
-
unameToArchitecture
public static Architecture unameToArchitecture(Uname uname)
An adapter method to convert the uname object to the architecture object.- Parameters:
uname- the object to be converted- Returns:
- the converted
Architectureobject
-
getElementName
public java.lang.String getElementName()
Returns the name of the xml element corresponding to the object.- Specified by:
getElementNamein classMachineInfo- Returns:
- name
-
appendValue
public void appendValue(java.lang.String fragment)
Appends a piece of text to the existing text.- Specified by:
appendValuein interfaceHasText- Parameters:
fragment- is a piece of text to append to existing text. Appendingnullis a noop.
-
getValue
public java.lang.String getValue()
Accessor- Specified by:
getValuein interfaceHasText- See Also:
setValue(String)
-
setValue
public void setValue(java.lang.String value)
Accessor.- Specified by:
setValuein interfaceHasText- Parameters:
value- is the new value to set.- See Also:
getValue()
-
toArchitecture
public Architecture toArchitecture()
An adapter method to convert the uname object to the architecture object.- Returns:
- the converted
Architectureobject
-
-