sidnet.stack.users.triggers_project.app
Class App_Triggers

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

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


Nested Class Summary
static class App_Triggers.BEHAVIOR
           
static class App_Triggers.STATUS
           
 
Field Summary
static App_Triggers.BEHAVIOR behavior
           
 ExperimentDataImpl experimentData
           
static boolean flag2
           
 App_Triggers.STATUS R1_Yes_status
           
static Location2D R1Location
           
 boolean R2_enabled
           
static Location2D R2Location
           
 boolean sent
           
static Location2D sinkLocation
           
 
Constructor Summary
App_Triggers(Node myNode, StatsCollector stats, ExperimentDataImpl experimentData)
           
 
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
 

Field Detail

behavior

public static final App_Triggers.BEHAVIOR behavior

R2Location

public static Location2D R2Location

R1Location

public static Location2D R1Location

sinkLocation

public static Location2D sinkLocation

R2_enabled

public boolean R2_enabled

experimentData

public ExperimentDataImpl experimentData

sent

public boolean sent

R1_Yes_status

public App_Triggers.STATUS R1_Yes_status

flag2

public static boolean flag2
Constructor Detail

App_Triggers

public App_Triggers(Node myNode,
                    StatsCollector stats,
                    ExperimentDataImpl experimentData)
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

sensing

public void sensing(java.util.List params)
Specified by:
sensing 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

signalUserRequest

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

setNetEntity

public void setNetEntity(NetInterface netEntity)

getAppProxy

public AppInterface getAppProxy()