|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSim.Routing.AbstractRoutingAlgorithm
Sim.Routing.DSR.DSRRoutingAlgorithm
public class DSRRoutingAlgorithm
DSRRoutingAlgorithm implements most of the DSR protocol.
Field Summary |
---|
Fields inherited from class Sim.Routing.AbstractRoutingAlgorithm |
---|
myNode |
Constructor Summary | |
---|---|
DSRRoutingAlgorithm()
|
Method Summary | |
---|---|
void |
arrived(HardwareFrame in)
Event when a HardwareFrame arrives destined for this Node that does not have a user Packet, or has a Packet not for this Node. |
static void |
enableLog(boolean enabled)
Set to true to enable logging of a lot of debugging information to standard output. |
void |
newPacket(Node dest,
Packet packet)
Event when a Node wants to send a new Packet. |
void |
overheard(HardwareFrame in)
Event when a HardwareFrame is overheard by a Node (the HardwareFrame's destination is not the Node). |
void |
terminated(HardwareFrame in)
Event when a HardwareFrame arrives destined for this Node that has a user Packet that is destined for this Node. |
Methods inherited from class Sim.Routing.AbstractRoutingAlgorithm |
---|
attached, getTime, loopback, scheduleEvent, setSimulation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSRRoutingAlgorithm()
Method Detail |
---|
public static void enableLog(boolean enabled)
public void arrived(HardwareFrame in)
arrived
in interface RoutingAlgorithm
arrived
in class AbstractRoutingAlgorithm
in
- non-null HardwareFrame receivedpublic void terminated(HardwareFrame in)
terminated
in interface RoutingAlgorithm
terminated
in class AbstractRoutingAlgorithm
in
- non-null HardwareFrame receivedpublic void newPacket(Node dest, Packet packet)
newPacket
in interface RoutingAlgorithm
newPacket
in class AbstractRoutingAlgorithm
dest
- non-null Node as the destination (packet.getDest() == dest.getAddress())packet
- user packet data to send, with a destination address not equal to the address for
the sending Node.public void overheard(HardwareFrame in)
overheard
in interface RoutingAlgorithm
overheard
in class AbstractRoutingAlgorithm
in
- non-null HardwareFrame received
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |