Nodenet Problem Set Javadocs
A B C D E F G H I K L M N O P Q R S T U V W

A

Animate - interface cs101.lang.Animate.
 
AnimateObject - class cs101.util.AnimateObject.
The generic self-animating (active) object.
AnimateObject() - Constructor for class cs101.util.AnimateObject
The most basic constructor creates the AnimateObject and starts its animacy going.
AnimateObject(boolean) - Constructor for class cs101.util.AnimateObject
This constructor allows you to create an AnimateObject without starting its animacy going.
AnimatorThread - class cs101.lang.AnimatorThread.
This class replaces Thread as a way to animate autonomous objects.
AnimatorThread(Animate) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated.
AnimatorThread(Animate, boolean) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and a boolean value (expected to be one of AnimatorThread.START_IMMEDIATELY or AnimatorThread.DONT_START_YET) that determines whether this AnimatorThread should start running as the last step of its construction.
AnimatorThread(Animate, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and a long representing the desired variance in sleep times between calls to the Animate's act() method.
AnimatorThread(Animate, boolean, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated, a boolean reflecting whether execution should begin immediately, and a long representing the desired variance in sleep times between calls to the Animate's act() method.
AnimatorThread(Animate, long, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated and two longs representing the desired variance in sleep times and the desired minimum sleep interval between calls to the Animate's act() method.
AnimatorThread(Animate, boolean, long, long) - Constructor for class cs101.lang.AnimatorThread
This constructor requires the Animate that is to be animated, a boolean reflecting whether execution should begin immediately, and two longs representing the desired variance in sleep times and the desired minimum sleep interval between calls to the Animate's act() method.
act() - Method in interface cs101.lang.Animate
 
act() - Method in class cs101.util.AnimateObject
Override this method to give the AnimateObject behavior.
addElement(InputChannel) - Method in class nodenet.InputChannelVector
Adds an object to the InputChannelVector.
addElement(OutputChannel) - Method in class nodenet.OutputChannelVector
Adds an object to the OutputChannelVector.
addInputChannel(InputChannel) - Method in class nodenet.Node
Adds a new InputChannel.
addInputConnection(InputConnection) - Method in interface cs101.io.connection.InputAcceptor
 
addNotify() - Method in class cs101.awt.DisplayField
Calls super.addNotify.
addOutputChannel(OutputChannel) - Method in class nodenet.Node
Adds a new OutputChannel.
addOutputConnection(OutputConnection) - Method in interface cs101.io.connection.OutputAcceptor
 
addPropertyChangeListener(PropertyChangeListener) - Method in interface nodenet.NodeBehaviorProvider
Regeister a class that wants to know when the selected node behavior type is changed.
addPropertyChangeListener(PropertyChangeListener) - Method in class nodenet.NodeConfigurationBean
Register an object to be notified when the properties of this bean are changed.
addPropertyChangeListener(PropertyChangeListener) - Method in class nodenet.NodeTypeSelector
Adds a PropertyChangeListener to the listener list.
addVetoableChangeListener(VetoableChangeListener) - Method in class nodenet.NodeConfigurationBean
Register an object that has the power to overide changes to this bean.
allUpperCaseP(String) - Static method in class cs101.util.StringUtils
Determines whether all of the characters in its argument word are upper case.
angleToVert(Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the angle between a given line segment and the vertical axis in direction that roataes the positive x axis towards positive y axis
answers - Variable in class cs101.awt.ClientDialog
 
answers - Variable in class cs101.awt.ServerDialog
 
ask() - Method in class cs101.awt.ClientDialog
Actually display the query dialog and get the answers from the user.
ask() - Method in class cs101.awt.QueryDialog
Display the dialog box, and block until the OK button is checked.
ask() - Method in class cs101.awt.ServerDialog
Actually display the query dialog and get the answers from the user.

B

BACK - Static variable in interface cs101.util.queue.Queue
 
BS - class cs101.util.semaphore.BS.
This class implements simple binary semaphores in java.
BS(boolean) - Constructor for class cs101.util.semaphore.BS
If the constructor is passed a boolean value, the semaphore will be initialized with this value (true => in use, false => free).
BS() - Constructor for class cs101.util.semaphore.BS
If no argument is supplied, the semaphore is created in its free state.
BabySitter - class cs101.net.BabySitter.
This object handles the io between the server and one client.
BabySitter(Socket, Server) - Constructor for class cs101.net.BabySitter
Creates a BabySitter to handle communication with a client.
babySitters - Variable in class cs101.net.Server
list of BabySitters to handle each client connection
bounce(Line2D.Float, Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Compute a velocity vector after a bounce off a given surface.

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.
Channel(Node, Node, boolean, int, int) - Constructor for class nodenet.Channel
Build a channel that is fully configured.
ChannelDisabledException - exception nodenet.ChannelDisabledException.
Signals that a Channel is disabled when attempting to read or write to it.
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.
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.
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.
Client - class cs101.net.Client.
A reasonably vanilla network client.
Client(String, int, StringHandler) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client(String, int) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client(StringHandler) - Constructor for class cs101.net.Client
Creates an autonomous client.
Client() - Constructor for class cs101.net.Client
Creates an autonomous client.
ClientDialog - class cs101.awt.ClientDialog.
Manages a top level query dialog box to get hostName and port connection information.
ClientDialog() - Constructor for class cs101.awt.ClientDialog
Creates the dialog information.
ClientWire - class cs101.net.ClientWire.
Networked Wire, Client Side.
ClientWire(String, int, boolean) - Constructor for class cs101.net.ClientWire
How to make one, if we know who we want to talk to.
ClientWire(String, int) - Constructor for class cs101.net.ClientWire
How to make one, if we know who we want to talk to.
ClientWire() - Constructor for class cs101.net.ClientWire
How to make one, if we don't know who we want to talk to.
Coerce - class cs101.util.Coerce.
Coerce implements some coercion utilities for a variety of java classes.
ColorField - class cs101.awt.ColorField.
cs101.awt.ColorField provides a colored rectangle that operates as an awt.component.
ColorField() - Constructor for class cs101.awt.ColorField
Constructs a rectangular color field with default values for all attibutes.
ColorField(boolean, Dimension, Color, Color) - Constructor for class cs101.awt.ColorField
Constructs a rectangular colorfield with the passed attributes.
ConnectionRejectedException - exception cs101.io.connection.ConnectionRejectedException.
 
ConnectionRejectedException() - Constructor for class cs101.io.connection.ConnectionRejectedException
 
ConnectionRejectedException(String) - Constructor for class cs101.io.connection.ConnectionRejectedException
 
Connector - interface cs101.io.connection.Connector.
 
Console - class cs101.awt.Console.
A graphical helper class for Java Console IO.
Console() - Constructor for class cs101.awt.Console
Create and display a new Console.
Console - class cs101.io.Console.
A helper class for Java Console IO.
Counter - interface nodenet.Counter.
An interface for NodeBehaviors that keep track of the number of objects they have seen.
CreationException - exception cs101.util.CreationException.
CreationExceptions are thrown by Coerce.StringToClass.
CreationException() - Constructor for class cs101.util.CreationException
 
CreationException(String) - Constructor for class cs101.util.CreationException
 
c - Variable in class cs101.awt.DefaultFrame
The Component to display.
c - Variable in class cs101.awt.DefaultGameFrame
The Component (view) to display.
capitalize(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with the first character replaced by its upper case equivalent.
capitalizeAll(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with all characters replaced by their upper case equivalents.
capitalizedP(String) - Static method in class cs101.util.StringUtils
Determines whether the first character of its argument word is upper case.
changeState(boolean) - Method in class cs101.awt.ColorField
Changes the state of the color field to the value passed in.
client - Variable in class cs101.net.DefaultReadLoop
Communicates with the network.
clone() - Method in class nodenet.Packet
Return a clone of the Packet.
configure() - Method in class nodenet.Channel
 
configure() - Method in class nodenet.Node
 
configure() - Method in interface nodenet.NodeNetElement
Display a configuratin dialog to the user and record changes made to the configuration via this dialog.
connectTo(String, int) - Method in class cs101.net.Client
Opens a connection to a server presumed to be listening on hostName, port.
connectTo(String, int) - Method in class cs101.net.ClientWire
Opens a connection to a server presumed to be listening on hostName, port.
connectTo(int) - Method in class cs101.net.ServerWire
Opens a connection to a server presumed to be listening on hostName, port.
contains(int, int) - Method in class nodenet.Channel
 
contains(Point) - Method in class nodenet.Channel
 
contains(Object) - Method in class nodenet.InputChannelVector
Checks to see if it contains an element.
contains(Point) - Method in class nodenet.Node
 
contains(int, int) - Method in class nodenet.Node
 
contains(Point) - Method in interface nodenet.NodeNetElement
Determine if this element contains the specified point.
contains(int, int) - Method in interface nodenet.NodeNetElement
Determine if this element contains the specified point.
contains(Object) - Method in class nodenet.OutputChannelVector
Checks to see if it contains an element.
createIntermediateCurve(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the supplied array of float to contain an additional knot and modify the associated control points.
createIntermediateLine(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the suppled array of float to contain an additional knot.
createIntermediateQuad(Point2D.Float, float[]) - Static method in class cs101.awt.geom.ShapeUtils
Mutate the suppled array of float to contain an additional knot and modify the associated control points.
cs101.awt - package cs101.awt
 
cs101.awt.geom - package cs101.awt.geom
 
cs101.io - package cs101.io
 
cs101.io.connection - package cs101.io.connection
 
cs101.lang - package cs101.lang
 
cs101.net - package cs101.net
 
cs101.util - package cs101.util
 
cs101.util.gamecontrol - package cs101.util.gamecontrol
 
cs101.util.queue - package cs101.util.queue
 
cs101.util.semaphore - package cs101.util.semaphore
 
cs101.xml - package cs101.xml
 

D

DEFAULT_COLOR - Static variable in class cs101.awt.Line
This specifies the default color for a line.
DONT_START_YET - Static variable in class cs101.lang.AnimatorThread
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
DONT_START_YET - Static variable in class cs101.util.AnimateObject
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
DTDResolver - class nodenet.DTDResolver.
This class allows us to validate against a DTD that is found on the classpath.
DTDResolver() - Constructor for class nodenet.DTDResolver
Creates a new instance of DTDResolver
DefaultFrame - class cs101.awt.DefaultFrame.
Simple top level that deals with one component and sizing.
DefaultFrame(Component) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame surrounding the supplied component.
DefaultFrame(Component, int, int) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame of the specified size surrounding the supplied component.
DefaultFrame(Component, Dimension) - Constructor for class cs101.awt.DefaultFrame
Creates a new frame of the specified Dimension surrounding the supplied component.
DefaultGameFrame - class cs101.awt.DefaultGameFrame.
Simple top level Frame that deals with one component and sizing.
DefaultGameFrame(GameControllable) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame relying on the supplied GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component, int, int) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame of the specified size surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultGameFrame(GameControllable, Component, Dimension) - Constructor for class cs101.awt.DefaultGameFrame
Creates a new frame of the specified size surrounding the supplied component and relying on the GameControllable to provide its behavior.
DefaultQueue - class cs101.util.queue.DefaultQueue.
Default Queue class.
DefaultQueue() - Constructor for class cs101.util.queue.DefaultQueue
Creates a new, empty Queue
DefaultQueue(Object) - Constructor for class cs101.util.queue.DefaultQueue
Creates a new Queue contining obj as the only element
DefaultReadLoop - class cs101.net.DefaultReadLoop.
A generic read loop for a client.
DefaultReadLoop(Client) - Constructor for class cs101.net.DefaultReadLoop
A generic read loop for client.
DefaultStringHandler - class cs101.util.DefaultStringHandler.
A default StringHandler.
DefaultStringHandler() - Constructor for class cs101.util.DefaultStringHandler
 
DestinationValidator - class nodenet.registrar.DestinationValidator.
A quick implementation of a class that validates destination values for NodeConfigurationBeans.
DisplayField - class cs101.awt.DisplayField.
cs101.awt.DisplayField extends cs101.util.ColorField to add a line of text to the colored rectangle.
DisplayField(String, boolean, Color, Color) - Constructor for class cs101.awt.DisplayField
Constructs a rectangular colorfield with the passed attributes.
deQ() - Method in interface cs101.util.queue.StringQueue
 
dequeue() - Method in class cs101.util.queue.DefaultQueue
Removes and returns the Object at the tail of the queue.
dequeue(int) - Method in class cs101.util.queue.DefaultQueue
Removes and returns the Object at the specified end of the queue.
dequeue() - Method in interface cs101.util.queue.Queue
Removes and returns the Object at the tail of the queue.
dequeue(int) - Method in interface cs101.util.queue.Queue
Removes and returns the Object at the specified end of the queue.
destroy() - Method in class nodenet.Channel
Destroy the Channel.
destroy() - Method in class nodenet.Node
Destroy the Node.
destroy() - Method in interface nodenet.NodeNetElement
Permanantly release all resources held by this element, and allow it's thread to run to completion.
dim - Variable in class cs101.awt.ColorField
size of the field
display - Variable in class cs101.util.semaphore.GraphicalSemaphore
display panel for the semaphore
doReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the resultant velocity from the collision of a mobile and imobile shape.
doReflect(Shape, Shape, Line2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the resultant velocity from the collision of a mobile and imobile shape.
doXReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the new x velocity after reflecting a moving shape from a imobile shape.
doYReflect(Shape, Shape, double, double) - Static method in class cs101.awt.geom.ShapeUtils
Find the new x velocity after reflecting a moving shape from a imobile shape.
drawOn(Graphics) - Method in class cs101.awt.Line
 

E

ERROR - Static variable in class cs101.xml.SimpleErrorHandler
 
EmptyQueueException - exception cs101.util.queue.EmptyQueueException.
EmptyQueueExceptions are thrown when trying to extract data from an empty Queue.
EmptyQueueException() - Constructor for class cs101.util.queue.EmptyQueueException
 
EmptyQueueException(String) - Constructor for class cs101.util.queue.EmptyQueueException
 
elapsed() - Method in class cs101.util.StopWatch
 
elementAt(int) - Method in class nodenet.InputChannelVector
Returns the InputChannel at a certain index.
elementAt(int) - Method in class nodenet.OutputChannelVector
Returns the OutputChannel at a certain index.
elements() - Method in class cs101.util.queue.DefaultQueue
Returns an Enumeration of the Objects in the queue.
elements() - Method in interface cs101.util.queue.Queue
Returns an Enumeration of the Objects in the queue.
elements() - Method in class nodenet.InputChannelVector
Transforms InputChannelVector into yet another type of collection of objects, called an Enumeration.
elements() - Method in class nodenet.OutputChannelVector
Transforms OutputChannelVector into yet another type of collection of objects, called an Enumeration.
enQ(String) - Method in interface cs101.util.queue.StringQueue
 
enqueue(Object) - Method in class cs101.util.queue.DefaultQueue
Puts obj into the front the queue.
enqueue(Object, int) - Method in class cs101.util.queue.DefaultQueue
Puts obj into the specified end of the queue.
enqueue(Object) - Method in interface cs101.util.queue.Queue
Puts obj into the front the queue.
enqueue(Object, int) - Method in interface cs101.util.queue.Queue
Puts obj into the specified end of the queue.
equals(Object) - Method in class nodenet.Channel
Determines if two Channels are equal.
equals(Object) - Method in class nodenet.Node
 
error(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
extractLine(String) - Static method in class cs101.awt.Line
Given a String that was originally created by packLine, this function will return a reference to a new Line object that represents the original Line.

F

FATAL_ERROR - Static variable in class cs101.xml.SimpleErrorHandler
 
FRONT - Static variable in interface cs101.util.queue.Queue
 
falseColor - Variable in class cs101.awt.ColorField
color when state == false
fatalError(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
finalize() - Method in class cs101.net.Client
Closes the socket, stops the thread.
finalize() - Method in class cs101.net.ClientWire
Closes the Socket and Streams.
finalize() - Method in class cs101.net.ServerWire
Closes the Socket.
finalize() - Method in class nodenet.Channel
 
finalize() - Method in class nodenet.Node
 
firstElement() - Method in class nodenet.InputChannelVector
Returns the first InputChannel in the InputChannelVector.
firstElement() - Method in class nodenet.OutputChannelVector
Returns the first OutputChannel in the OutputChannelVector.
firstVowelPos(String) - Static method in class cs101.util.StringUtils
Computes the index of the first position in String which contains a vowel (i.e., one of AEIOU).

G

GBS - class cs101.util.semaphore.GBS.
Implements simple binary semaphores in java witha graphical display.
GBS(boolean, String) - Constructor for class cs101.util.semaphore.GBS
Constructs a binary semaphore with the intial value passed in.
GCS - class cs101.util.semaphore.GCS.
cs101.util.GCS implements a counting semaphore of arbitrary size in java.
GCS(int, int, String) - Constructor for class cs101.util.semaphore.GCS
Constructs a counting semaphore with the size and initial value passed in.
GUISIZE - Static variable in class nodenet.Node
Diameter of the circle used to paint nodes.
GameControllable - interface cs101.util.gamecontrol.GameControllable.
This interface defines the behavior for a game controller.
GraphicalSemaphore - class cs101.util.semaphore.GraphicalSemaphore.
cs101.util.GraphicalSemaphore is the abstract super class for both the GBS (Graphical Binary semaphore) and the GCS (Graphical Counting semaphore).
GraphicalSemaphore(String) - Constructor for class cs101.util.semaphore.GraphicalSemaphore
Creates some of the GUI objects needed by it's subclasses.
gc - Variable in class cs101.awt.DefaultGameFrame
The controls for this component.
getBehaviors() - Static method in class nodenet.Node
Gets an Enumeration of all currently known NodeBehaviors.
getButton() - Method in class cs101.util.semaphore.IntBuffer
An alternate (caluculator oriented) name for IntBuffer.getInt().
getCapacity() - Method in class nodenet.Channel
 
getColor() - Method in class nodenet.NodeNetIcon
Getter for property color.
getColorFromBehavior(String) - Static method in class nodenet.Node
Returns the current Color associated with the given NodeBehavior.
getConfig() - Method in class nodenet.Node
 
getContainedPoints(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Get a list of the points belonging to one shape and contained within another.
getCount() - Method in interface nodenet.Counter
Returns the number of packets generated, moved or recieved as appropriate.
getDest() - Method in class nodenet.NodeConfigurationBean
Gets the identifying name of the node.
getDest() - Method in class nodenet.Packet
Find out where the packet is headed.
getDisplayNodeName() - Method in class nodenet.NodeConfigurationBean
Display the name of the node or not.
getHost() - Method in class cs101.awt.NetworkSettingsDialog
returns the name of the host to connect to as a client.
getHostName() - Method in class cs101.awt.ClientDialog
Return the host machine name from the user.
getIconHeight() - Method in class nodenet.NodeNetIcon
 
getIconWidth() - Method in class nodenet.NodeNetIcon
 
getImprovedPath(GeneralPath, float) - Static method in class cs101.awt.geom.ShapeUtils
Used iteratively by getPrecisePath to acheive as specified precision.
getInputConnection() - Method in interface cs101.io.connection.Connector
 
getInstance() - Static method in class nodenet.registrar.DestinationValidator
Get the one, the only, the DestinationValidator.
getInstance() - Static method in class nodenet.registrar.NodeNameRegistry
Factory method to get the one true NodeNameRegistrar.
getInt() - Method in class cs101.util.semaphore.IntBuffer
(Safely) Consumes the int held in the IntBuffer.
getLatency() - Method in class nodenet.Channel
 
getLegalName() - Method in interface nodenet.registrar.NodeNameRegistrar
Provides a name that is currently legal.
getLegalName() - Method in class nodenet.registrar.NodeNameRegistry
 
getLegalName() - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
getLineFromNeighbors(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the line between points on either side of a knot point on a given shape.
getMinimumSize() - Method in class cs101.awt.ColorField
Called by this object's container to determine the minimum space required by this object.
getMinimumSize() - Method in class cs101.awt.DisplayField
Called by this object's container to determine the minimum space required by this object.
getMinimumSize() - Method in class cs101.util.semaphore.GraphicalSemaphore
Determines the mininum size necessary for this component.
getMode() - Method in class cs101.awt.NetworkSettingsDialog
Returns the requested state of network connectivity
getMyID() - Method in class nodenet.Node
Getter for property myID.
getName() - Method in class nodenet.Channel
 
getName() - Method in class nodenet.Node
 
getName() - Method in interface nodenet.NodeNetElement
Get the name of this instance.
getNearestPoint(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the knot point in the given shape that is closest to the specified point.
getNextWord() - Method in class cs101.util.semaphore.PNCBuffer
(Safely) Consumes the word held in the PNCBuffer.
getNode(String) - Method in interface nodenet.registrar.NodeNameRegistrar
Provides access to nodes via their registred name.
getNode(String) - Method in class nodenet.registrar.NodeNameRegistry
 
getNode(String) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
getNodeBehaviors() - Method in interface nodenet.NodeBehaviorProvider
Provide a list of all user loaded behaviors in the entire application.
getNodeBehaviors(int) - Method in class nodenet.NodeTypeSelector
Indexed getter for property nodeBehaviors.
getNodeBehaviors() - Method in class nodenet.NodeTypeSelector
Getter for property nodeBehaviors.
getNodeName() - Method in class nodenet.NodeConfigurationBean
Gets the identifying name of the node.
getOutputConnection() - Method in interface cs101.io.connection.Connector
 
getOwner() - Method in class nodenet.InputChannelVector
Find out who the owner of this object is.
getOwner() - Method in class nodenet.OutputChannelVector
Find out who the owner of this object is.
getPort() - Method in class cs101.awt.ClientDialog
Return the port number from the user.
getPort() - Method in class cs101.awt.NetworkSettingsDialog
returns the requested port.
getPort() - Method in class cs101.awt.ServerDialog
Return the port number from the user.
getPos() - Method in class nodenet.Node
 
getPrecisePath(GeneralPath, float) - Static method in class cs101.awt.geom.ShapeUtils
Increase the precision of a given GeneralPath object.
getPreciseShape(Shape, float) - Static method in class cs101.awt.geom.ShapeUtils
Convert any AWT shape into a shape with a specified precision.
getPreferredSize() - Method in class cs101.awt.ColorField
Called by this object's container to determine the minimum space required by this object.
getPreferredSize() - Method in class cs101.awt.DefaultFrame
This method overrides Frame's default getPreferredSize() in case component doesn't specify its own preferences.
getPreferredSize() - Method in class cs101.awt.DefaultGameFrame
This method overrides Frame's default getPreferredSize() in case component doesn't specify its own preferences.
getPreferredSize() - Method in class cs101.awt.DisplayField
Called by this object's container to determine the minimum space required by this object.
getPreferredSize() - Method in class cs101.util.semaphore.GraphicalSemaphore
Determines the preferedSize necessary for this component.
getRegisteredNames() - Method in interface nodenet.registrar.NodeNameRegistrar
Provides a list of currently registered node names.
getRegisteredNames() - Method in class nodenet.registrar.NodeNameRegistry
 
getRegisteredNames() - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
getRegistrar() - Method in class nodenet.NodeConfigurationBean
A convenience method that yeilds the same result as NodeNameRegistry.getInstance().
getSelectedBehavior() - Method in class nodenet.NodeTypeSelector
Getter for property selectedBehavior.
getValues() - Method in class cs101.awt.QueryDialog
Return the last entered values for the field.
getVisitList() - Method in class nodenet.Packet
Get a list of the nodes visited, if they have been recorded.
getWarnings() - Method in class nodenet.TemplateParser
Getter for property warnings.

H

HIGHLIGHT_COLOR - Static variable in class nodenet.Node
 
handleString(String) - Method in class cs101.net.Client
This method is passed the String which has been read by the Client if no other StringHandler has been set.
handleString(String) - Method in class cs101.util.DefaultStringHandler
Just print the string to System.out.
handleString(String) - Method in interface cs101.util.StringHandler
 
hasNext() - Method in class cs101.awt.geom.PointIterator
Test to see if the entire shape has been processed.

I

Initializable - interface cs101.util.gamecontrol.Initializable.
Interface for an object with a init() method.
InputAcceptor - interface cs101.io.connection.InputAcceptor.
 
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.
InputChannelVector(Node) - Constructor for class nodenet.InputChannelVector
Constructs a new InputChannelVector.
InputConnection - interface cs101.io.connection.InputConnection.
 
InstanceCounter - Static variable in class cs101.util.semaphore.GraphicalSemaphore
Number of instances created
IntBuffer - class cs101.util.semaphore.IntBuffer.
Implements a producer/consumer synchronized buffer.
IntBuffer() - Constructor for class cs101.util.semaphore.IntBuffer
 
IsInsideNothingException - exception nodenet.IsInsideNothingException.
Signals that the indicated point is not inside any NodeNetElement.
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.
implementUserChanges() - Method in class nodenet.NodeConfigurationBean
Attempt to enact user changes.
init() - Method in class cs101.awt.DefaultFrame
Make the frame appear
init() - Method in class cs101.awt.DefaultGameFrame
Make the frame appear
init() - Method in interface cs101.util.gamecontrol.Initializable
 
init() - Method in class nodenet.Main
Initilization as an applet.
isDestroyed() - Method in class nodenet.Channel
 
isDestroyed() - Method in class nodenet.Node
 
isDestroyed() - Method in interface nodenet.NodeNetElement
Test to see if this element has been destroyed.
isEditable() - Method in class nodenet.Channel
 
isEditable() - Method in class nodenet.Node
 
isEmpty() - Method in class cs101.util.queue.DefaultQueue
Tests whether the queue is empty.
isEmpty() - Method in interface cs101.util.queue.Queue
Tests whether the queue is empty.
isEmpty() - Method in class nodenet.InputChannelVector
Returns true if the InputChannelVector is empty.
isEmpty() - Method in class nodenet.OutputChannelVector
Returns true if the OutputChannelVector is empty.
isEmptyQ() - Method in interface cs101.util.queue.StringQueue
 
isEnabled() - Method in class nodenet.Channel
 
isEnabled() - Method in class nodenet.Node
 
isEnabled() - Method in interface nodenet.NodeNetElement
Determine if this element is enabled.
isLegalName(String) - Method in interface nodenet.registrar.NodeNameRegistrar
Tests a name to see if it is currently legal.
isLegalName(String) - Method in class nodenet.registrar.NodeNameRegistry
 
isLegalName(String) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
isOverlapping(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Test to see if two Shape objects overlap.
isPolicySet() - Method in class nodenet.registrar.NodeNameRegistry
Check to see if the policy has been set for this registry.
isRegistered(Node) - Method in interface nodenet.registrar.NodeNameRegistrar
Tests to see if a node has been registered.
isRegistered(String) - Method in interface nodenet.registrar.NodeNameRegistrar
Tests to see if a name belongs to a registered node.
isRegistered(String) - Method in class nodenet.registrar.NodeNameRegistry
 
isRegistered(Node) - Method in class nodenet.registrar.NodeNameRegistry
 
isRegistered(String) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
isRegistered(Node) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
isSelected() - Method in class nodenet.Channel
 
isSelected() - Method in class nodenet.Node
 
isSelected() - Method in interface nodenet.NodeNetElement
Determine the selection stae of this element.
isStart(Point2D.Float) - Method in class cs101.awt.geom.PointIterator
Test to see if the supplied point is the same object as the current start point for the current path.

K

KLUDGE - Static variable in class nodenet.DTDResolver
A dummy string to prepend to the system DTD entity to workaround a bug in the crimson parser.

L

Line - class cs101.awt.Line.
Implements a 4-coordinate (+ optional Color) line abstraction with its own drawing method.
Line(int, int, int, int) - Constructor for class cs101.awt.Line
Construct a line, specifying all 4 coordinates and using the default color.
Line(int, int, int, int, Color) - Constructor for class cs101.awt.Line
Construct a line, specifying all 4 coordinates and a specific color.
label - Variable in class cs101.util.semaphore.GraphicalSemaphore
label for the semaphore
lastElement() - Method in class nodenet.InputChannelVector
Returns the last InputChannel in the InputChannelVector.
lastElement() - Method in class nodenet.OutputChannelVector
Returns the last OutputChannel in the OutputChannelVector.
listenOn(int) - Method in class cs101.net.Server
Helper method to actually open the ServerSocket and intialize other state.
loadBehavior(String, ClassLoader) - Method in class nodenet.NodeTypeSelector
Load a behavior class if possible.
loadedBehaviors - Static variable in class nodenet.Main
 
logVisit(String) - Method in class nodenet.Packet
Record that a node was visited.
look() - Method in class cs101.util.StopWatch
 

M

MAX_CAPACITY - Static variable in class nodenet.Channel
the maximum allowable capacity
MAX_LATENCY - Static variable in class nodenet.Channel
the maximum allowable latency
MS_HOUR - Static variable in class cs101.util.StopWatch
 
MS_MIN - Static variable in class cs101.util.StopWatch
 
MS_SEC - Static variable in class cs101.util.StopWatch
 
Main - class cs101.util.Main.
Main hides the public static void main( String[] argv ) construct from students by providing a command line interface.
Main - class nodenet.Main.
Main defines the public static void main(String[]) method.
Main() - Constructor for class nodenet.Main
 
MoreMath - class cs101.util.MoreMath.
cs101.util.MoreMath is an extension of the java.lang.Math library.
main(String[]) - Static method in class cs101.awt.NetworkSettingsDialog
Main method for visual layout inspection.
main(String[]) - Static method in class cs101.net.RunServer
 
main(String[]) - Static method in class cs101.util.Main
 
main(String[]) - Static method in class nodenet.Main
Starts a new simulation.
meanContainedPoint(Shape, Shape) - Static method in class cs101.awt.geom.ShapeUtils
Calcualte the average of all points contained within one shape and belonging to another.
meanPoint(List) - Static method in class cs101.awt.geom.ShapeUtils
Find the mean location of a list of Point2D.Float.
midPoint(float, float, float, float) - Static method in class cs101.awt.geom.ShapeUtils
Find the midpoint of a specifed line segment.
myNumber - Variable in class cs101.util.semaphore.GraphicalSemaphore
my number in the InstanceCount(er)

N

NETWORK_CLIENT - Static variable in class cs101.awt.NetworkSettingsDialog
Run as a client
NETWORK_NONE - Static variable in class cs101.awt.NetworkSettingsDialog
Run in standalone mode
NETWORK_SERVER - Static variable in class cs101.awt.NetworkSettingsDialog
Run as a server
NEXT - Static variable in class nodenet.NodeTypeSelector
indecates that the array of nodeBehaviors should be re-sized by +1 and the new behavior added in the next position.
NetworkSettingsDialog - class cs101.awt.NetworkSettingsDialog.
A dialog box that will allow the user to select wether the program should run in standalone mode, client mode or server mode.
NetworkSettingsDialog(Frame, boolean) - Constructor for class cs101.awt.NetworkSettingsDialog
Creates new form NetworkSettingsDialog.
NoUniqueLineException - exception cs101.awt.geom.NoUniqueLineException.
This exception represents a condition where more than one line satisfies a condition, and this prevents the throwing method from generating a valid return value.
NoUniqueLineException() - Constructor for class cs101.awt.geom.NoUniqueLineException
Creates a new instance of NoUniqueLineException without detail message.
NoUniqueLineException(String) - Constructor for class cs101.awt.geom.NoUniqueLineException
Constructs an instance of NoUniqueLineException with the specified detail message.
Node - class nodenet.Node.
This class implements NodeNetElement.
Node(NodeBehavior) - Constructor for class nodenet.Node
 
Node(Class, int, int, String, boolean, boolean) - Constructor for class nodenet.Node
Build a node setting various properties.
NodeBehavior - interface nodenet.NodeBehavior.
NodeBehavior is the interface you must implement in your code.
NodeBehaviorProvider - interface nodenet.NodeBehaviorProvider.
This interface indicates that a class can provide a list of all loaded behaviors, and notify listeners of changes in the selected behavior.
NodeConfigurationBean - class nodenet.NodeConfigurationBean.
A bean to manage the configuration of nodes.
NodeConfigurationBean() - Constructor for class nodenet.NodeConfigurationBean
Creates new NodeConfigurationBean
NodeNameRegistrar - interface nodenet.registrar.NodeNameRegistrar.
A Registrar is an object that can track and validate the names of nodes.
NodeNameRegistry - class nodenet.registrar.NodeNameRegistry.
Tracks all nodes and ensures that they have legal names.
NodeNetElement - interface nodenet.NodeNetElement.
NodeNetElement is an interface implemented by any and all Nodes and channels.
NodeNetFrame - class nodenet.NodeNetFrame.
The top level frame for nodeNet.
NodeNetFrame(String[]) - Constructor for class nodenet.NodeNetFrame
Constructs the GUI.
NodeNetIcon - class nodenet.NodeNetIcon.
An icon to draw nodes reflecting their selection status.
NodeNetIcon() - Constructor for class nodenet.NodeNetIcon
Creates a new instance of NodeNetIcon
NodeNetIcon(Color, boolean) - Constructor for class nodenet.NodeNetIcon
Creates a new instance of NodeNetIcon with the specified color and state.
NodeTypeSelector - class nodenet.NodeTypeSelector.
Implements a custom component that manages the loaded NodeBehavior classes and allows the user to select one behavior.
NodeTypeSelector() - Constructor for class nodenet.NodeTypeSelector
Creates new form NodeTypeSelector
NotEnoughPointsException - exception cs101.awt.geom.NotEnoughPointsException.
 
NotEnoughPointsException() - Constructor for class cs101.awt.geom.NotEnoughPointsException
Creates a new instance of NotEnoughPointsException without detail message.
NotEnoughPointsException(String) - Constructor for class cs101.awt.geom.NotEnoughPointsException
Constructs an instance of NotEnoughPointsException with the specified detail message.
nameAndRegister(Node) - Method in interface nodenet.registrar.NodeNameRegistrar
Gives the node a legal name and registers the node in one step.
nameAndRegister(Node) - Method in class nodenet.registrar.NodeNameRegistry
 
nameAndRegister(Node) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
nearestSegment(Shape, Point2D.Float) - Static method in class cs101.awt.geom.ShapeUtils
Find the line segment between two consecutive knot points of the given Shape that is closest to a specified point.
newInstanceByClassname(String) - Static method in class cs101.util.Coerce
Given a String representing the name of a class, returns an initilized instance of the corresponding class (as an object).
nextPoint() - Method in class cs101.awt.geom.PointIterator
Return the next point in the shape.
nodenet - package nodenet
 
nodenet.registrar - package nodenet.registrar
 
nonWordChars - Static variable in class cs101.util.StringUtils
A string containing the non-word characters a user might reasonably be expected to type at a semi-standard American keyboard.
notifyOfDestruction(NodeNetElement) - Method in class nodenet.Channel
Notify this that a NodeNetElement has been destroyed.
notifyOfDestruction(NodeNetElement) - Method in class nodenet.Node
Notify this that a NodeNetElement has been destroyed.
notifyOfDestruction(NodeNetElement) - Method in interface nodenet.NodeNetElement
Indicate that another element referenced by this object is being destroyed, and references to the specified element should be dropped.

O

OutputAcceptor - interface cs101.io.connection.OutputAcceptor.
 
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.
OutputChannelVector(Node) - Constructor for class nodenet.OutputChannelVector
Constructs a new OutputChannelVector
OutputConnection - interface cs101.io.connection.OutputConnection.
 
ois - Variable in class cs101.net.BabySitter
Where to read from client
ois - Variable in class cs101.net.Client
Where to read data
oos - Variable in class cs101.net.BabySitter
Where to write to client
oos - Variable in class cs101.net.Client
Where to write data

P

PNCBuffer - class cs101.util.semaphore.PNCBuffer.
cs101.util.PNCBuffer implements a producer/consumer synchronized buffer.
PNCBuffer() - Constructor for class cs101.util.semaphore.PNCBuffer
 
PROP_DEST - Static variable in class nodenet.NodeConfigurationBean
 
PROP_DISPLAY_NODE_NAME - Static variable in class nodenet.NodeConfigurationBean
 
PROP_NODE_NAME - Static variable in class nodenet.NodeConfigurationBean
 
Packet - class nodenet.Packet.
An object that can be sent across the network.
Packet(String) - Constructor for class nodenet.Packet
Creates a new instance of Packet
Pausable - interface cs101.util.gamecontrol.Pausable.
Interface for an object with pause() and unpause() methods.
PointIterator - class cs101.awt.geom.PointIterator.
This class provides a simple interface for listing all the knot points in an java.awt.Shape.
PointIterator(Shape) - Constructor for class cs101.awt.geom.PointIterator
Creates a PointIterator for the specified Shape.
packLine(Line) - Static method in class cs101.awt.Line
This method converts a Line into a String.
paint(Graphics) - Method in class cs101.awt.ColorField
Draws the color field on the screen in it's current state
paint(Graphics) - Method in class cs101.awt.DisplayField
Calls the ColorField.paint to do the field.
paint(Graphics) - Method in class nodenet.Channel
 
paint(Graphics) - Method in class nodenet.Node
 
paint(Graphics) - Method in interface nodenet.NodeNetElement
Paint ourself to a graphics context.
paintIcon(Component, Graphics, int, int) - Method in class nodenet.NodeNetIcon
 
parse(String) - Method in class nodenet.TemplateParser
 
pause() - Method in interface cs101.util.gamecontrol.Pausable
 
peek() - Method in class cs101.util.queue.DefaultQueue
Gets the tail object from the queue without removing it.
peek(int) - Method in class cs101.util.queue.DefaultQueue
Gets the object from the specified end of the queue without removing it.
peek() - Method in interface cs101.util.queue.Queue
Gets the tail object from the queue without removing it.
peek(int) - Method in interface cs101.util.queue.Queue
Gets the object from the specified end of the queue without removing it.
print(String) - Method in class cs101.awt.Console
Write a line to Console.
print(String) - Static method in class cs101.io.Console
Write a line to Console.
println(String) - Method in class cs101.awt.Console
Write a String to Console.
println(String) - Static method in class cs101.io.Console
Write a line to Console.
println() - Static method in class cs101.io.Console
Write a blank line to Console.
putButton(int) - Method in class cs101.util.semaphore.IntBuffer
An alternate (calculator oriented) name for IntBuffer.putInt(int).
putInt(int) - Method in class cs101.util.semaphore.IntBuffer
(Safely) Puts an int into the IntBuffer.
putWord(String) - Method in class cs101.util.semaphore.PNCBuffer
(Safely) Puts a word into the PNCBuffer.

Q

QueryDialog - class cs101.awt.QueryDialog.
A class to display a toplevel dialog box with a message, a list of "things" and associated textfields, and get answers.
QueryDialog(String, String[], String[]) - Constructor for class cs101.awt.QueryDialog
Create a hidden QueryDialog with the appropriate text and defaults.
QueryDialog(String, String[]) - Constructor for class cs101.awt.QueryDialog
Create a hidden QueryDialog with the appropriate text.
Queue - interface cs101.util.queue.Queue.
Generic Queue Interface.
qd - Variable in class cs101.awt.ClientDialog
 
qd - Variable in class cs101.awt.ServerDialog
 
questions - Variable in class cs101.awt.ClientDialog
 
questions - Variable in class cs101.awt.ServerDialog
 

R

Resettable - interface cs101.util.gamecontrol.Resettable.
Interface for an object with a reset() method.
Resettable - interface nodenet.Resettable.
An interface indicating that the state of the object can be reset to a standard initial state.
RunServer - class cs101.net.RunServer.
Runs a server application that broadcasts incoming information to all connected clients (except source of information).
randomInt(int) - Static method in class cs101.util.MoreMath
Generate a random int between 0 and range.
readInput() - Method in interface cs101.io.connection.InputConnection
 
readObject() - Method in class cs101.net.ClientWire
Use this to read an Object from the Wire.
readObject() - Method in class cs101.net.ServerWire
Use this to read an Object from the Wire.
readObject() - Method in interface cs101.net.Wire
Read the next object.
readObject() - Method in class nodenet.Channel
Read an object from the channel.
readObject() - Method in interface nodenet.InputChannel
Attempt to get an object in the channel.
readln() - Method in class cs101.awt.Console
Read a line from Console.
readln() - Static method in class cs101.io.Console
Read a line from Console.
refreshComponents() - Method in class nodenet.NodeConfigurationBean
Refresh the values displayed in the components used to display and configure this bean.
register(Node) - Method in interface nodenet.registrar.NodeNameRegistrar
Attempt to register a node.
register(Node) - Method in class nodenet.registrar.NodeNameRegistry
 
register(Node) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 
release() - Method in class cs101.util.semaphore.BS
Releases the semaphore.
release() - Method in class cs101.util.semaphore.GBS
Releases the semaphore.
release() - Method in class cs101.util.semaphore.GCS
Releases a lock of the semaphore (if any are currently busy).
release() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
removeAllElements() - Method in class nodenet.InputChannelVector
Removes all elements from the InputChannelVector.
removeAllElements() - Method in class nodenet.OutputChannelVector
Removes all elements from the OutputChannelVector.
removeBabySitter(BabySitter) - Method in class cs101.net.Server
Removes a BabySitter for the list of babySitters.
removeElement(InputChannel) - Method in class nodenet.InputChannelVector
Removes a specific element from the InputChannelVector.
removeElement(OutputChannel) - Method in class nodenet.OutputChannelVector
Removes a specific element from the OutputChannelVector.
removeInputChannel(InputChannel) - Method in class nodenet.Node
Removes an InputChannel.
removeOutputChannel(OutputChannel) - Method in class nodenet.Node
Removes an OutputChannel.
removePropertyChangeListener(PropertyChangeListener) - Method in interface nodenet.NodeBehaviorProvider
Unregeister a class that no longer wants to know when the selected node behavior type is changed.
removePropertyChangeListener(PropertyChangeListener) - Method in class nodenet.NodeConfigurationBean
Unregister an object that nolonger needs to be notified of property changes.
removePropertyChangeListener(PropertyChangeListener) - Method in class nodenet.NodeTypeSelector
Removes a PropertyChangeListener from the listener list.
removeVetoableChangeListener(VetoableChangeListener) - Method in class nodenet.NodeConfigurationBean
Unregister an object that nolonger needs to overide changes to this bean.
request() - Method in class cs101.util.semaphore.BS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GBS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GCS
Requests the semaphore.
request() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
reset() - Method in class cs101.util.StopWatch
Reset the stopwatch.
reset() - Method in interface cs101.util.gamecontrol.Resettable
 
reset() - Method in class nodenet.Channel
Custom de-serialization.
reset() - Method in class nodenet.Node
 
reset() - Method in interface nodenet.Resettable
Return all properties and other state to the initial state of the object so long as such changes do not alter the network structure.
resetCount() - Method in interface nodenet.Counter
Resets the count.
resolveEntity(String, String) - Method in class nodenet.DTDResolver
 
resumeExecution() - Method in class cs101.lang.AnimatorThread
Resumes execution after a temporary suspension (using suspendExecution()).
run() - Method in class cs101.lang.AnimatorThread
Repeatedly invoke your Animate's act() method, sleeping between invocations.
run() - Method in class cs101.net.BabySitter
Recieves new info from clients.
run() - Method in class cs101.net.Client
Reads Strings from the server connection.
run() - Method in class cs101.net.DefaultReadLoop
Called by this object's thread.
run() - Method in class cs101.net.Server
Wait loop to service the ServerSocket.
run() - Method in class nodenet.Channel
 
run() - Method in class nodenet.Node
Repeatedly calls the transmitPacket method for the associated NodeBehavior.

S

START_IMMEDIATELY - Static variable in class cs101.lang.AnimatorThread
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
START_IMMEDIATELY - Static variable in class cs101.util.AnimateObject
These constants allow mnemonic access to AnimateObject's final constructor argument, i.e., should the object start running on construction or on (a subsequent) call to a separate start() method?
SameNodeException - exception nodenet.SameNodeException.
Singals that a Channel was attempted to be created from and to a single node.
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.
Server - class cs101.net.Server.
Generic Server class: broadcasts whatever messages it receives to all clients other than the message's originator.
Server() - Constructor for class cs101.net.Server
Creates a server socket.
Server(int) - Constructor for class cs101.net.Server
Creates a server socket.
ServerDialog - class cs101.awt.ServerDialog.
Manages a top level query dialog box to get port connection information.
ServerDialog() - Constructor for class cs101.awt.ServerDialog
Creates the dialog information.
ServerWire - class cs101.net.ServerWire.
Networked Wire, Server Side.
ServerWire(int, boolean) - Constructor for class cs101.net.ServerWire
How to make one, if we know the port.
ServerWire(int) - Constructor for class cs101.net.ServerWire
How to make one, if we know the port.
ServerWire() - Constructor for class cs101.net.ServerWire
How to make one, if we don't know who we want to talk to.
ShapeUtils - class cs101.awt.geom.ShapeUtils.
This utility class holds routines for doing conversions on classes that implement the Shape interface.
ShapesDontOverlapException - exception cs101.awt.geom.ShapesDontOverlapException.
 
ShapesDontOverlapException() - Constructor for class cs101.awt.geom.ShapesDontOverlapException
Creates a new instance of ShapesDontOverlapException without detail message.
ShapesDontOverlapException(String) - Constructor for class cs101.awt.geom.ShapesDontOverlapException
Constructs an instance of ShapesDontOverlapException with the specified detail message.
SimpleErrorHandler - class cs101.xml.SimpleErrorHandler.
A blindingly simple and completely unforgiving xml ErrorHandler.
SimpleErrorHandler() - Constructor for class cs101.xml.SimpleErrorHandler
Creates a new instance of SimpleErrorHandler
Startable - interface cs101.util.gamecontrol.Startable.
Interface for an object with a start() method.
StopWatch - class cs101.util.StopWatch.
A stopwatch for timing the execution of code.
StopWatch() - Constructor for class cs101.util.StopWatch
Creates a new instance of StopWatch.
Stoppable - interface cs101.util.gamecontrol.Stoppable.
Interface for an object with a stop() method.
StringHandler - interface cs101.util.StringHandler.
An interface for objects that can handle Strings received from the network by cs101.net.Client.
StringQueue - interface cs101.util.queue.StringQueue.
 
StringUtils - class cs101.util.StringUtils.
cs101.util.StringUtils implements some string utility functions.
send(String) - Method in class cs101.net.BabySitter
Sends a String to the client.
send(String) - Method in class cs101.net.Client
Use this method to send a String to the server.
sendToAllExcept(String, BabySitter) - Method in class cs101.net.Server
Sends the string passed in to all clients accept the one represented by the BabySitter passed in.
server - Variable in class cs101.net.BabySitter
Server this client is connected to
setCapacity(int) - Method in class nodenet.Channel
 
setColor(Color) - Method in class nodenet.NodeNetIcon
Setter for property color.
setDest(String) - Method in class nodenet.NodeConfigurationBean
Attempts to change the neme of the node.
setDisplayNodeName(boolean) - Method in class nodenet.NodeConfigurationBean
Sets whether or not the name of the node is displayed.
setEnabled(boolean) - Method in class nodenet.Channel
 
setEnabled(boolean) - Method in class nodenet.Node
 
setEnabled(boolean) - Method in interface nodenet.NodeNetElement
Set the enabled property.
setLatency(int) - Method in class nodenet.Channel
 
setName(String) - Method in class nodenet.Channel
 
setName(String) - Method in class nodenet.Node
 
setName(String) - Method in interface nodenet.NodeNetElement
Set the name of this instance.
setNodeBehaviors(int, Class) - Method in class nodenet.NodeTypeSelector
Indexed setter for property nodeBehaviors.
setNodeBehaviors(Class[]) - Method in class nodenet.NodeTypeSelector
Setter for property nodeBehaviors.
setNodeName(String) - Method in class nodenet.NodeConfigurationBean
Attempts to change the neme of the node.
setPolicy(NodeNameRegistrar) - Method in class nodenet.registrar.NodeNameRegistry
Set the registrartion policy one time only.
setPos(Point) - Method in class nodenet.Node
 
setPos(int, int) - Method in class nodenet.Node
 
setSelected(boolean) - Method in class nodenet.Channel
 
setSelected(boolean) - Method in class nodenet.Node
 
setSelected(boolean) - Method in interface nodenet.NodeNetElement
Notify this object that it should render itself as selected or unselected.
setSelectedBehavior(Class) - Method in class nodenet.NodeTypeSelector
Setter for property selectedBehavior.
setSleepMinInterval(long) - Method in class cs101.lang.AnimatorThread
Gives access to this AnimatorThread's sleep minimum.
setSleepRange(long) - Method in class cs101.lang.AnimatorThread
This controls the possible range of durations for AnimatorThread to sleep, i.e., the possible time between actions for the Animate that it animates.
setStringHandler(StringHandler) - Method in class cs101.net.Client
Override default string handling behavior by providing a new StringHandler.
setText(String) - Method in class cs101.awt.DisplayField
Changes the text of the DisplayField to the string passed.
setValues(String[]) - Method in class cs101.awt.QueryDialog
 
setupGUI() - Method in class cs101.util.semaphore.GBS
Does all of the graphical setup on this level then calls the superclasses method to finish the setup.
setupGUI() - Method in class cs101.util.semaphore.GCS
Does all of the graphical setup on this level then calls the superclasses method to finish the setup.
setupGUI() - Method in class cs101.util.semaphore.GraphicalSemaphore
This method should be Called by the subclass after it's part of the gui setup is complete.
showStatus() - Method in class cs101.util.semaphore.GBS
Prints out the current state of the semaphore.
showStatus() - Method in class cs101.util.semaphore.GCS
Prints out the current state of the semaphore.
showStatus() - Method in class cs101.util.semaphore.GraphicalSemaphore
abstract - must be overidden in subclass
shutdown() - Method in class cs101.awt.DefaultGameFrame
Helper method for what to do when this window goes away....
sign(int) - Static method in class cs101.util.MoreMath
Returns 1 if the input is positive, -1 if it is negative, and 0 otherwise.
size() - Method in class cs101.util.queue.DefaultQueue
Returns the number of elements in this.
size() - Method in interface cs101.util.queue.Queue
Returns the number of elements in this.
size() - Method in class nodenet.InputChannelVector
Returns the size of the InputChannelVector.
size() - Method in class nodenet.OutputChannelVector
Returns the size of the InputChannelVector.
sock - Variable in class cs101.net.BabySitter
Client connection
sock - Variable in class cs101.net.Client
Net connection
sock - Variable in class cs101.net.Server
the server socket, i.e., the listener
spawnBabySitter(Socket) - Method in class cs101.net.Server
Creates a BabySitter with the client socket passed and adds it to the list of BabySitters.
spirit - Variable in class cs101.net.BabySitter
Animacy that runs this object
spirit - Variable in class cs101.net.Client
Animates this object
spirit - Variable in class cs101.net.DefaultReadLoop
Animates this object.
spirit - Variable in class cs101.net.Server
animating Thread
spirit - Variable in class cs101.util.AnimateObject
The animacy that makes this object go.
square(int) - Static method in class cs101.util.MoreMath
Returns the square of the input.
start() - Method in class cs101.lang.AnimatorThread
Begin execution.
start() - Method in class cs101.util.AnimateObject
Invocation of this method begins this object's autonomous execution.
start() - Method in class cs101.util.StopWatch
Start the stopwatch.
start() - Method in interface cs101.util.gamecontrol.Startable
 
start() - Method in class nodenet.Channel
 
start() - Method in class nodenet.Node
Starts the node running.
start() - Method in interface nodenet.NodeNetElement
begin exhibiting the behavior of this element This method is called when a simulation is started.
startExecution() - Method in class cs101.lang.AnimatorThread
Begin execution.
state - Variable in class cs101.awt.ColorField
determines the color of the field
stop() - Method in class cs101.net.BabySitter
Should only be called by Server.
stop() - Method in class cs101.util.StopWatch
Stop the stopwatch.
stop() - Method in interface cs101.util.gamecontrol.Stoppable
 
stop() - Method in class nodenet.Channel
 
stop() - Method in class nodenet.Node
Stops the node.
stop() - Method in interface nodenet.NodeNetElement
Stop exhibiting the behavior of this element.
stopExecution() - Method in class cs101.lang.AnimatorThread
Terminates execution.
stringHandler - Variable in class cs101.net.Client
Handles input from net
stringToColor(String) - Static method in class cs101.util.Coerce
Given a string representing the name of one of java's built-in colors, returns the corresponding Color object.
stringToDouble(String) - Static method in class cs101.util.Coerce
Given a string representing a floating point number, returns the corresponding (unwrapped) double.
suspendExecution() - Method in class cs101.lang.AnimatorThread
Temporarily suspends execution.

T

TemplateParser - class nodenet.TemplateParser.
A class for reading a template file and converting it into a List of NodeNetElement.
TemplateParser(NodeBehaviorProvider) - Constructor for class nodenet.TemplateParser
Creates a new instance of TemplateParser
templateXML() - Method in class nodenet.Channel
 
templateXML() - Method in class nodenet.Node
Generate an xml element representing a template of this node.
text - Variable in class cs101.awt.DisplayField
the string to be displayed
toString() - Method in class cs101.util.queue.DefaultQueue
 
transmitPacket(InputChannelVector, OutputChannelVector) - Method in interface nodenet.NodeBehavior
TransmitPacket is the method you will write for this lab.
trueColor - Variable in class cs101.awt.ColorField
color when state == true

U

UniqueNodeNamePolicy - class nodenet.registrar.UniqueNodeNamePolicy.
This class is designed to be plugged into NodeNameRegistry via the setPolicy(NodeNameRegistrar) method.
UniqueNodeNamePolicy() - Constructor for class nodenet.registrar.UniqueNodeNamePolicy
Creates a new instance of UniqueNodeNamePolicy
unCapitalize(String) - Static method in class cs101.util.StringUtils
Constructs a new string identical to its argument, but with the first character replaced by its lower case equivalent.
unpause() - Method in interface cs101.util.gamecontrol.Pausable
 
unregister(Node) - Method in interface nodenet.registrar.NodeNameRegistrar
Ensures that the specified node is nolonger registered.
unregister(Node) - Method in class nodenet.registrar.NodeNameRegistry
 
unregister(Node) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 

V

vetoableChange(PropertyChangeEvent) - Method in class nodenet.registrar.DestinationValidator
Decide whether or not to veto a change to the dest property of a NodeConfigurationBean.
vetoableChange(PropertyChangeEvent) - Method in class nodenet.registrar.NodeNameRegistry
 
vetoableChange(PropertyChangeEvent) - Method in class nodenet.registrar.UniqueNodeNamePolicy
 

W

WARNING - Static variable in class cs101.xml.SimpleErrorHandler
 
Wire - interface cs101.net.Wire.
A generic interface for stream-like things that can read and write objects.
warning(SAXParseException) - Method in class cs101.xml.SimpleErrorHandler
 
wordP(String) - Static method in class cs101.util.StringUtils
Determines whether its argument is a word or a delimiter as defined by a java.util.StringTokenizer when initialized with StringUtils.nonWordChars as a delimiter string.
writeObject(Object) - Method in class cs101.net.ClientWire
Use this method to write an Object to the Wire.
writeObject(Object) - Method in class cs101.net.ServerWire
Use this method to write an Object to the Wire.
writeObject(Object) - Method in interface cs101.net.Wire
Write an object.
writeObject(Object) - Method in class nodenet.Channel
Insert an object into the channel.
writeObject(Object) - Method in interface nodenet.OutputChannel
Attempt to place an object into the channel.
writeOutput(String) - Method in interface cs101.io.connection.OutputConnection
 

A B C D E F G H I K L M N O P Q R S T U V W
Nodenet Problem Set Javadocs