All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

ack. Variable in class reliability.ReliablePacket
Is this packet an ack?
ACK_FOR_ALL_PREVIOUS. Static variable in class reliability.SlidingWindowSender
ACK_WITH_WINDOW. Static variable in class reliability.SlidingWindowSender
AddLink(Link). Method in interface link.Node
Connect this node to a link.
AddLink(Link). Method in class network.Router
Connect a link
AddLink(Link). Method in class network.RoutingNetworkEdge
Connect a link
AddNode(Node). Method in interface link.Link
Add a node to the link.
AddNode(Node). Method in class link.SimpleBroadcastLink
Add a node, maintains the list of connected nodes
AddNode(Node). Method in class link.SimplePointToPointLink
Add a node, maintains the list of connected nodes.
AddReceiver(PacketReceiver, Address). Method in interface network.Network
Connect an addressed client to the network.
AddReceiver(PacketReceiver, Address). Method in class network.RoutingNetworkEdge
AddReceiver(PacketReceiver, Address). Method in class network.SimpleUnreliableNetwork
Address(String). Constructor for class network.Address
Make a new address from a string.
AppendBytes(byte[]). Method in class reliability.ReceiveBuffer
Append data to the end of the buffer/queue.
AppendBytes(byte[]). Method in class reliability.SendBuffer
Append data to the end of the buffer/queue.

B

BlockSimTimeFor(Thread). Method in class timer.Timer
Force simulated time to stall until this thread unblocks it or unregisters.
BytestreamReceiverClient(ReliableReceiver, Vector, Address). Constructor for class application.BytestreamReceiverClient
Creates a new recevier client and starts the run thread for it.
BytestreamSenderClient(ReliableSender, Vector, Address, Address). Constructor for class application.BytestreamSenderClient
Creates a new sender client and starts the run thread for it.

C

CancelTimeout(TimeoutID). Method in class timer.Timer
Given an ID from a previous SetTimeout, remove it from the queue if it is still pending.
Close(). Method in interface reliability.ReliableSender
Close the current connection.
Close(). Method in class reliability.SAWSender
Close the current connection.
Close(). Method in class reliability.SlidingWindowSender
Close the current connection.
CONFIG_FILENAME. Static variable in class network.project2
ConnectedLinks(). Method in class network.Router
Get an enumeration of the currently connected links.
ConnectedNodes(). Method in class link.SimpleBroadcastLink
Get the list of connected nodes
ConnectedNodes(). Method in class link.SimplePointToPointLink
Get the list of connected nodes
ConvertToUS(long). Method in class timer.TimeUnit
Convert a time in these units to microseconds
CurrentSimTime(). Method in class timer.Timer
Return the current simulator time in microseconds

D

data. Variable in class link.LinkPacket
The data to be sent.
destinationAddr. Variable in class network.NetworkPacket
Address of the packet's intended recipient
Disable(char). Static method in class debug.Debug
Disable the specified character.

E

Enable(char). Static method in class debug.Debug
Enable the specified character.
end. Variable in class timer.TimeInterval
end of the period, in microseconds from zero
equals(Address). Method in class network.Address
Compare two addresses

F

fin. Variable in class reliability.ReliablePacket
Is this packet a fin?

G

global. Static variable in class timer.Timer
The global timer.

I

IsEnabled(char). Static method in class debug.Debug
Query if a particular character is enabled

L

LINK_BW. Static variable in class reliability.project1
LINK_BW_SD. Static variable in class reliability.project1
LINK_BW_WALK. Static variable in class reliability.project1
LINK_DROP_PROB. Static variable in class reliability.project1
LINK_LATENCY. Static variable in class reliability.project1
LINK_LATENCY_SD. Static variable in class reliability.project1
LINK_LATENCY_WALK. Static variable in class reliability.project1
LINK_MTU. Static variable in class reliability.project1
LinkPacket(). Constructor for class link.LinkPacket

M

main(String[]). Static method in class reliability.project1
main(String[]). Static method in class network.project2
MS. Static variable in class timer.Timer
The time unit milliseconds
MTU(). Method in interface link.Link
The maximum number of data bytes a packet may contain.
MTU(). Method in interface network.Network
Query the maximum transmission size of the network.
MTU(). Method in class network.RoutingNetworkEdge
MTU(). Method in class link.SimpleBroadcastLink
Get the maximum number of data bytes to transmit
MTU(). Method in class link.SimplePointToPointLink
Get the maximum number of data bytes to transmit
MTU(). Method in class network.SimpleUnreliableNetwork

N

NetworkPacket(). Constructor for class network.NetworkPacket
Constructor for some default setup.
NotActiveThreadException(). Constructor for class timer.NotActiveThreadException
Notify(). Method in class timer.TimerClient
Wake up the first waiting thread on the queue, if any.
NotifyAll(). Method in class timer.TimerClient
Wake up all waiting threads on the queue, if any.
NotifyThread(Thread). Method in class timer.TimerClient
A new monitor twist: Wake up a specific waiting thread on the queue, if present.

O

Open(Address). Method in interface reliability.ReliableSender
Open a connection to the ReliableReceiver represented by the address.
Open(Address). Method in class reliability.SAWSender
Open a connection to the ReliableReceiver represented by the address.
Open(Address). Method in class reliability.SlidingWindowSender
Open a connection to the ReliableReceiver represented by the address.

P

PacketArrived(LinkPacket, Link). Method in interface link.Node
Callback when a packet arrives at the node.
PacketArrived(LinkPacket, Link). Method in class network.Router
The callback for new packets.
PacketArrived(LinkPacket, Link). Method in class network.RoutingNetworkEdge
PacketArrived(NetworkPacket). Method in interface network.PacketReceiver
Callback that a packet has arrived.
PacketArrived(NetworkPacket). Method in class reliability.SAWReceiver
Processing that happens when we receive a packet

For stop-and-wait: ack iff packet is old or can be stored, advance currentSequenceNum if packet is new and stored

PacketArrived(NetworkPacket). Method in class reliability.SAWSender
Processing that happens when we receive a packet

For stop-and-wait: send the next packet

PacketArrived(NetworkPacket). Method in class reliability.SlidingWindowReceiver
Processing that happens when we receive a packet

For stop-and-wait: ack iff packet is old or can be stored, advance currentSequenceNum if packet is new and stored

PacketArrived(NetworkPacket). Method in class reliability.SlidingWindowSender
Processing that happens when we receive a packet
print(char, String). Static method in class debug.Debug
Print a debug message
println(char, String). Static method in class debug.Debug
Print a debug message followed by a newline
PrintStatus(). Method in class timer.Timer
Print out the status of the timer, including event queue and registered threads.
project1(). Constructor for class reliability.project1
project2(). Constructor for class network.project2

R

Receive(int). Method in interface reliability.ReliableReceiver
Receive a block of data from the connection.
Receive(int). Method in class reliability.SAWReceiver
Receive a block of data from the connection.
Receive(int). Method in class reliability.SlidingWindowReceiver
Receive a block of data from the connection.
ReceiveBuffer(int). Constructor for class reliability.ReceiveBuffer
Set up the buffer with the given size.
RegisterThread(Thread). Method in class timer.Timer
Tell the simulator that this thread cares about simulated time.
ReliablePacket(). Constructor for class reliability.ReliablePacket
Constructor for some default setup.
RemoveBytes(int). Method in class reliability.ReceiveBuffer
Remove maxBytes from the buffer.
RemoveBytes(int). Method in class reliability.SendBuffer
Remove up to maxBytes from the buffer.
RemoveLink(Link). Method in interface link.Node
Disconnect this node from a link.
RemoveLink(Link). Method in class network.Router
Disconnect a link
RemoveLink(Link). Method in class network.RoutingNetworkEdge
Disconnect a link
RemoveNode(Node). Method in interface link.Link
Remove a node from the link.
RemoveNode(Node). Method in class link.SimpleBroadcastLink
Remove a node
RemoveNode(Node). Method in class link.SimplePointToPointLink
Remove a node
RemoveReceiver(PacketReceiver). Method in interface network.Network
Disconnect this client from the network.
RemoveReceiver(PacketReceiver). Method in class network.RoutingNetworkEdge
RemoveReceiver(PacketReceiver). Method in class network.SimpleUnreliableNetwork
Router(String, int). Constructor for class network.Router
Create a new node.
RoutingNetworkEdge(). Constructor for class network.RoutingNetworkEdge
run(). Method in class application.BytestreamReceiverClient
The receiving thread.
run(). Method in class application.BytestreamSenderClient
The sending thread.
run(). Method in class reliability.project1
run(). Method in class network.Router
The forwarding thread.
run(). Method in class link.SimplePointToPointLink
Manage uptime and downtime of the link.
run(). Method in class timer.Timer
main event processing loop: if we can advance time, then advance to the next event and process it.

S

SAWReceiver(Network, Address). Constructor for class reliability.SAWReceiver
Set up a receiver.
SAWSender(Network, Address). Constructor for class reliability.SAWSender
Create a new stop-and-wait sender.
SEC. Static variable in class timer.Timer
The time unit seconds.
SEED. Static variable in class reliability.project1
SEED. Static variable in class network.project2
Send(byte[]). Method in interface reliability.ReliableSender
Send a block of data on the connection.
Send(byte[]). Method in class reliability.SAWSender
Send a block of data on the connection.
Send(byte[]). Method in class reliability.SlidingWindowSender
Send a block of data on the connection.
SendBuffer(int). Constructor for class reliability.SendBuffer
Create a new SendBuffer
sequenceNum. Variable in class reliability.ReliablePacket
Sequence number for this packet.
SetEnabled(String). Static method in class debug.Debug
Set the set of enable characters to precisely those specified.
SetTimeout(TimerClient, long, TimeUnit, Object). Method in class timer.Timer
SetTimeout: set a timeout for the future
Shutdown(). Method in class timer.Timer
Stops the timer, not really necessary.
SHUTDOWN_DELTA. Static variable in class network.project2
SignalNext(). Method in class timer.WaitQueue
remove the current thread from the front of the queue, and let the next waiter (if any) run.
SimpleBroadcastLink(long, int, double, double, double, double, Vector). Constructor for class link.SimpleBroadcastLink
Create a new link with the specified parameters
SimplePointToPointLink(String, long, int, double, double, double, double, double, double, double, Vector). Constructor for class link.SimplePointToPointLink
Create a new link with the specified parameters
SimpleUnreliableNetwork(int, double, double, double, double, double, double, double, long). Constructor for class network.SimpleUnreliableNetwork
SimTimeIsBlockedFor(Thread). Method in class timer.Timer
Check whether this thread is blocking sim time.
Size(). Method in class reliability.SendBuffer
SlidingWindowReceiver(Network, Address). Constructor for class reliability.SlidingWindowReceiver
Set up a receiver.
SlidingWindowSender(Network, Address). Constructor for class reliability.SlidingWindowSender
Create a new stop-and-wait sender.
sourceAddr. Variable in class network.NetworkPacket
Address of the packet's sender
start. Variable in class timer.TimeInterval
start of the period, in microseconds from zero
STARTUP_DELTA. Static variable in class network.project2
syn. Variable in class reliability.ReliablePacket
Is this packet an syn?

T

TimeInterval(). Constructor for class timer.TimeInterval
TIMEOUT. Static variable in class reliability.SlidingWindowSender
Timeout(Object). Method in class reliability.SAWSender
Processing that happens when we get a timeout

For stop-and-wait: resend the current packet

Timeout(Object). Method in class link.SimplePointToPointLink
Deliver a packet.
Timeout(Object). Method in class network.SimpleUnreliableNetwork
the callback for timeouts.
Timeout(Object). Method in class reliability.SlidingWindowSender
Processing that happens when we get a timeout
Timeout(Object). Method in class timer.TimerClient
the callback for timeouts.
TIMEOUT_GO_BACK_N. Static variable in class reliability.SlidingWindowSender
TimerClient(). Constructor for class timer.TimerClient
Set up the monitor state for the object
timeToLive. Variable in class network.NetworkPacket
Maximum number of hops before this packet dies
toString(). Method in class network.Address
Convert the address to a string
toString(). Method in class link.LinkPacket
Make a string for packet trace messages.
toString(). Method in class network.NetworkPacket
Make a string for packet trace messages.
toString(). Method in class reliability.ReliablePacket
Make a string for packet trace messages.
toString(). Method in class network.Router
String representation is name plus type:
toString(). Method in class network.RoutingNetworkEdge
toString(). Method in class link.SimplePointToPointLink
Convert to a string for printing
TransmitPacket(LinkPacket, Node). Method in interface link.Link
Transmit a packet on the link.
TransmitPacket(LinkPacket, Node). Method in class link.SimpleBroadcastLink
Transmit a packet on the link.
TransmitPacket(LinkPacket, Node). Method in class link.SimplePointToPointLink
Transmit a packet on the link.
TransmitPacket(NetworkPacket). Method in interface network.Network
Submit a packet to the network, for delivery to the client whose address is in the destinationAddr field of the packet.
TransmitPacket(NetworkPacket). Method in class network.RoutingNetworkEdge
TransmitPacket(NetworkPacket). Method in class network.SimpleUnreliableNetwork

U

UnblockSimTimeFor(Thread). Method in class timer.Timer
Remove the blocking constraint on this thread.
UnregisterThread(Thread). Method in class timer.Timer
Tell the simulator that this thread no longer cares about simulated time.
US. Static variable in class timer.Timer
The time unit microseconds

W

Wait(). Method in class timer.TimerClient
Block the currently executing thread indefiniately until Notify or NotifyAll is called.
Wait(). Method in class timer.WaitQueue
queue up the current thread, and block until it reaches the front of the queue (might not block if the queue is currently empty.
Wait(long). Method in class timer.TimerClient
This function not yet implemented

Block the currently executing thread for at most us microseconds or until Notify or NotifyAll is called.

WaitFor(TimerClient, long, TimeUnit). Method in class timer.Timer
Block the current thread on behalf of the client for a specified number of simulated time units.
WaitQueue(Object). Constructor for class timer.WaitQueue
Create a new queue to work with a particular server object
WaitUntil(TimerClient, long, TimeUnit). Method in class timer.Timer
Block the current thread until a specified simulates time.
WINDOW_SIZE. Static variable in class reliability.SlidingWindowSender