|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuchicago.src.sim.analysis.PlotModel
uchicago.src.sim.analysis.OpenSeqStatistic
public class 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(java.lang.String fileName,
int fileFormat,
java.lang.String title,
SimModel model)
Constructs a SequenceStatistic with the specified title, file name, and file format, model. |
|
| Method Summary | |
|---|---|
Sequence |
addSequence(java.lang.String name,
Sequence sequence)
Adds the specified sequence with the specified name. |
Sequence |
createAverageSequence(java.lang.String name,
java.util.ArrayList feedFrom,
java.lang.String methodName)
Creates an Average sequence with the specified name, using data from the specified list attained through the specified method name. |
Sequence |
createSequence(java.lang.String name,
java.lang.Object feedFrom,
java.lang.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(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 Sequence createSequence(java.lang.String name,
java.lang.Object feedFrom,
java.lang.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(java.lang.String name,
Sequence sequence)
name - the name of the sequencesequence - the sequence to add
public Sequence createAverageSequence(java.lang.String name,
java.util.ArrayList feedFrom,
java.lang.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||