public class Scheduler extends Object
The Scheduler
defines JBotSim's scheduler.
On each clock, it performs the following:
MessageEngine.onClock()
Node
(via Node.onPreClock()
Node
(via Node.onPreClock()
Node
(via Node.onClock()
Node
(via Node.onPostClock()
Topology
(via Topology.onClock()
ClockListener.onClock()
Constructor and Description |
---|
Scheduler() |
Modifier and Type | Method and Description |
---|---|
void |
onClock(Topology tp,
List<ClockListener> expiredListeners)
Performs the regular scheduling operations.
|
public void onClock(Topology tp, List<ClockListener> expiredListeners)
tp
- a Topology
object on which the scheduling must take placeexpiredListeners
- a list of ClockListener
that are to be informed