MCPcopy Create free account
hub / github.com/akeranen/the-one / EventQueue

Interface EventQueue

input/EventQueue.java:14–30  ·  view source on GitHub ↗

Interface for event queues. Any class that is not a movement model or a routing module but wishes to provide events for the simulation (like creating messages) must implement this interface and register itself to the simulator. See the EventQueueHandler class for configuration instructions.

Source from the content-addressed store, hash-verified

12 * instructions.
13 */
14public interface EventQueue {
15
16 /**
17 * Returns the next event in the queue or ExternalEvent with time of
18 * double.MAX_VALUE if there are no events left.
19 * @return The next event
20 */
21 public ExternalEvent nextEvent();
22
23 /**
24 * Returns next event's time or Double.MAX_VALUE if there are no
25 * events left in the queue.
26 * @return Next event's time
27 */
28 public double nextEventsTime();
29
30}

Callers 9

updateMethod · 0.65
checkEeqMethod · 0.65
testUpdatesMethod · 0.65
testDuplicateValuesMethod · 0.65
setNextEventQueueMethod · 0.95
checkEeqMethod · 0.65
testUpdatesMethod · 0.65

Implementers 4

MessageEventGeneratorinput/MessageEventGenerator.java
ExternalEventsQueueinput/ExternalEventsQueue.java
ScheduledUpdatesQueueinput/ScheduledUpdatesQueue.java
DTN2Eventsinput/DTN2Events.java

Calls

no outgoing calls

Tested by

no test coverage detected