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.
| 12 | * instructions. |
| 13 | */ |
| 14 | public 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 | } |
no outgoing calls
no test coverage detected