A B D E G I L M N P R S T

A

addLink(Link) - Method in class Router
rtr.addLink(lnk) adds lnk to rtr's table of links.
ArrivalEvent - class ArrivalEvent.
An ArrivalEvent represents the arrival of a Packet sent across a link from one Router to another.
ArrivalEvent(Router, Router, Packet) - Constructor for class ArrivalEvent
new ArrivalEvent(sndr, rcvr, pkt) is an event indicating the arrival of pkt at rcvr from sndr.

B

BROADCAST - Static variable in class Packet
Packet.BROADCAST is the type for broadcast packets.

D

DATA - Static variable in class Packet
Packet.DATA is the type for data packets.

E

EventQueue - class EventQueue.
An EventQueue maintains a queue of events in scheduled time order.
EventQueue() - Constructor for class EventQueue
new EventQueue() returns an empty EventQueue.

G

getCommands() - Method in class Network
ntwrk.getCommands() returns the Commands that are implemented by ntwrk.
getCost() - Method in class Link
lnk.getCost() returns the cost for sending a Packet through lnk.
getCurrentTime() - Method in class EventQueue
eq.getCurrentTime() returns the current time for eq.
getCurrentTime() - Static method in class Simulation
Simulation.getCurrentTime() returns the current time for this simulation.
getDestination() - Method in class Packet
pkt.getDestination() returns the name of the destination router of pkt.
getDistanceVector() - Method in class RoutingInfoPacket
pkt.getDistanceVector() returns the distance vector contained in pkt.
getEventCount() - Method in class EventQueue
eq.getEventCount() returns the number of events in eq.
getEventQueue() - Static method in class Simulation
Simulation.getEventQueue() returns the EventQueue used in this simulation.
getLink(String) - Method in class Router
rtr.getLink(nghbr) returns the Link to rtr's neighbor named nghbr, or null if there is no such neighbor.
getName() - Method in class Router
rtr.getName() returns the name of rtr;
getNextEvent() - Method in class EventQueue
eq.getNextEvent() removes and returns the event with the earliest scheduled time in eq.
getReceiver() - Method in class Link
lnk.getReceiver() returns the name of the receiver for lnk.
getSender() - Method in class Link
lnk.getSender() returns the name of the sender for lnk.
getSerialNumber() - Method in class Packet
pkt.getSerialNumber() returns the serial number of pkt.
getSource() - Method in class Packet
pkt.getSource() returns the name of the source router of pkt.
getType() - Method in class Packet
pkt.getType() returns the type of pkt.

I

INFINITY - Static variable in class Link
Link.INFINITY is the cost to an unreachable or unknown Router.
initializeTables() - Method in class Router
rtr.initializeTables() initialize the routing tables of rtr.

L

Link - class Link.
A Link represents a direct connection from one Router to another.
Link(Router, Router, int) - Constructor for class Link
new Link(sndr, rcvr, cst) returns a new Link with sender sndr, receiver rcvr, and cost cst.
log(String) - Static method in class Simulation
Simulation.log(msg) sends msg, prefixed with a timestamp, to standard output.

M

main(String[]) - Static method in class Simulation
 

N

NetEvent - interface NetEvent.
A NetEvent represents an event to be simulated in a network.
Network - class Network.
A Network maintains the structure of a network and provides access to its routers and links.
Network() - Constructor for class Network
new Network() returns a Network with no Routers or Links.

P

Packet - class Packet.
A Packet is a packet in the network.
Packet(String, String, String) - Constructor for class Packet
new Packet(typ, src, dest) returns a Packet with type typ.
printConfiguration() - Method in class Router
rtr.printConfiguration() prints the configuration of rtr.
printTables() - Method in class Router
rtr.printTables() prints the routing tables of rtr.

R

receivePacket(Packet, String) - Method in class Router
rtr.receivePacket(pkt, via) handles the arrival of pkt at rtr.
Router - class Router.
A Router represents a router in a network.
Router(String) - Constructor for class Router
new Router() returns a new Router with name nm.
ROUTING_INFO - Static variable in class Packet
Packet.ROUTING_INFO is the type for routing information packets.
ROUTING_REQUEST - Static variable in class Packet
Packet.ROUTING_REQUEST is the type for routing request packets.
RoutingInfoPacket - class RoutingInfoPacket.
A RoutingInfoPacket is a packet containing a distance vector.
RoutingInfoPacket(String, String, SortedMap) - Constructor for class RoutingInfoPacket
new RoutingInfoPacket(src, dest, dv) returns a RoutingInfoPacket.

S

schedule(NetEvent, int) - Method in class EventQueue
eq.schedule(e, tm) schedules e at time tm in eq.
sendPacket(Packet) - Method in class Link
lnk.sendPacket(pkt) sends pkt through lnk.
setCost(int) - Method in class Link
lnk.setCost(c) sets the cost for sending a Packet through lnk to c.
simulate() - Method in class ArrivalEvent
ev.simulate() simulates the occurence of ev.
simulate() - Method in interface NetEvent
ev.simulate() simulates the occurence of ev.
Simulation - class Simulation.
The Simulation class has static methods for running a network simulation.

T

toString() - Method in class Link
lnk.toString() returns a string describing lnk.
toString() - Method in class Packet
pkt.toString() returns a string describing pkt.
toString() - Method in class Router
rtr.toString() returns the name of rtr.

A B D E G I L M N P R S T