|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidnet.stack.users.geographical_tree_aggregation.routing.GeographicalTreeRouting
public class GeographicalTreeRouting
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 |
Field Summary | |
---|---|
static TopologyGUI |
topologyVisualizationTool
|
static TransmitReceiveFX |
transmitReceiveFX
|
Constructor Summary | |
---|---|
GeographicalTreeRouting(NetAddress localAddr,
Node myNode,
PanelContext hostPanelContext,
short selfProtocolIndex)
Creates a new instance of MultiTreeRouting |
Method Summary | |
---|---|
void |
commitData(Message_Aggregation newMsgAggr,
NetAddress dst,
NetAddress src)
|
double |
Distance(double x1,
double y1,
double x2,
double y2)
|
void |
dropNotify(Message msg,
MacAddress nextHopMac,
Reason reason)
Notification mechanism for packet dropped due to various "Reasons" |
void |
epochConditionCompleted(Message msgAggrM,
java.lang.Object incomingAggregationBeanO)
|
RouteInterface.MultiTreeRouting |
getProxy()
|
boolean |
isDuplicate(Message msg)
|
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 |
sendToAppLayer(Message msg,
NetAddress src)
|
void |
sendToLinkLayer(Message msg,
NetAddress originalSourceIP,
NetAddress finalDestinationIP,
NetAddress nextHopDestIP)
|
void |
sendToLinkLayer(NetMessage.Ip ipMsg,
NetAddress nextHopDestIP)
|
void |
setAppInterface(AppInterface appInterface)
|
void |
setNetEntity(NetInterface netEntity)
|
void |
start()
Start running protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TopologyGUI topologyVisualizationTool
public static TransmitReceiveFX transmitReceiveFX
Constructor Detail |
---|
public GeographicalTreeRouting(NetAddress localAddr, Node myNode, PanelContext hostPanelContext, short selfProtocolIndex)
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 RouteInterface
msg
- incoming packetlastHopMac
- last link-level hop of incoming packetpublic void send(NetMessage msg)
NetInterface.NetHandler
send
in interface NetInterface.NetHandler
send
in interface RouteInterface
msg
- outgoing packetpublic void receive(Message msg, NetAddress src, MacAddress lastHop, byte macId, NetAddress dst, byte priority, byte ttl)
NetInterface.NetHandler
receive
in interface NetInterface.NetHandler
msg
- message receivedsrc
- source network addresslastHop
- source link addressmacId
- incoming interfacedst
- destination network addresspriority
- packet priorityttl
- packet time-to-livepublic void epochConditionCompleted(Message msgAggrM, java.lang.Object incomingAggregationBeanO)
epochConditionCompleted
in interface RouteInterface.MultiTreeRouting
public void commitData(Message_Aggregation newMsgAggr, NetAddress dst, NetAddress src)
public void sendToLinkLayer(Message msg, NetAddress originalSourceIP, NetAddress finalDestinationIP, NetAddress nextHopDestIP)
public void sendToLinkLayer(NetMessage.Ip ipMsg, NetAddress nextHopDestIP)
public void sendToAppLayer(Message msg, NetAddress src)
public boolean isDuplicate(Message msg)
public double Distance(double x1, double y1, double x2, double y2)
public RouteInterface.MultiTreeRouting getProxy()
public void setNetEntity(NetInterface netEntity)
public void setAppInterface(AppInterface appInterface)
public void start()
Protocol
start
in interface Protocol
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |