Class LinkRIP

Implemented Interfaces:
ImageObserver, Runnable, GraphicalElement

public class LinkRIP
extends Verbindung

See Also:
Verbindung, NodeRIP, NetworkRIP, NetworkCanvasRIP, SimulationObject

Field Summary

(package private) NodeRIP
node1
(package private) NodeRIP
node2

Fields inherited from class .Verbindung

addPacketLock, currentTimestamp, fontMetrics, inPaint, initialized, nodeHeight, nodeWidth, paintLock, setWeightRequest, textHeight, textWidth, textX, textY, timestamp, travellingPackets, weight, weightGuard, x1, x2, y1, y2

Fields inherited from class .ArchitectureComponent

DEBUG, absXPos, absYPos, finished, gc, height, id, initialized, marked, net, paintRequested, sizeChangeLock, t, text, wakeUpable, width, xpos, ypos

Constructor Summary

LinkRIP(int id, NetworkRIP net, Graphics gc, NodeRIP node1, NodeRIP node2)

Method Summary

void
dumpPackets()
void
finishUp()
void
paint()
(package private) void
processPacket(Packet p)
(package private) void
resetCoordinates()
void
run()
void
sendDataPacket(int sourceID, NodeRIP from, int toID)
void
sendRoutingTableRequest(NodeRIP source)
void
sendRoutingTableUpdate(NodeRIP source, Vector entries)

Methods inherited from class .Verbindung

acquireLocks, addPacket, atLocation, getLabel, getWeight, releaseLocks, setWeight

Methods inherited from class .ArchitectureComponent

acquireLocks, atLocation, finishUp, finished, getHeight, getID, getNet, getPositionX, getPositionY, getWidth, imageUpdate, mark, paint, paintRequest, releaseLocks, resume, run, setHeight, setPosition, setWidth, suspend, unmark, wakeUp

Field Details

node1

(package private)  NodeRIP node1

node2

(package private)  NodeRIP node2

Constructor Details

LinkRIP

public LinkRIP(int id,
               NetworkRIP net,
               Graphics gc,
               NodeRIP node1,
               NodeRIP node2)

Method Details

dumpPackets

public void dumpPackets()

finishUp

public void finishUp()
Overrides:
finishUp in interface ArchitectureComponent

paint

public void paint()
Overrides:
paint in interface ArchitectureComponent

processPacket

(package private)  void processPacket(Packet p)

resetCoordinates

(package private)  void resetCoordinates()

run

public void run()
Overrides:
run in interface ArchitectureComponent

sendDataPacket

public void sendDataPacket(int sourceID,
                           NodeRIP from,
                           int toID)

sendRoutingTableRequest

public void sendRoutingTableRequest(NodeRIP source)

sendRoutingTableUpdate

public void sendRoutingTableUpdate(NodeRIP source,
                                   Vector entries)