|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsidnet.stack.users.marco_project.commons.HeartbeatProtocol
public class HeartbeatProtocol
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jist.swans.route.RouteInterface |
|---|
RouteInterface.Aodv, RouteInterface.BezierRouting, RouteInterface.Dsr, RouteInterface.ECGRIDRouting, RouteInterface.GenericRouting, RouteInterface.HeartbeatProtocol, RouteInterface.MultiTreeRouting, RouteInterface.RandomPathRouting, RouteInterface.ShortestPathRouting, RouteInterface.Zrp |
| Constructor Summary | |
|---|---|
HeartbeatProtocol(NetAddress localAddr,
Node myNode,
PanelContext hostPanelContext,
long beatInterval)
Creates a new instance of HeartbeatProtocol |
|
| Method Summary | |
|---|---|
void |
dropNotify(Message msg,
MacAddress nextHopMac,
Reason reason)
Notification mechanism for packet dropped due to various "Reasons" |
RouteInterface.HeartbeatProtocol |
getProxy()
|
void |
peek(NetMessage msg,
MacAddress lastHopMac)
Called by the network layer for every incoming packet. |
void |
receive(Message msg,
NetAddress src,
MacAddress lastHop,
byte macId,
NetAddress dst,
byte priority,
byte ttl)
Receive a message from network layer. |
void |
send(NetMessage msg)
Send a message through the routing protocol |
void |
setNetEntity(NetInterface netEntity)
|
void |
start()
Start running protocol. |
void |
wakeAndBeat(long beatInterval,
boolean wakeAndBeatStarted)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeartbeatProtocol(NetAddress localAddr,
Node myNode,
PanelContext hostPanelContext,
long beatInterval)
| Method Detail |
|---|
public void dropNotify(Message msg,
MacAddress nextHopMac,
Reason reason)
NetInterface.NetHandler
dropNotify in interface NetInterface.NetHandler
public void peek(NetMessage msg,
MacAddress lastHopMac)
RouteInterface
peek in interface RouteInterfacemsg - incoming packetlastHopMac - last link-level hop of incoming packetpublic void send(NetMessage msg)
NetInterface.NetHandler
send in interface NetInterface.NetHandlersend in interface RouteInterfacemsg - outgoing packet
public void wakeAndBeat(long beatInterval,
boolean wakeAndBeatStarted)
wakeAndBeat in interface RouteInterface.HeartbeatProtocol
public void receive(Message msg,
NetAddress src,
MacAddress lastHop,
byte macId,
NetAddress dst,
byte priority,
byte ttl)
NetInterface.NetHandler
receive in interface NetInterface.NetHandlermsg - message receivedsrc - source network addresslastHop - source link addressmacId - incoming interfacedst - destination network addresspriority - packet priorityttl - packet time-to-livepublic RouteInterface.HeartbeatProtocol getProxy()
public void setNetEntity(NetInterface netEntity)
public void start()
Protocol
start in interface Protocol
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||