|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jclass.chart.ChartDataSupport
|
+--uchicago.src.sim.analysis.Statistics
|
+--uchicago.src.sim.analysis.SequenceStatistic
The model for a SequenceGraph. This controls all the sequences used by a sequenceGraph.
| Field Summary |
| Fields inherited from class uchicago.src.sim.analysis.Statistics |
CSV, data, fileFormat, fileName, lastColUpdate, lastPrinted, model, title |
| Fields inherited from interface jclass.chart.Chartable |
ARRAY, GENERAL |
| Constructor Summary | |
SequenceStatistic(SimModel model)
Construct this SequenceStatistic with the specified model |
|
SequenceStatistic(String fileName,
int fileFormat,
String title,
SimModel model)
Constructs a SequenceStatistic with the specified title, file name, and file format, model. |
|
| Method Summary | |
void |
addSequence(String name,
Sequence sequence)
Adds the specified sequence with the specified name. |
void |
createAverageSequence(String name,
ArrayList feedFrom,
String methodName)
Creates an Average sequence with the specified name, using data from the specified list attained through the specified method name. |
void |
createSequence(String name,
Object feedFrom,
String methodName)
Creates a sequence with the specified name, using data from the specified object attained through the specified method name. |
void |
record()
Calculates the next item in the sequence |
void |
step()
Calculates the next item in the sequence and tells the chart to update itself. |
void |
writeToFile()
Writes the sequence out to a file |
| Methods inherited from class uchicago.src.sim.analysis.Statistics |
addChartAsListener, getDataInterpretation, getDataItem, getDataTable, getName, getNumRows, getPointLabels, getRow, getSeriesLabel, getSeriesName, renameFile, setSimModel, updateGraph |
| Methods inherited from class jclass.chart.ChartDataSupport |
addChartDataListener, fireChartDataEvent, fireChartDataEvent, removeChartDataListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SequenceStatistic(SimModel model)
public SequenceStatistic(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 void createSequence(String name,
Object feedFrom,
String methodName)
name - of the sequencefeedFrom - the object from which to collect the sequence datamethodName - the name of the method to call on the object to get the
data. This method must return a number (int etc.) or a Number (Integer etc.)
public void addSequence(String name,
Sequence sequence)
name - the name of the sequencesequence - the sequence to add
public void createAverageSequence(String name,
ArrayList feedFrom,
String methodName)
name - of the sequencefeedFrom - the list from which to collect the sequence datamethodName - the name of the method to call on the object to get the
data. This method must return a number (int etc.) or a Number (Integer etc.)public void step()
step in class Statisticspublic void record()
record in class Statisticspublic void writeToFile()
writeToFile in class Statistics
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||