|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.event.DefaultScapeListener
org.ascape.view.nonvis.NonGraphicView
org.ascape.view.nonvis.DataView
org.ascape.view.nonvis.DataOutputView
org.ascape.ant.AllOutputView
public class AllOutputView
Very similar to DataOutputView, this view outputs all model and member-agent scape data. The other differnce is that data here is written to an XML file. Note: If the RunDataSet is being used, it must be added in the Ant file before the AllOutputView.
| Field Summary | |
|---|---|
protected org.jdom.Element |
rootElement
The root element. |
| Fields inherited from class org.ascape.view.nonvis.DataOutputView |
|---|
EOLString, periodHeadersWritten, runCount, runDataStream, runFile, runHeadersWritten, startTime, writeHeaders |
| Fields inherited from class org.ascape.view.nonvis.DataView |
|---|
dataSelection |
| Fields inherited from class org.ascape.model.event.DefaultScapeListener |
|---|
listeningToScape, name, scape |
| Constructor Summary | |
|---|---|
AllOutputView()
|
|
| Method Summary | |
|---|---|
void |
addOutputData(OutputDataElement element)
Adds the output data. |
void |
scapeStarted(ScapeEvent scapeEvent)
On scape start, record the start time and wirte the file headers. |
void |
scapeStopped(ScapeEvent scapeEvent)
On scape stop, writes the run parameters to the file. |
void |
writePeriodData()
For now, not writing Period data. |
void |
writePeriodHeader()
For now, not writing Period data. |
void |
writeRunData()
Writes the current run parameters to the data stream or file. |
void |
writeRunHeader()
Writes the headers for the run parameters to the run data stream or file. |
| Methods inherited from class org.ascape.view.nonvis.DataOutputView |
|---|
getEOLSeparator, getNumCharsInFileName, getPeriodDataStream, getPeriodFile, getRunDataStream, getRunFile, scapeAdded, scapeChanged, scapeClosing, scapeDeserialized, scapeIterated, setEOLSeparator, setNumCharsInFileName, setPeriodDataStream, setPeriodFile, setRunDataStream, setRunFile, stopCondition, toString |
| Methods inherited from class org.ascape.view.nonvis.DataView |
|---|
getDataSelection |
| Methods inherited from class org.ascape.view.nonvis.NonGraphicView |
|---|
isGraphic |
| Methods inherited from class org.ascape.model.event.DefaultScapeListener |
|---|
clone, environmentQuiting, getName, getScape, isLifeOfScape, isNotifyScapeAutomatically, notifyScapeUpdated, scapeInitialized, scapeNotification, scapeRemoved, scapeSetup, setName, setNotifyScapeAutomatically |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.jdom.Element rootElement
| Constructor Detail |
|---|
public AllOutputView()
| Method Detail |
|---|
public void scapeStarted(ScapeEvent scapeEvent)
scapeStarted in interface ScapeListenerscapeStarted in class DataOutputViewscapeEvent - the scape event
public void writeRunHeader()
throws java.io.IOException
writeRunHeader in class DataOutputViewjava.io.IOException - Signals that an I/O exception has occurred.
public void writeRunData()
throws java.io.IOException
writeRunData in class DataOutputViewjava.io.IOException - Signals that an I/O exception has occurred.public void scapeStopped(ScapeEvent scapeEvent)
scapeStopped in interface ScapeListenerscapeStopped in class DataOutputViewscapeEvent - the scape eventDataOutputView.scapeStarted(org.ascape.model.event.ScapeEvent),
DataOutputView.scapeStopped(org.ascape.model.event.ScapeEvent)
public void writePeriodHeader()
throws java.io.IOException
writePeriodHeader in class DataOutputViewjava.io.IOException - Signals that an I/O exception has occurred.
public void writePeriodData()
throws java.io.IOException
writePeriodData in class DataOutputViewjava.io.IOException - Signals that an I/O exception has occurred.public void addOutputData(OutputDataElement element)
element - the element
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||