Class Link

Implemented Interfaces:
ImageObserver, Runnable, GraphicalElement

public class Link
extends Verbindung

See Also:
Verbindung, Node, Network, NetworkCanvas, SimulationObject

Field Summary

(package private) Node
node1
(package private) Node
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

Link(int id, Network net, Graphics gc, Node node1, Node node2)

Method Summary

void
dumpPackets()
void
finishUp()
void
paint()
(package private) void
processPacket(Packet p)
(package private) void
resetCoordinates()
void
run()
void
sendGraftingAck(Node source)
void
sendGraftingMessage(Node source)
void
sendMulticastPacket(int sourceID, Node from)
void
sendPruningMessage(Node source)
void
sendRoutingTableRequest(Node source)
void
sendRoutingTableUpdate(Node 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)  Node node1

node2

(package private)  Node node2

Constructor Details

Link

public Link(int id,
            Network net,
            Graphics gc,
            Node node1,
            Node 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

sendGraftingAck

public void sendGraftingAck(Node source)

sendGraftingMessage

public void sendGraftingMessage(Node source)

sendMulticastPacket

public void sendMulticastPacket(int sourceID,
                                Node from)

sendPruningMessage

public void sendPruningMessage(Node source)

sendRoutingTableRequest

public void sendRoutingTableRequest(Node source)

sendRoutingTableUpdate

public void sendRoutingTableUpdate(Node source,
                                   Vector entries)