sidnet.stack.users.waspsample.app
Class AppWasp

java.lang.Object
  extended by sidnet.stack.users.waspsample.app.AppWasp
All Implemented Interfaces:
JistAPI.Proxiable, JistAPI.Timeless, AppInterface, CallbackInterface

public class AppWasp
extends java.lang.Object
implements AppInterface, CallbackInterface


Field Summary
 TopologyGUI topologyGUI
           
 
Constructor Summary
AppWasp(NodeAPI myNode, short routingProtocolIndex, StatsCollector stats, TopologyGUI topologyGUI)
           
 
Method Summary
 AppInterface getAppProxy()
           
 NetInterface.NetHandler getNetProxy()
           
 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
 

Field Detail

topologyGUI

public final TopologyGUI topologyGUI
Constructor Detail

AppWasp

public AppWasp(NodeAPI myNode,
               short routingProtocolIndex,
               StatsCollector stats,
               TopologyGUI topologyGUI)
Method Detail

run

public void run(java.lang.String[] args)
Description copied from interface: AppInterface
Run application.

Specified by:
run in interface AppInterface
Parameters:
args - command-line parameters

run

public void run()
Description copied from interface: AppInterface
Run application.

Specified by:
run in interface AppInterface

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:
receive in 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

sensing

public void sensing(java.util.List params)
Specified by:
sensing in interface AppInterface

signalUserRequest

public void signalUserRequest()
Specified by:
signalUserRequest in interface CallbackInterface

setNetEntity

public void setNetEntity(NetInterface netEntity)

getAppProxy

public AppInterface getAppProxy()

getNetProxy

public NetInterface.NetHandler getNetProxy()