public class EventScheduler extends Event implements IEventContext
| Modifier and Type | Class and Description |
|---|---|
static class |
EventScheduler.EventTimeWarp |
Event.event_phase_t| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_TIMEWARP_COUNT |
| Constructor and Description |
|---|
EventScheduler(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Event event)
Cancel a pending event
|
void |
clock() |
void |
event()
Used to prevent overflowing by timewarping the event clocks
|
long |
getTime(Event.event_phase_t phase)
Get time with respect to a specific clock phase
|
long |
getTime(long clock,
Event.event_phase_t phase) |
Event.event_phase_t |
phase() |
void |
reset() |
void |
schedule(Event event,
long cycles,
Event.event_phase_t phase)
Add event to ordered pending queue
|
public static final int EVENT_TIMEWARP_COUNT
public EventScheduler(String name)
public void event()
public void cancel(Event event)
cancel in interface IEventContextpublic void reset()
public void schedule(Event event, long cycles, Event.event_phase_t phase)
schedule in interface IEventContextpublic void clock()
public final long getTime(Event.event_phase_t phase)
getTime in interface IEventContextpublic final long getTime(long clock,
Event.event_phase_t phase)
getTime in interface IEventContextpublic final Event.event_phase_t phase()
phase in interface IEventContextCopyright © 2014. All rights reserved.