jist.swans.app
Interface AppInterface

All Superinterfaces:
JistAPI.Proxiable, JistAPI.Timeless
All Known Implementing Classes:
App_Sigmod, AppHeartbeat, AppJava

public interface AppInterface
extends JistAPI.Proxiable

Interface for Application entities.

Since:
SWANS1.0

Nested Class Summary
static interface AppInterface.TcpApp
          Application that supports TCP sockets.
static interface AppInterface.ThreadedApp
          Application that supports threading.
static interface AppInterface.UdpApp
          Application that supports UDP sockets.
 
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.
 

Method Detail

run

void run()
Run application.


run

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

Parameters:
args - command-line parameters

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