umich.cac.data
Class MemField

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

public class MemField
extends Field

This class encapsulates memory field data. Memory in PBS is encoded as "1234kb" where the data AND the unites are in the same field. It is nice to have the units seperate from the data. Thus two children are created MEMORY and UNITS, so the results XML looks like

  <mem> <memory>15848</memory> <units>kb</units> </mem>
 

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/data/MemField.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
MemField(FieldName fieldName, java.lang.String rawValue)
          Constructor for MemField 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

MemField

public MemField(FieldName fieldName,
                java.lang.String rawValue)
Constructor for MemField field

Parameters:
fieldName - FieldName describing this field, like MEM or VMEM
rawValue - The raw value of this field from accounting data