sidnet.core.interfaces
Interface AppInterface

All Superinterfaces:
JistAPI.Proxiable, JistAPI.Timeless
All Known Implementing Classes:
App_AlternatingTree, App_Assignment2, App_DemoMultiTree, App_TreeBasedAggregation, App_TreeBasedAggregation, App_TreeBasedAggregation, App_Triggers, AppP2P, AppP2P, AppP2P_electrostatic, AppP2P_electrostatic, AppP2P_electrostatic, AppSampleP2P, AppSweep, AppWasp

public interface AppInterface
extends JistAPI.Proxiable


Method Summary
 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)
           
 

Method Detail

run

void run()
Run application.


run

void run(java.lang.String[] args)
Run application.

Parameters:
args - command-line parameters

sensing

void sensing(java.util.List params)

receive

void receive(Message msg,
             NetAddress src,
             MacAddress lastHop,
             byte macId,
             NetAddress dst,
             byte priority,
             byte ttl)
Receive a message from network layer.

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