|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Synchronizer3D
The synchronizer3D allows to run a list of given SplitConditionalTask at a constant rate.
The synchronizer is able to manage a stepSize parameter, which is reflected to its synchronized
SplitConditionalTask.
| Field Summary |
|---|
| Fields inherited from interface barsuift.simLife.process.Synchronizer |
|---|
CYCLE_LENGTH_3D_MS, CYCLE_LENGTH_CORE_MS |
| Method Summary | |
|---|---|
int |
getStepSize()
Returns the step size of the 3D synchronizer. |
void |
schedule(SplitConditionalTask task)
Adds the given task to the list of synchronized tasks. |
void |
setBarrier(java.util.concurrent.CyclicBarrier barrier)
Set the barrier to use for synchronization purpose. |
void |
setStepSize(int stepSize)
Sets the step size of the current 3D synchronizer. |
void |
unschedule(SplitConditionalTask task)
Remove the given task from the list of synchronized tasks. |
| 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.message.Subscriber |
|---|
update |
| Methods inherited from interface barsuift.simLife.Persistent |
|---|
getState, synchronize |
| Method Detail |
|---|
void setStepSize(int stepSize)
stepSize - the step sizeint getStepSize()
void schedule(SplitConditionalTask task)
schedule in interface TaskSynchronizer<SplitConditionalTask>task - the task to synchronizevoid unschedule(SplitConditionalTask task)
unschedule in interface TaskSynchronizer<SplitConditionalTask>task - the task to desynchronizevoid setBarrier(java.util.concurrent.CyclicBarrier barrier)
barrier - the cyclic barrier used to synchronize the synchronizer with other synchronizers
java.lang.IllegalArgumentException - if the given barrier is null
java.lang.IllegalStateException - if a barrier has already been set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||