Constructs activity to generate configurations with
the given integrator (which is final). Defaults include
interval = 1, doSleep given by Default class, and sleepPeriod = 10.
public ActivityIntegrate(IIntegrator integrator,
protected void run()
Main loop for conduct of integration. Repeatedly calls doStep() method,
while checking for halt/pause/reset requests, firing regular interval events,
and entering a brief sleep state if so indicated by doSleep flag. Integration
loop continues until number of steps equals maxSteps field. This method should
not be called directly, but instead is called by the instance's actionPerformed method.
Amount of time that thread is kept in sleep state after
each doStep done on integrator. If doSleep is false, this no sleep
is performed and this parameter has no effect.
sleep period, in milliseconds.
public void setSleepPeriod(int sleepPeriod)
Sets amount of time that thread is kept in sleep state after
each doStep done on integrator. Default value is 0.
public long getMaxSteps()
Accessor method for the number of doStep calls to be
performed by this integrator after it is started.
public void setMaxSteps(long maxSteps)
Mutator method for the number of doStep steps to be
performed by this integrator after it is started. Can
be changed while activity is running; if set to a value
less than number of steps already executed, integration will end.