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 OpenStats

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

Direct Known Subclasses:
  OpenHistogramStat

    public abstract class OpenStats

extends java.lang.Object

Statistics: base class for the statistics classes that form the model (MVC) for SimGraphs.

Version:
  $Revision: 1.5 $ $Date: 2004/11/03 19:51:00 $
Author:
  Nick Collier

Field Summary
`static int` | `CSV`
`protected OpenArrayData` | `data`
`protected int` | `fileFormat`
`protected java.lang.String` | `fileName`
`protected int` | `lastColUpdate`
`protected long` | `lastPrinted`
`protected SimModel` | `model`
`protected java.lang.String` | `title`

Constructor Summary
`OpenStats(SimModel model)` Construct a Statistics class with the specified model
`OpenStats(java.lang.String fileName, int fileFormat, java.lang.String title, SimModel model)` Constructs a Statistic with the specified title, file name, and file format, and model.

Method Summary
`java.lang.Object` | `getDataItem(int row, int col)`
`java.util.Vector` | `getDataTable()`
`java.lang.String` | `getName()`
`int` | `getNumRows()`
`java.lang.String[]` | `getPointLabels()`
`java.util.Vector` | `getRow(int row)`
`java.lang.String` | `getSeriesLabel(int parm1)`
`java.lang.String` | `getSeriesName(int parm1)`
`abstract void` | `record()` Calculates the next item in the sequence
`protected void` | `renameFile()`
`void` | `setSimModel(SimModel model)` Sets the simulation model.
`abstract void` | `writeToFile()` Writes the data stored by this call to a file specified in the constructor.

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

Field Detail

### CSV

    public static final int CSV

See Also:
  Constant Field Values

### data

    protected OpenArrayData data

### fileName

    protected java.lang.String fileName

### fileFormat

    protected int fileFormat

### lastPrinted

    protected long lastPrinted

### title

    protected java.lang.String title

### model

    protected SimModel model

### lastColUpdate

    protected int lastColUpdate

Constructor Detail

### OpenStats

    public OpenStats(SimModel model)

  Construct a Statistics class with the specified model

### OpenStats

    public OpenStats(java.lang.String fileName,
                     int fileFormat,
                     java.lang.String title,
                     SimModel model)

  Constructs a Statistic with the specified title, file name, and file format, and model.

  Parameters:
    `fileName` - the name of the file to write the sequence data to
    `fileFormat` - the format of the file - i.e. Statistics.CSV
    `title` - the title
    `model` - the model

Method Detail

### record

    public abstract void record()

  Calculates the next item in the sequence

### getDataTable

    public java.util.Vector getDataTable()

### renameFile

    protected void renameFile()
                       throws java.io.IOException

  Throws:
    `java.io.IOException`

### writeToFile

    public abstract void writeToFile()

  Writes the data stored by this call to a file specified in the constructor.

### setSimModel

    public void setSimModel(SimModel model)

  Sets the simulation model.

### getDataItem

    public java.lang.Object getDataItem(int row,
                                        int col)

### getName

    public java.lang.String getName()

### getNumRows

    public int getNumRows()

### getPointLabels

    public java.lang.String[] getPointLabels()

### getRow

    public java.util.Vector getRow(int row)

### getSeriesLabel

    public java.lang.String getSeriesLabel(int parm1)

### getSeriesName

    public java.lang.String getSeriesName(int parm1)

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