|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MainSynchronizer
The main synchronizer allows to synchronize the SynchronizerCore and the Synchronizer3D.
| Field Summary |
|---|
| Fields inherited from interface barsuift.simLife.process.Synchronizer |
|---|
CYCLE_LENGTH_3D_MS, CYCLE_LENGTH_CORE_MS |
| Method Summary | |
|---|---|
Speed |
getSpeed()
Returns the speed of the main synchronizer. |
void |
oneStep()
Execute one step of the synchronizer. |
void |
setSpeed(Speed speed)
Sets the speed of the current main synchronizer. |
void |
stopAndWait()
Stop the synchronizer and sleep until the synchronizer is fully stopped. |
| Methods inherited from interface barsuift.simLife.process.Synchronizer |
|---|
isRunning, start, stop |
| Methods inherited from interface barsuift.simLife.message.Publisher |
|---|
addSubscriber, clearChanged, countSubscribers, deleteSubscriber, deleteSubscribers, hasChanged, notifySubscribers, notifySubscribers, setChanged |
| Methods inherited from interface barsuift.simLife.Persistent |
|---|
getState, synchronize |
| Method Detail |
|---|
void setSpeed(Speed speed)
speed - the speedSpeed getSpeed()
void oneStep()
It is more or less equivalent to calling Synchronizer.start() method, followed by the Synchronizer.stop() method. The
additional value of this method is that it guarantees that only one step is executed.
java.lang.IllegalStateException - if the synchronizer is already runningvoid stopAndWait()
java.lang.IllegalStateException - if the synchronizer is not running
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||