public abstract class SimpleCalendar extends Calendar
Modifier and Type | Class and Description |
---|---|
protected class |
SimpleCalendar.Entry |
Modifier and Type | Field and Description |
---|---|
protected java.util.SortedMap<PointInTime,java.util.LinkedList<SimpleCalendar.Entry>> |
timeline
the time line assigns lists of events to their time instances
|
CALENDAR, concurrentEvents, eventsWithSameTimeStat, systemTime
Constructor and Description |
---|
SimpleCalendar() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAllEvents()
cancels all events
|
PointInTime |
getSystemTime()
Returns the current simulation time
|
boolean |
isEventAvailable()
Return true if there are events in the calendar.
|
PointInTime |
peekNextEventTime()
Returns the time stamp of the next event in the calendar without removing
it.
|
void |
processNextEvent()
processes the next event
|
getInstance, hasInstance, postEvent, postEvent, setInstance, setSameTimeEventStatistic
protected final java.util.SortedMap<PointInTime,java.util.LinkedList<SimpleCalendar.Entry>> timeline
public void cancelAllEvents()
cancelAllEvents
in class Calendar
public void processNextEvent()
processNextEvent
in class Calendar
public boolean isEventAvailable()
Calendar
isEventAvailable
in class Calendar
public PointInTime peekNextEventTime()
Calendar
peekNextEventTime
in class Calendar
public PointInTime getSystemTime()
Calendar
getSystemTime
in class Calendar