|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.OpenStats
public abstract class OpenStats
Statistics: base class for the statistics classes that form the model (MVC) for SimGraphs.
| 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 |
|---|
public static final int CSV
protected OpenArrayData data
protected java.lang.String fileName
protected int fileFormat
protected long lastPrinted
protected java.lang.String title
protected SimModel model
protected int lastColUpdate
| Constructor Detail |
|---|
public OpenStats(SimModel model)
public OpenStats(java.lang.String fileName,
int fileFormat,
java.lang.String title,
SimModel model)
fileName - the name of the file to write the sequence data tofileFormat - the format of the file - i.e. Statistics.CSVtitle - the titlemodel - the model| Method Detail |
|---|
public abstract void record()
public java.util.Vector getDataTable()
protected void renameFile()
throws java.io.IOException
java.io.IOExceptionpublic abstract void writeToFile()
public void setSimModel(SimModel model)
public java.lang.Object getDataItem(int row,
int col)
public java.lang.String getName()
public int getNumRows()
public java.lang.String[] getPointLabels()
public java.util.Vector getRow(int row)
public java.lang.String getSeriesLabel(int parm1)
public java.lang.String getSeriesName(int parm1)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||