edu.brook.ascape.view
Class StandardOutView

java.lang.Object
  |
  +--edu.brook.ascape.view.NonGraphicView
        |
        +--edu.brook.ascape.view.DataView
              |
              +--edu.brook.ascape.view.StandardOutView

public class StandardOutView
extends DataView

A view providing basic system out reporting.

Since:
1.2
Version:
1.2 8/4/1999 first in

Field Summary
 boolean printResultsEachPeriod
          Display results for every iteration?
protected  long startTime
          The time the current run was started.
 
Fields inherited from class edu.brook.ascape.view.DataView
dataSelection
 
Fields inherited from class edu.brook.ascape.view.NonGraphicView
name, scape
 
Constructor Summary
StandardOutView()
           
 
Method Summary
 boolean isPrintResultsEachPeriod()
          Are results being printed to standard out every period? False by default.
 void onStart()
          On start, print the model settings to the console.
 void onStop()
          On stop, print the time taken and final results to the screen.
 void onUpdate()
          On update, if printing results on update, print the current results to the screen.
 void printResults()
          Prints the current model results to standard out.
 void printSettings()
          Prints the current model settings to standard out.
 void setPrintResultsEachPeriod(boolean printResultsEachPeriod)
          Should results be printed to standard out every period?
 
Methods inherited from class edu.brook.ascape.view.DataView
addScape, getDataSelection
 
Methods inherited from class edu.brook.ascape.view.NonGraphicView
getName, getScape, NonGraphicView, NonGraphicView, onClose, onIterate, onSetup, removeScape, scapeUpdated, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

printResultsEachPeriod

public boolean printResultsEachPeriod
Display results for every iteration?

startTime

protected long startTime
The time the current run was started. Used to track elapsed time for each run.
Constructor Detail

StandardOutView

public StandardOutView()
Method Detail

printSettings

public void printSettings()
Prints the current model settings to standard out.

printResults

public void printResults()
Prints the current model results to standard out.

isPrintResultsEachPeriod

public boolean isPrintResultsEachPeriod()
Are results being printed to standard out every period? False by default.

setPrintResultsEachPeriod

public void setPrintResultsEachPeriod(boolean printResultsEachPeriod)
Should results be printed to standard out every period?
Parameters:
printResultsEachPeriod - true to print results each period, false to print results on stop only.

onStart

public void onStart()
On start, print the model settings to the console.
Overrides:
onStart in class NonGraphicView
See Also:
edu.brook.pd.PD2D#onSetup

onUpdate

public void onUpdate()
On update, if printing results on update, print the current results to the screen.
Overrides:
onUpdate in class NonGraphicView

onStop

public void onStop()
On stop, print the time taken and final results to the screen.
Overrides:
onStop in class NonGraphicView

(c) 1998-2000 The Brookings Insitution
Webpage