|
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.PlotModel
| Field Summary | |
static int |
CSV
|
protected int |
fileFormat
|
protected String |
fileName
|
protected int |
lastColUpdate
|
protected SimModel |
model
|
protected String |
title
|
| Constructor Summary | |
PlotModel(SimModel model)
Construct a Statistics class with the specified model |
|
PlotModel(String fileName,
int fileFormat,
String title,
SimModel model)
Constructs a Statistic with the specified title, file name, and file format, and model. |
|
| Method Summary | |
void |
addSequence(String name)
|
void |
addX(double xVal)
|
void |
addY(double yVal,
int yIndex)
|
int |
getSequenceCount()
|
ArrayList |
getSequenceNames()
|
double |
getXVal(int xIndex)
|
int |
getXValCount()
|
double |
getYVal(int sequenceIndex,
int index)
|
abstract void |
record()
Calculates the next item in the sequence |
protected void |
renameFile()
|
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 String fileName
protected int fileFormat
protected String title
protected SimModel model
protected int lastColUpdate
| Constructor Detail |
public PlotModel(SimModel model)
public PlotModel(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. PlotModel.CSVtitle - the titlemodel - the model| Method Detail |
public void addSequence(String name)
public ArrayList getSequenceNames()
public void addX(double xVal)
public void addY(double yVal,
int yIndex)
public double getXVal(int xIndex)
public double getYVal(int sequenceIndex,
int index)
public int getSequenceCount()
public int getXValCount()
public abstract void record()
protected void renameFile()
throws IOException
IOExceptionpublic abstract void writeToFile()
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||