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