|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable org.ascape.util.data.DataGroup
public class DataGroup
A group of data points and their cooresponding series (pl) of measurements.
Constructor Summary | |
---|---|
DataGroup()
|
Method Summary | |
---|---|
void |
add(StatCollector[] addedStatCollectors)
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. |
boolean |
isCollectingLongitudinalData()
Returns if this data group's series should be collecting longitudinal data |
boolean |
removeStatCollector(StatCollector toBeRemoved)
|
void |
setCollectingLongitudinalData(boolean collectingLongitudinalData)
|
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 |
Constructor Detail |
---|
public DataGroup()
Method Detail |
---|
public void add(StatCollector[] addedStatCollectors)
addedStatCollectors
- the value stat to add to this group
Note to Miles: Right now, each StatCollector knows whether or not it is collecting
longitudinal data.public boolean removeStatCollector(StatCollector toBeRemoved)
public 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 for
public int getIndexOfSeries(DataSeries series)
series
- the series to get the index for, -1 if not in this group
public 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()
public boolean isCollectingLongitudinalData()
public void setCollectingLongitudinalData(boolean collectingLongitudinalData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |