A C D E F G H I L M N O P R S T W

A

addElement(Object) - Method in class nodeNet.OutputChannelVector
Adds an object to the OutputChannelVector.
addElement(Object) - Method in class nodeNet.InputChannelVector
Adds an object to the InputChannelVector.
addInputChannel(InputChannel) - Method in class nodeNet.Node
Adds a new InputChannel.
addOutputChannel(OutputChannel) - Method in class nodeNet.Node
Adds a new OutputChannel.

C

Channel - class nodeNet.Channel.
A Channel object is a NodeNetElement that connects two Nodes.
Channel(Node, Node) - Constructor for class nodeNet.Channel
Creates a new Channel with the given start and end nodes.
ChannelDisabledException - exception nodeNet.ChannelDisabledException.
Signals that a Channel is disabled when attempting to read or write to it. Copyright (c) 1998 Massachusetts Institute of Technology
ChannelDisabledException() - Constructor for class nodeNet.ChannelDisabledException
Constructs an instance of ChannelDisabledException without a detail message.
ChannelDisabledException(String) - Constructor for class nodeNet.ChannelDisabledException
Constructs an instance of ChannelDisabledException with the specified detail message.
ChannelEmptyException - exception nodeNet.ChannelEmptyException.
Singals that a Channel has no packets to honor a read request. Copyright (c) 1998 Massachusetts Institute of Technology
ChannelEmptyException() - Constructor for class nodeNet.ChannelEmptyException
Constructs an instance of ChannelEmptyException without a detail message.
ChannelEmptyException(String) - Constructor for class nodeNet.ChannelEmptyException
Constructs an instance of ChannelEmptyException with the specified detail message.
ChannelFullException - exception nodeNet.ChannelFullException.
Signals that a Channel is full when attempted to write to it. Copyright (c) 1998 Massachusetts Institute of Technology
ChannelFullException() - Constructor for class nodeNet.ChannelFullException
Constructs an instance of ChannelDisabledException without a detail message.
ChannelFullException(String) - Constructor for class nodeNet.ChannelFullException
Constructs an instance of ChannelDisabledException with the specified detail message.
configure() - Method in class nodeNet.Node
Nodes cannot currently be configured.
configure() - Method in interface nodeNet.NodeNetElement
 
configure() - Method in class nodeNet.Channel
 
contains(Object) - Method in class nodeNet.OutputChannelVector
Checks to see if it contains an element.
contains(Object) - Method in class nodeNet.InputChannelVector
Checks to see if it contains an element.
ControlPanel - class nodeNet.ControlPanel.
A ControlPanel object is a graphical display of available Nodes for use with a SimulationPanel. Copyright (c) 1998 Massachusetts Institute of Technology
ControlPanel() - Constructor for class nodeNet.ControlPanel
Constructs a new ControlPanel with three node types: a generator node, a terminator node, and a default connecting node.
CountingNodeBehavior - interface nodeNet.CountingNodeBehavior.
An interface for NodeBehaviors that keep track of the number of objects they have seen.

D

destroy() - Method in class nodeNet.Node
Destroy the Node.
destroy() - Method in interface nodeNet.NodeNetElement
 
destroy() - Method in class nodeNet.Channel
Destroy the Channel.

E

elementAt(int) - Method in class nodeNet.OutputChannelVector
Returns the OutputChannel at a certain index.
elementAt(int) - Method in class nodeNet.InputChannelVector
Returns the InputChannel at a certain index.
elements() - Method in class nodeNet.OutputChannelVector
Transforms OutputChannelVector into yet another type of collection of objects, called an Enumeration.
elements() - Method in class nodeNet.InputChannelVector
Transforms InputChannelVector into yet another type of collection of objects, called an Enumeration.
equals(Object) - Method in class nodeNet.Node
 
equals(Object) - Method in class nodeNet.Channel
Determines if two Channels are equal.

F

finalize() - Method in class nodeNet.Node
 
finalize() - Method in class nodeNet.Channel
 
firstElement() - Method in class nodeNet.OutputChannelVector
Returns the first OutputChannel in the OutputChannelVector.
firstElement() - Method in class nodeNet.InputChannelVector
Returns the first InputChannel in the InputChannelVector.

G

getBehaviors() - Static method in class nodeNet.Node
Gets an Enumeration of all currently known NodeBehaviors.
getCapacity() - Method in class nodeNet.Channel
 
getColorFromBehavior(String) - Static method in class nodeNet.Node
Returns the current Color associated with the given NodeBehavior.
getCount() - Method in interface nodeNet.CountingNodeBehavior
Returns the number of packets moved.
getLatency() - Method in class nodeNet.Channel
 
getName() - Method in class nodeNet.Node
 
getName() - Method in interface nodeNet.NodeNetElement
 
getName() - Method in class nodeNet.Channel
 
getNewInstance() - Method in class nodeNet.ControlPanel
Get a new Node of the currently selected type.
getPos() - Method in class nodeNet.Node
 
GUISIZE - Static variable in class nodeNet.Node
Diameter of the circle used to paint nodes.

H

HIGHLIGHT_COLOR - Static variable in class nodeNet.Node
 

I

init() - Method in class nodeNet.Main
Initilization as an applet.
InputChannel - interface nodeNet.InputChannel.
This is the interface to recieve objects from a channel.
InputChannelVector - class nodeNet.InputChannelVector.
InputChannelVector is something which acts like a Vector of InputChannels instead of Objects. Copyright (c) 1998 Massachusetts Institute of Technology
InputChannelVector() - Constructor for class nodeNet.InputChannelVector
Constructs a new InputChannelVector.
isDestroyed() - Method in class nodeNet.Node
 
isDestroyed() - Method in interface nodeNet.NodeNetElement
 
isDestroyed() - Method in class nodeNet.Channel
 
isEditable() - Method in class nodeNet.Node
 
isEditable() - Method in class nodeNet.Channel
 
isEmpty() - Method in class nodeNet.OutputChannelVector
Returns true if the OutputChannelVector is empty.
isEmpty() - Method in class nodeNet.InputChannelVector
Returns true if the InputChannelVector is empty.
isEnabled() - Method in class nodeNet.Node
 
isEnabled() - Method in interface nodeNet.NodeNetElement
 
isEnabled() - Method in class nodeNet.Channel
 
isInside(int, int) - Method in class nodeNet.Node
 
isInside(int, int) - Method in interface nodeNet.NodeNetElement
 
isInside(int, int) - Method in class nodeNet.Channel
 
isInside(Point) - Method in class nodeNet.Node
 
isInside(Point) - Method in interface nodeNet.NodeNetElement
 
isInside(Point) - Method in class nodeNet.Channel
 
IsInsideNothingException - exception nodeNet.IsInsideNothingException.
Signals that the indicated point is not inside any NodeNetElement. Copyright (c) 1998 Massachusetts Institute of Technology
IsInsideNothingException() - Constructor for class nodeNet.IsInsideNothingException
Constructs an instance of IsInsideNothingException without a detail message.
IsInsideNothingException(String) - Constructor for class nodeNet.IsInsideNothingException
Constructs an instance of IsInsideNothingException with the specified detail message.
isSelected() - Method in class nodeNet.Node
 
isSelected() - Method in interface nodeNet.NodeNetElement
 
isSelected() - Method in class nodeNet.Channel
 

L

lastElement() - Method in class nodeNet.OutputChannelVector
Returns the last OutputChannel in the OutputChannelVector.
lastElement() - Method in class nodeNet.InputChannelVector
Returns the last InputChannel in the InputChannelVector.

M

Main - class nodeNet.Main.
Main defines the public static void main(String[]) method.
Main() - Constructor for class nodeNet.Main
 
main(String[]) - Static method in class nodeNet.Main
Starts a new simulation.
MAX_CAPACITY - Static variable in class nodeNet.Channel
the maximum allowable capacity
MAX_LATENCY - Static variable in class nodeNet.Channel
the maximum allowable latency

N

newNodeType(String) - Method in class nodeNet.ControlPanel
Adds a new NodeBehavior to the list of available types.
newNodeType(String, String) - Method in class nodeNet.ControlPanel
Adds a new NodeBehavior to the list of available types.
Node - class nodeNet.Node.
This class implements NodeNetElement.
Node(NodeBehavior, Color) - Constructor for class nodeNet.Node
 
NodeBehavior - interface nodeNet.NodeBehavior.
NodeBehavior is the interface you must implement in your code.
nodeNet - package nodeNet
 
NodeNetElement - interface nodeNet.NodeNetElement.
NodeNetElement is an interface implemented by any and all Nodes and/or channels.
NodeNetFrame - class nodeNet.NodeNetFrame.
The top level frame for nodeNet.
NodeNetFrame(String[]) - Constructor for class nodeNet.NodeNetFrame
Constructs the GUI.
notifyOfDestruction(NodeNetElement) - Method in class nodeNet.Node
Notify this that a NodeNetElement has been destroyed.
notifyOfDestruction(NodeNetElement) - Method in interface nodeNet.NodeNetElement
 
notifyOfDestruction(NodeNetElement) - Method in class nodeNet.Channel
Notify this that a NodeNetElement has been destroyed.

O

OutputChannel - interface nodeNet.OutputChannel.
This is the interface to put objects into a channel.
OutputChannelVector - class nodeNet.OutputChannelVector.
OutputChannelVector is something which acts like a Vector of OutputChannels instead of Objects. Copyright (c) 1998 Massachusetts Institute of Technology
OutputChannelVector() - Constructor for class nodeNet.OutputChannelVector
Constructs a new OutputChannelVector

P

paint(Graphics) - Method in class nodeNet.Node
 
paint(Graphics) - Method in interface nodeNet.NodeNetElement
 
paint(Graphics) - Method in class nodeNet.Channel
 

R

readObject() - Method in interface nodeNet.InputChannel
Attempt to get an object in the channel.
readObject() - Method in class nodeNet.Channel
Read an object from the channel.
removeAllElements() - Method in class nodeNet.OutputChannelVector
Removes all elements from the OutputChannelVector.
removeAllElements() - Method in class nodeNet.InputChannelVector
Removes all elements from the InputChannelVector.
removeElement(Object) - Method in class nodeNet.OutputChannelVector
Removes a specific element from the OutputChannelVector.
removeElement(Object) - Method in class nodeNet.InputChannelVector
Removes a specific element from the InputChannelVector.
removeInputChannel(InputChannel) - Method in class nodeNet.Node
Removes an InputChannel.
removeOutputChannel(OutputChannel) - Method in class nodeNet.Node
Removes an OutputChannel.
resetCount() - Method in interface nodeNet.CountingNodeBehavior
Resets the count.
run() - Method in class nodeNet.Node
Repeatedly calls the transmitPacket method for the associated NodeBehavior.
run() - Method in class nodeNet.Channel
 

S

SameNodeException - exception nodeNet.SameNodeException.
Singals that a Channel was attempted to be created from and to a single node. Copyright (c) 1998 Massachusetts Institute of Technology
SameNodeException() - Constructor for class nodeNet.SameNodeException
Constructs an instance of ChannelDisabledException without a detail message.
SameNodeException(String) - Constructor for class nodeNet.SameNodeException
Constructs an instance of ChannelDisabledException with the specified detail message.
setCapacity(int) - Method in class nodeNet.Channel
 
setEnabled(boolean) - Method in class nodeNet.Node
 
setEnabled(boolean) - Method in interface nodeNet.NodeNetElement
 
setEnabled(boolean) - Method in class nodeNet.Channel
 
setLatency(int) - Method in class nodeNet.Channel
 
setName(String) - Method in class nodeNet.Node
 
setName(String) - Method in interface nodeNet.NodeNetElement
 
setName(String) - Method in class nodeNet.Channel
 
setPos(int, int) - Method in class nodeNet.Node
 
setPos(Point) - Method in class nodeNet.Node
 
setSelected(boolean) - Method in class nodeNet.Node
 
setSelected(boolean) - Method in interface nodeNet.NodeNetElement
 
setSelected(boolean) - Method in class nodeNet.Channel
 
size() - Method in class nodeNet.OutputChannelVector
Returns the size of the InputChannelVector.
size() - Method in class nodeNet.InputChannelVector
Returns the size of the InputChannelVector.
start() - Method in class nodeNet.Node
Starts the node running.
start() - Method in interface nodeNet.NodeNetElement
 
start() - Method in class nodeNet.Channel
 
stop() - Method in class nodeNet.Node
Stops the node.
stop() - Method in interface nodeNet.NodeNetElement
 
stop() - Method in class nodeNet.Channel
 

T

transmitPacket(InputChannelVector, OutputChannelVector) - Method in interface nodeNet.NodeBehavior
transmitPacket is the method you will write for this lab.

W

writeObject(Object) - Method in interface nodeNet.OutputChannel
Attempt to place an object into the channel.
writeObject(Object) - Method in class nodeNet.Channel
Insert an object into the channel.

A C D E F G H I L M N O P R S T W