|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.model.event.DefaultScapeListener org.ascape.view.nonvis.NonGraphicView org.ascape.view.nonvis.DataView org.ascape.view.nonvis.ConsoleOutView
public class ConsoleOutView
A view providing basic system out reporting.
Field Summary | |
---|---|
static java.lang.String |
EOL
The character(s) to use for end-of-line. |
Fields inherited from class org.ascape.view.nonvis.DataView |
---|
dataSelection |
Fields inherited from class org.ascape.model.event.DefaultScapeListener |
---|
listeningToScape, name, scape |
Constructor Summary | |
---|---|
ConsoleOutView()
|
Method Summary | |
---|---|
boolean |
isPrintResultsEachPeriod()
Are results being printed to standard out every period? False by default. |
void |
print(java.lang.String string)
|
void |
println()
|
void |
println(java.lang.String string)
|
java.lang.String |
resultsDescription()
Prints the current model results to standard out. |
void |
scapeIterated(ScapeEvent scapeEvent)
On update, if printing results on update, print the current results to the screen. |
void |
scapeStarted(ScapeEvent scapeEvent)
On start, print the model settings to the console. |
void |
scapeStopped(ScapeEvent scapeEvent)
On stop, print the time taken and final results to the screen. |
void |
setIMessageStream(IMessageStream consoleStream)
|
void |
setPrintResultsEachPeriod(boolean printResultsEachPeriod)
Should results be printed to standard out every period?. |
void |
setSystemStream()
|
java.lang.String |
settingsDescription()
Prints the current model settings to standard out. |
java.lang.String |
stopDescription()
Stop description. |
Methods inherited from class org.ascape.view.nonvis.DataView |
---|
getDataSelection, scapeAdded |
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, scapeClosing, scapeDeserialized, scapeInitialized, scapeNotification, scapeRemoved, scapeSetup, setName, setNotifyScapeAutomatically, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String EOL
Constructor Detail |
---|
public ConsoleOutView()
Method Detail |
---|
public java.lang.String settingsDescription()
public java.lang.String resultsDescription()
public boolean isPrintResultsEachPeriod()
public void setPrintResultsEachPeriod(boolean printResultsEachPeriod)
printResultsEachPeriod
- true to print results each period, false to print results on
stop only.public void scapeStarted(ScapeEvent scapeEvent)
scapeStarted
in interface ScapeListener
scapeStarted
in class DefaultScapeListener
scapeEvent
- the scape eventpublic void print(java.lang.String string)
public void println()
public void println(java.lang.String string)
public void scapeIterated(ScapeEvent scapeEvent)
scapeIterated
in interface ScapeListener
scapeIterated
in class DefaultScapeListener
scapeEvent
- the scape eventpublic void scapeStopped(ScapeEvent scapeEvent)
scapeStopped
in interface ScapeListener
scapeStopped
in class DefaultScapeListener
scapeEvent
- the scape eventpublic java.lang.String stopDescription()
public void setSystemStream()
public void setIMessageStream(IMessageStream consoleStream)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |