sidnet.stack.users.sample_p2p.app
Class AppSampleP2P
java.lang.Object
   sidnet.stack.users.sample_p2p.app.AppSampleP2P
sidnet.stack.users.sample_p2p.app.AppSampleP2P
- All Implemented Interfaces: 
- JistAPI.Proxiable, JistAPI.Timeless, AppInterface, CallbackInterface
- public class AppSampleP2P 
- extends java.lang.Object- implements AppInterface, CallbackInterface
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
topologyGUI
public static TopologyGUI topologyGUI
AppSampleP2P
public AppSampleP2P(Node myNode,
                    short routingProtocolIndex,
                    StatsCollector stats)
- Creates a new instance of the AppP2P
 
run
public void run(java.lang.String[] args)
- Description copied from interface: AppInterface
- Run application.
 
- 
- Specified by:
- runin interface- AppInterface
 
- 
- Parameters:
- args- command-line parameters
 
run
public void run()
- Description copied from interface: AppInterface
- Run application.
 
- 
- Specified by:
- runin interface- AppInterface
 
- 
 
sensing
public void sensing(java.util.List params)
- 
- Specified by:
- sensingin interface- AppInterface
 
- 
 
signalUserRequest
public void signalUserRequest()
- 
- Specified by:
- signalUserRequestin interface- CallbackInterface
 
- 
 
receive
public void receive(Message msg,
                    NetAddress src,
                    MacAddress lastHop,
                    byte macId,
                    NetAddress dst,
                    byte priority,
                    byte ttl)
- Description copied from interface: AppInterface
- Receive a message from network layer.
 
- 
- Specified by:
- receivein interface- AppInterface
 
- 
- Parameters:
- msg- message received
- src- source network address
- lastHop- source link address
- macId- incoming interface
- dst- destination network address
- priority- packet priority
- ttl- packet time-to-live
 
setNetEntity
public void setNetEntity(NetInterface netEntity)
- 
 
- 
 
getAppProxy
public AppInterface getAppProxy()
- 
 
-