Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uchicago.src.sim.analysis
Class SimDataNew

    java.lang.Object
      uchicago.src.sim.analysis.SimDataNew

All Implemented Interfaces:
  java.io.Serializable

    public class SimDataNew

extends java.lang.Object
implements java.io.Serializable

Holds data in tabular format - a vector of vectors. Also provides methods for printing the data to a file.

Version:
  $Revision: 1.10 $ $Date: 2004/11/03 19:51:00 $
Author:
  Nick Collier
See Also:
  `DataRecorder`, Serialized Form

Nested Class Summary
`class` | `SimDataNew.SimDataIterator`

Constructor Summary
`SimDataNew(java.lang.String modelHeader)` Constructs a new SimData object from the model header, model and batch flag

Method Summary
`void` | `addData(java.util.List v)` Add a vector of data to this SimData.
`void` | `addToHeader(java.util.List l)` Adds the specified list to the header associated with this data
`void` | `addToHeader(java.lang.String s)` Adds the specified String to the header associated with this data
`void` | `clearData()`
`java.lang.String` | `getData()` Get the data stored in this SimData object and clear this object.
`java.lang.String` | `getHeader()`
`java.lang.String` | `getModelHeader()`
`java.util.Iterator` | `iterator()`
`void` | `setDelimiter(java.lang.String delim)` Sets the column delimiter.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimDataNew

    public SimDataNew(java.lang.String modelHeader)

  Constructs a new SimData object from the model header, model and batch flag

  Parameters:
    `modelHeader` - the file header.

Method Detail

### getHeader

    public java.lang.String getHeader()

### getModelHeader

    public java.lang.String getModelHeader()

### setDelimiter

    public void setDelimiter(java.lang.String delim)

  Sets the column delimiter. Data is written out in tabular format where the columns are separated by the specified delimiter.

  Parameters:
    `delim` - the new delimiter

### addToHeader

    public void addToHeader(java.lang.String s)

  Adds the specified String to the header associated with this data

### addToHeader

    public void addToHeader(java.util.List l)

  Adds the specified list to the header associated with this data

### addData

    public void addData(java.util.List v)

  Add a vector of data to this SimData.

  Parameters:
    `v` - the data to add.

### getData

    public java.lang.String getData()

  Get the data stored in this SimData object and clear this object. This is the preferred way of recording data. Get the data as a String and return it to the recorder object.

  Returns:
    The data currently in the SimData object.

### clearData

    public void clearData()

### iterator

    public java.util.Iterator iterator()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD