|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinput.DTN2Events
public class DTN2Events
Delivers bundles from dtnd to ONE. Must be configured as an external events generator in the configuration file.
Nested Class Summary | |
---|---|
class |
DTN2Events.ParserHandler
Inner class that implements the CLA interface for receiving bundles from dtnd. |
Constructor Summary | |
---|---|
DTN2Events(Settings s)
Creates a new events object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DTN2Events(Settings s)
s
- SettingsMethod Detail |
---|
public ExternalEvent nextEvent()
EventQueue
nextEvent
in interface EventQueue
public double nextEventsTime()
EventQueue
nextEventsTime
in interface EventQueue
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |