|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidnet.stack.users.Bezier.app.AppP2P
public class AppP2P
Constructor Summary | |
---|---|
AppP2P(Node myNode,
short p2pRoutingProtocolIndex,
StatsCollector stats)
Creates a new instance of the AppP2P |
Method Summary | |
---|---|
AppInterface |
getAppProxy()
|
void |
receive(Message msg,
NetAddress src,
MacAddress lastHop,
byte macId,
NetAddress dst,
byte priority,
byte ttl)
Receive a message from network layer. |
void |
run()
Run application. |
void |
run(java.lang.String[] args)
Run application. |
void |
sensing(java.util.List params)
|
void |
setNetEntity(NetInterface netEntity)
|
void |
signalUserRequest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppP2P(Node myNode, short p2pRoutingProtocolIndex, StatsCollector stats)
Method Detail |
---|
public void run(java.lang.String[] args)
AppInterface
run
in interface AppInterface
args
- command-line parameterspublic void run()
AppInterface
run
in interface AppInterface
public void sensing(java.util.List params)
sensing
in interface AppInterface
public void signalUserRequest()
signalUserRequest
in interface CallbackInterface
public void receive(Message msg, NetAddress src, MacAddress lastHop, byte macId, NetAddress dst, byte priority, byte ttl)
AppInterface
receive
in interface AppInterface
msg
- message receivedsrc
- source network addresslastHop
- source link addressmacId
- incoming interfacedst
- destination network addresspriority
- packet priorityttl
- packet time-to-livepublic void setNetEntity(NetInterface netEntity)
public AppInterface getAppProxy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |