public class HotspotApplication extends Application
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APP_ID
Application ID
|
appID| Constructor and Description |
|---|
HotspotApplication(HotspotApplication a)
Copy-constructor
|
HotspotApplication(Settings s)
Creates a new hotspot application with the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
handle(Message msg,
DTNHost host)
Handles an incoming message.
|
Application |
replicate() |
void |
update(DTNHost host)
Does nothing
|
getAppID, getAppListeners, sendEventToListeners, setAppID, setAppListenerspublic static final java.lang.String APP_ID
public HotspotApplication(Settings s)
s - Settings to use for initializing the application.public HotspotApplication(HotspotApplication a)
a - public Message handle(Message msg, DTNHost host)
handle in class Applicationmsg - message received by the routerhost - host to which the application instance is attachednull
if the application wants the router to stop forwarding the
message.public Application replicate()
replicate in class Applicationpublic void update(DTNHost host)
update in class Applicationhost - to which the application instance is attached