edu.brook.ascape.view
Class DataView
java.lang.Object
|
+--edu.brook.ascape.view.NonGraphicView
|
+--edu.brook.ascape.view.DataView
- Direct Known Subclasses:
- DataOutputView, StandardOutView
- public class DataView
- extends NonGraphicView
A non-graphic view providing output of model data to a file.
To use, (assuming you are collecting the statistics you are interested in, see Scape)
just add this view to any scape, and set a file or data strem for it. Every period,
statistic measurements will be written to the file or data strem. By default, all
statistics are selected; get data selection to make different selections.
DataOutputView provides an implementation of this class that handles multiple
files and runs.
- Since:
- 1.2
- Version:
- 1.2 8/4/99
- See Also:
DataOutputView,
Scape
| Methods inherited from class edu.brook.ascape.view.NonGraphicView |
getName,
getScape,
NonGraphicView,
NonGraphicView,
onClose,
onIterate,
onSetup,
onStart,
onStop,
onUpdate,
removeScape,
scapeUpdated,
setName,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
dataSelection
protected DataSelection dataSelection
- The selection of data that is be written.
DataView
public DataView()
getDataSelection
public DataSelection getDataSelection()
- Returns the data group selection for this data output view.
Selected data series will be exported to the file.
By default, all series are selected.
addScape
public void addScape(Scape scape)
throws java.util.TooManyListenersException
- Add a scape to the view. A view can be assigned only one scape.
Creates a new data selection for data output, backed by the Scape's data group.
- Parameters:
scape - the scape to make this canvas the observer of- Throws:
- java.util.TooManyListenersException - on attempt to add a scape when one is allready added
- Overrides:
- addScape in class NonGraphicView