public class DTN2Events extends java.lang.Object implements EventQueue
| Modifier and Type | Class and Description |
|---|---|
class |
DTN2Events.ParserHandler
Inner class that implements the CLA interface for receiving bundles from
dtnd.
|
| Constructor and Description |
|---|
DTN2Events(Settings s)
Creates a new events object.
|
| Modifier and Type | Method and Description |
|---|---|
DTN2Events.ParserHandler |
getParserHandler(int hostID,
java.lang.String consoleHost,
int consolePort)
Creates a parser handler for the given host.
|
ExternalEvent |
nextEvent()
Returns the next event in the queue or ExternalEvent with time of
double.MAX_VALUE if there are no events left.
|
double |
nextEventsTime()
Returns next event's time or Double.MAX_VALUE if there are no
events left in the queue.
|
public DTN2Events(Settings s)
s - Settingspublic ExternalEvent nextEvent()
EventQueuenextEvent in interface EventQueuepublic double nextEventsTime()
EventQueuenextEventsTime in interface EventQueuepublic DTN2Events.ParserHandler getParserHandler(int hostID, java.lang.String consoleHost, int consolePort)
hostID - ID of the host that this parser corresponds toconsoleHost - Hostname of the dtndconsolePort - Console port of the dtnd