-
- 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:
Clock
-
-
Method Summary
Modifier and Type Method Description TimerRef
setTimer(long millis, TimerFunction timer)
Schedulestimer
to execute aftermillis
milliseconds have elapsed.TimerRef
timer(TimerFunction timer)
Returns an unscheduledTimerRef
bound totimer
, which can later be used to scheduletimer
.
-
-
-
Method Detail
-
timer
TimerRef timer(TimerFunction timer)
Returns an unscheduledTimerRef
bound totimer
, which can later be used to scheduletimer
.
-
setTimer
TimerRef setTimer(long millis, TimerFunction timer)
Schedulestimer
to execute aftermillis
milliseconds have elapsed. Returns aTimerRef
that can be used to check the status of, reschedule, and canceltimer
.
-
-