- All Known Implementing Classes:
AbstractAgent,AgentModel,AgentNode,Clock,MetaEdgeAgent,MetaHostAgent,MetaLaneAgent,MetaMeshAgent,MetaPartAgent,SideStage,StageClock,Theater
public interface Schedule
Timetable for executing timers at their scheduled times.
Schedule
is thread safe.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionsetTimer(long millis, TimerFunction timer) Schedulestimerto execute aftermillismilliseconds have elapsed.timer(TimerFunction timer) Returns an unscheduledTimerRefbound totimer, which can later be used to scheduletimer.
-
Method Details
-
timer
Returns an unscheduledTimerRefbound totimer, which can later be used to scheduletimer. -
setTimer
Schedulestimerto execute aftermillismilliseconds have elapsed. Returns aTimerRefthat can be used to check the status of, reschedule, and canceltimer.
-