|
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.ArrayData
A collection class used by the Statistic classes to hold their data. Implements the jclass.chart.Chartable interface in order that the data can be charted by a JClass chart. The data here is in tabular form (a Vector of Vectors) as x,y pairs. The first row holds the x values, while the next holds the y values that correspond to these x values. Any additional rows are additional y values that also correspond to the x values. Each x, y row pair is a series.
| Field Summary | |
String[] |
ptLabels
|
| Fields inherited from interface jclass.chart.Chartable |
ARRAY, GENERAL |
| Constructor Summary | |
ArrayData()
Constructs this ArrayData object |
|
| Method Summary | |
void |
addSeries(String label)
Adds a series with the specified name to the data table. |
void |
addX(double x)
Adds an x value |
void |
addY(double y,
int series)
Adds a Y value to the specified series |
int |
getColSize()
Gets the current column size. |
int |
getDataInterpretation()
|
Object |
getDataItem(int row,
int col)
|
String |
getName()
|
int |
getNumRows()
|
String[] |
getPointLabels()
|
Vector |
getRow(int row)
|
String |
getSeriesLabel(int parm1)
|
Vector |
getSeriesLabels()
Gets the names (labels) of the series |
String |
getSeriesName(int parm1)
|
void |
setPointLabels(String[] labels)
Sets the point labels (labels for each x value) |
void |
setYValues(Vector yVals,
int series)
Sets a Vector of y values as a series |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String[] ptLabels
| Constructor Detail |
public ArrayData()
| Method Detail |
public void addX(double x)
x - the x value to add
public void addY(double y,
int series)
series - the series to add the y value to.
public void setYValues(Vector yVals,
int series)
yVals - the y values to addseries - the series of these yValspublic void addSeries(String label)
label - the label for the seriespublic void setPointLabels(String[] labels)
labels - the labels to setpublic Vector getSeriesLabels()
public int getColSize()
public int getDataInterpretation()
getDataInterpretation in interface jclass.chart.Chartable
public Object getDataItem(int row,
int col)
getDataItem in interface jclass.chart.Chartablepublic String getName()
getName in interface jclass.chart.Chartablepublic int getNumRows()
getNumRows in interface jclass.chart.Chartablepublic String[] getPointLabels()
getPointLabels in interface jclass.chart.Chartablepublic Vector getRow(int row)
getRow in interface jclass.chart.Chartablepublic String getSeriesLabel(int parm1)
getSeriesLabel in interface jclass.chart.Chartablepublic String getSeriesName(int parm1)
getSeriesName in interface jclass.chart.Chartable
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||