umich.cac.data
Class NodeField

java.lang.Object
  extended byumich.cac.data.Field
      extended byumich.cac.data.NodeField

public class NodeField
extends Field

This class encapsulates Node fields. A node consists of a nodename, and optionally a cpu. PBS encodes these together in a single field, using different separators.

An example rendering output from this Field would be

 <node>
 
  <nodename>node047</nodename>
 
  <cpu>0</cpu>
 
  </node>
 
 

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/data/NodeField.html,v 1.6 2003/10/21 20:33:47 rodmach Exp $
Author:
rmach@umich.edu

Field Summary
 
Fields inherited from class umich.cac.data.Field
childrenFields, fieldName, fieldType, nl, rawValue
 
Constructor Summary
NodeField(FieldName fieldName, java.lang.String rawValue)
          Constructor for NodeField field, for a RESOURCE_USED field type
NodeField(FieldName fieldName, java.lang.String rawValue, FieldType fieldType)
          Alternate Constructor for NodeField field
 
Methods inherited from class umich.cac.data.Field
addAttribute, addChild, getAttributes, getChildren, getFieldName, getFieldType, getRawValue, setRawValue, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeField

public NodeField(FieldName fieldName,
                 java.lang.String rawValue)
Constructor for NodeField field, for a RESOURCE_USED field type

Parameters:
fieldName - Name of this field
rawValue - the raw value of this field from PBS accounting data

NodeField

public NodeField(FieldName fieldName,
                 java.lang.String rawValue,
                 FieldType fieldType)
Alternate Constructor for NodeField field

Parameters:
fieldName - Name of this field
rawValue - the raw value of this field from PBS accounting data
fieldType - The field type this should be under=