Modifier and Type | Field and Description |
---|---|
protected boolean |
manualSuspend |
java.lang.Object |
pauseObject
Used for synchronization.
|
protected IterativeContext |
process |
protected boolean |
running |
protected long |
sleepTime
how long the relaxer thread pauses between iteration loops.
|
protected boolean |
stop |
protected java.lang.Thread |
thread |
Constructor and Description |
---|
VisRunner(IterativeContext process)
Creates an instance for the specified process.
|
Modifier and Type | Method and Description |
---|---|
long |
getSleepTime() |
void |
pause()
Make the relaxer thread wait.
|
void |
prerelax()
Execute a loop of steps in the calling
thread, firing no events.
|
void |
relax()
Execute a loop of steps in a new Thread,
firing an event after each step.
|
void |
resume()
Make the relaxer thread resume.
|
void |
run() |
void |
setSleepTime(long sleepTime)
Sets the sleep time.
|
void |
stop()
Set flags to stop the relaxer thread.
|
protected boolean running
protected IterativeContext process
protected boolean stop
protected boolean manualSuspend
protected java.lang.Thread thread
protected long sleepTime
public java.lang.Object pauseObject
public VisRunner(IterativeContext process)
public long getSleepTime()
public void setSleepTime(long sleepTime)
Relaxer
setSleepTime
in interface Relaxer
sleepTime
- the sleep time to set for this threadpublic void prerelax()
Relaxer
public void pause()
Relaxer
public void relax()
Relaxer
public void resume()
Relaxer
public void stop()
Relaxer
public void run()
run
in interface java.lang.Runnable
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence