|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Observable
|
+--edu.brook.ascape.util.DataGroup
A group of data points and their cooresponding series (pl) of measurements.
| Field Summary | |
protected DataSeries[] |
dataSeries
The data series (pl) that record a measure for a statistic for every iteration. |
protected java.util.Vector |
periods
A vector of Doubles for each iteration; typically a series {s, s + 1, s + 2 ... |
protected Scape |
scape
The scape that this data group belongs to. |
protected StatCollector[] |
stats
The stats that make up the data group. |
| Constructor Summary | |
DataGroup()
|
|
| Method Summary | |
void |
add(StatCollector[] addStatCollectors)
Adds the supplied stats to this group, creating all appropriate data series for them. |
void |
clear()
Clears all data for the group. |
int |
getIndexOfSeries(DataSeries series)
Returns the internal index of the series. |
int |
getIndexOfSeries(java.lang.String name)
Returns the internal index of the series from the series name. |
protected int |
getIndexOfStatCollector(java.lang.String name)
Returns the internal index of the stat from the stat name. |
java.util.Vector |
getPeriods()
Returns a vector of periods for which statistics have been collected. |
Scape |
getScape()
Returns the scape that this data group is primarily related to. |
DataSeries |
getSeries(int index)
Returns the series at the provided index. |
DataSeries |
getSeries(java.lang.String name)
Returns the series with the provided name. |
java.lang.String[] |
getSeriesNames()
Returns the names of every data series in this group. |
int |
getSize()
Returns the total number of data series that comprise this group. |
StatCollector |
getStatCollector(int index)
Returns the stat at the provided index. |
StatCollector |
getStatCollector(java.lang.String name)
Returns the stat with the provided name. |
java.lang.String[] |
getStatCollectorNames()
Returns the names of every statistic in this group. |
StatCollector[] |
getStatCollectors()
Return the stats that comprise this group of data. |
void |
setScape(Scape scape)
Sets the scape that this data group is primarily related to. |
void |
update()
Called when all data has been collected for a data group for a given period. |
| Methods inherited from class java.util.Observable |
addObserver,
clearChanged,
countObservers,
deleteObserver,
deleteObservers,
hasChanged,
notifyObservers,
notifyObservers,
setChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Scape scape
protected StatCollector[] stats
protected java.util.Vector periods
protected DataSeries[] dataSeries
| Constructor Detail |
public DataGroup()
| Method Detail |
public void add(StatCollector[] addStatCollectors)
addStatCollectors - the value stat to add to this grouppublic StatCollector[] getStatCollectors()
public void update()
public void clear()
public void setScape(Scape scape)
scape - the scape this agent is belongs topublic Scape getScape()
public java.util.Vector getPeriods()
public int getSize()
public int getIndexOfSeries(java.lang.String name)
name - the name of the series to get the index forpublic int getIndexOfSeries(DataSeries series)
series - the series to get the index for, -1 if not in this grouppublic DataSeries getSeries(int index)
public DataSeries getSeries(java.lang.String name)
public java.lang.String[] getSeriesNames()
protected int getIndexOfStatCollector(java.lang.String name)
public StatCollector getStatCollector(int index)
public StatCollector getStatCollector(java.lang.String name)
public java.lang.String[] getStatCollectorNames()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||