edu.brook.ascape.view
Class SweepControlView
java.lang.Object
|
+--edu.brook.ascape.view.NonGraphicView
|
+--edu.brook.ascape.view.SweepControlView
- public class SweepControlView
- extends NonGraphicView
A view that is used in conjunction with a sweep group to control model parameters.
While sweep group continues to have a next parameter setting state, the sweep control view
will restart the scape with the next sweep group settings.
- Since:
- 1.9
- Version:
- 1.9 8/1/00
- See Also:
SweepGroup,
DataOutputView,
Scape
|
Method Summary |
SweepGroup |
getSweepGroup()
Sets the runs per, or number of runs per each sweep setting. |
void |
onSetup()
On scape setup, create a new file and set the output stream to write to it. |
void |
onStop()
On scape stop, close the data stream and files. |
void |
setSweepGroup(SweepGroup sweep)
Returns the runs per, or number of runs per each sweep setting. |
java.lang.String |
toString()
Returns a string describing this as a "Sweep Control View". |
| Methods inherited from class edu.brook.ascape.view.NonGraphicView |
addScape,
getName,
getScape,
NonGraphicView,
NonGraphicView,
onClose,
onIterate,
onStart,
onUpdate,
removeScape,
scapeUpdated,
setName |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
SweepControlView
public SweepControlView()
- Consturcts a new sweep view.
SweepControlView
public SweepControlView(SweepGroup sweep)
- Consturcts a new sweep view.
- Parameters:
sweep - the sweep group that will be used for this sweep view.
onSetup
public void onSetup()
- On scape setup, create a new file and set the output stream to write to it.
- Overrides:
- onSetup in class NonGraphicView
onStop
public void onStop()
- On scape stop, close the data stream and files. If you don't want the file closed
on stop, override this method. Similarily, you could override onStart to open a new
data stream.
- Overrides:
- onStop in class NonGraphicView
- See Also:
DataOutputView.onStart(),
DataOutputView.onStop()
getSweepGroup
public SweepGroup getSweepGroup()
- Sets the runs per, or number of runs per each sweep setting.
setSweepGroup
public void setSweepGroup(SweepGroup sweep)
- Returns the runs per, or number of runs per each sweep setting.
toString
public java.lang.String toString()
- Returns a string describing this as a "Sweep Control View".
- Overrides:
- toString in class NonGraphicView