|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.analysis.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 String |
fileName
|
protected int |
lastColUpdate
|
protected long |
lastPrinted
|
protected SimModel |
model
|
protected String |
title
|
| Constructor Summary | |
OpenStats(SimModel model)
Construct a Statistics class with the specified model |
|
OpenStats(String fileName,
int fileFormat,
String title,
SimModel model)
Constructs a Statistic with the specified title, file name, and file format, and model. |
|
| Method Summary | |
Object |
getDataItem(int row,
int col)
|
Vector |
getDataTable()
|
String |
getName()
|
int |
getNumRows()
|
String[] |
getPointLabels()
|
Vector |
getRow(int row)
|
String |
getSeriesLabel(int parm1)
|
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 String fileName
protected int fileFormat
protected long lastPrinted
protected String title
protected SimModel model
protected int lastColUpdate
| Constructor Detail |
public OpenStats(SimModel model)
public OpenStats(String fileName,
int fileFormat,
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 Vector getDataTable()
protected void renameFile()
throws IOException
IOExceptionpublic abstract void writeToFile()
public void setSimModel(SimModel model)
public Object getDataItem(int row,
int col)
public String getName()
public int getNumRows()
public String[] getPointLabels()
public Vector getRow(int row)
public String getSeriesLabel(int parm1)
public String getSeriesName(int parm1)
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||