|
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
|
+--uchicago.src.sim.analysis.OpenSeqStatistic
The model for a SequenceGraph. This controls all the sequences used by a sequenceGraph.
| Field Summary |
| Fields inherited from class uchicago.src.sim.analysis.PlotModel |
CSV, fileFormat, fileName, lastColUpdate, model, title |
| Constructor Summary | |
OpenSeqStatistic(SimModel model)
Construct this SequenceStatistic with the specified model |
|
OpenSeqStatistic(String fileName,
int fileFormat,
String title,
SimModel model)
Constructs a SequenceStatistic with the specified title, file name, and file format, model. |
|
| Method Summary | |
Sequence |
addSequence(String name,
Sequence sequence)
Adds the specified sequence with the specified name. |
Sequence |
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. |
Sequence |
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. |
double |
getYVal(int sequenceIndex,
int xIndex)
|
void |
record()
Calculates the next item in the sequence |
void |
writeToFile()
Writes the sequence out to a file |
| Methods inherited from class uchicago.src.sim.analysis.PlotModel |
addSequence, addX, addY, getSequenceCount, getSequenceNames, getXVal, getXValCount, renameFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpenSeqStatistic(SimModel model)
public OpenSeqStatistic(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 Sequence 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 Sequence addSequence(String name,
Sequence sequence)
name - the name of the sequencesequence - the sequence to add
public Sequence 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 double getYVal(int sequenceIndex,
int xIndex)
getYVal in class PlotModelpublic void record()
record in class PlotModelpublic void writeToFile()
writeToFile in class PlotModel
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||