Nodenet Problem Set Javadocs

Serialized Form


Package cs101.awt

Class cs101.awt.ColorField extends java.awt.Canvas implements Serializable

Serialized Fields

state

boolean state
determines the color of the field


dim

java.awt.Dimension dim
size of the field


trueColor

java.awt.Color trueColor
color when state == true


falseColor

java.awt.Color falseColor
color when state == false

Class cs101.awt.Console extends java.awt.Frame implements Serializable

Serialized Fields

inputLines

Queue inputLines
Buffer for input lines not yet read.


ta

java.awt.TextArea ta

Class cs101.awt.DefaultFrame extends java.awt.Frame implements Serializable

Serialized Fields

c

java.awt.Component c
The Component to display.


defaultDimension

java.awt.Dimension defaultDimension
Default Frame dimensions. Initialized in constructor

Class cs101.awt.DefaultGameFrame extends java.awt.Frame implements Serializable

Serialized Fields

c

java.awt.Component c
The Component (view) to display.


gc

GameControllable gc
The controls for this component.


defaultDimension

java.awt.Dimension defaultDimension
Default Frame dimensions. Initialized in constructor

Class cs101.awt.DisplayField extends ColorField implements Serializable

Serialized Fields

text

java.lang.String text
the string to be displayed

Class cs101.awt.NetworkSettingsDialog extends javax.swing.JDialog implements Serializable

Serialized Fields

mode

int mode

clientRadioButton

javax.swing.JRadioButton clientRadioButton

hostLabel

javax.swing.JLabel hostLabel

hostTextField

javax.swing.JTextField hostTextField

jLabel3

javax.swing.JLabel jLabel3

jPanel1

javax.swing.JPanel jPanel1

jPanel3

javax.swing.JPanel jPanel3

leftPanel

javax.swing.JPanel leftPanel

modeButtons

javax.swing.ButtonGroup modeButtons

okButton

javax.swing.JButton okButton

portLabel

javax.swing.JLabel portLabel

portTextField

javax.swing.JTextField portTextField

serverRadioButton

javax.swing.JRadioButton serverRadioButton

standaloneRadioButton

javax.swing.JRadioButton standaloneRadioButton

Class cs101.awt.QueryDialog extends java.awt.Frame implements Serializable

Serialized Fields

message

java.lang.String message

fields

java.lang.String[] fields

values

java.lang.String[] values

entries

java.awt.TextComponent[] entries

ok

java.awt.Button ok


Package cs101.awt.geom

Class cs101.awt.geom.NotEnoughPointsException extends java.lang.Exception implements Serializable

Class cs101.awt.geom.NoUniqueLineException extends java.lang.Exception implements Serializable

Class cs101.awt.geom.ShapesDontOverlapException extends java.lang.RuntimeException implements Serializable


Package cs101.io.connection

Class cs101.io.connection.ConnectionRejectedException extends java.io.IOException implements Serializable


Package cs101.util

Class cs101.util.CreationException extends java.lang.Exception implements Serializable


Package cs101.util.queue

Class cs101.util.queue.EmptyQueueException extends java.lang.RuntimeException implements Serializable


Package cs101.util.semaphore

Class cs101.util.semaphore.GBS extends GraphicalSemaphore implements Serializable

Serialized Fields

busy

boolean busy
The current state of the semaphore. true => busy , false => free


sqr

ColorField sqr
The graphical display of the semaphore

Class cs101.util.semaphore.GCS extends GraphicalSemaphore implements Serializable

Serialized Fields

size

int size
the length of the semaphore


busy

int busy
how much of the semaphore is in use


fields

ColorField[] fields

Class cs101.util.semaphore.GraphicalSemaphore extends java.awt.Panel implements Serializable

Serialized Fields

myNumber

int myNumber
my number in the InstanceCount(er)


label

java.awt.Label label
label for the semaphore


display

java.awt.Panel display
display panel for the semaphore


Package nodenet

Class nodenet.Channel extends java.lang.Object implements Serializable

Serialization Methods

readObject

public java.lang.Object readObject()
                            throws ChannelEmptyException,
                                   ChannelDisabledException
Read an object from the channel.

Throws:
ChannelEmptyException - if no objects are present in the channel or the oldest object has not propigated through the channel yet (due to a non-zero latency).
ChannelDisabledException - if the channel is diabled

writeObject

public void writeObject(java.lang.Object o)
                 throws ChannelFullException,
                        ChannelDisabledException
Insert an object into the channel.

Throws:
ChannelFullException - if the number of objects in the channel already equals or exceeds the capacity.
ChannelDisabledException - if the channel is currently disabled
Serialized Fields

capacity

int capacity

latency

int latency

name

java.lang.String name

startNode

Node startNode

stopNode

Node stopNode

enabled

boolean enabled

destroyed

boolean destroyed

p1

java.awt.Point p1

p2

java.awt.Point p2

poly1

java.awt.Polygon poly1

poly2

java.awt.Polygon poly2

x_diff

int x_diff

y_diff

int y_diff

Class nodenet.ChannelDisabledException extends java.io.IOException implements Serializable

Class nodenet.ChannelEmptyException extends java.io.IOException implements Serializable

Class nodenet.ChannelFullException extends java.io.IOException implements Serializable

Class nodenet.InputChannelVector extends java.lang.Object implements Serializable

Serialized Fields

myVector

java.util.Vector myVector

owner

Node owner

Class nodenet.IsInsideNothingException extends java.lang.Exception implements Serializable

Class nodenet.Main extends javax.swing.JApplet implements Serializable

Serialized Fields

me

NodeNetFrame me

Class nodenet.Node extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Custom de-serialization. Get NodeBehavior & color, then start Thread.

Serialized Fields

pos

java.awt.Point pos

enabled

boolean enabled

destroyed

boolean destroyed

stopped

boolean stopped

name

java.lang.String name

myBehaviorStr

java.lang.String myBehaviorStr

inputChannels

InputChannelVector inputChannels

outputChannels

OutputChannelVector outputChannels

myConfig

NodeConfigurationBean myConfig

Class nodenet.NodeConfigurationBean extends javax.swing.JPanel implements Serializable

Serialized Fields

nodeName

java.lang.String nodeName

dest

java.lang.String dest

displayNodeName

boolean displayNodeName

propertySupport

java.beans.PropertyChangeSupport propertySupport

vetos

java.beans.VetoableChangeSupport vetos

destVal

DestinationValidator destVal

destDetailLabel

javax.swing.JLabel destDetailLabel

destinationLabel

javax.swing.JLabel destinationLabel

destinationPanel

javax.swing.JPanel destinationPanel

destinationTextField

javax.swing.JTextField destinationTextField

nameDisplayCheckBox

javax.swing.JCheckBox nameDisplayCheckBox

nameLabel

javax.swing.JLabel nameLabel

namePanel

javax.swing.JPanel namePanel

nameTextField

javax.swing.JTextField nameTextField

Class nodenet.NodeNetFrame extends javax.swing.JFrame implements Serializable

Serialized Fields

sp

SimulationPanel sp

jsp

javax.swing.JSplitPane jsp

nts

NodeTypeSelector nts

cl

java.lang.ClassLoader cl

uLoad

java.net.URLClassLoader uLoad

Class nodenet.NodeTypeSelector extends javax.swing.JPanel implements Serializable

Serialized Fields

propertyChangeSupport

java.beans.PropertyChangeSupport propertyChangeSupport
Utility field used by bound properties.


nodeBehaviors

java.lang.Class[] nodeBehaviors
Holds value of property nodeBehaviors.


selectedBehavior

java.lang.Class selectedBehavior
Holds value of property selectedBehavior.


generator

java.lang.Class generator
Holds the default generator behavior


terminator

java.lang.Class terminator
Holds the default terminator behavior


minSize

java.awt.Dimension minSize
holds the minimum size to display ourselves


behaviorButtons

javax.swing.ButtonGroup behaviorButtons

buttonPanel

javax.swing.JPanel buttonPanel

buttonScrollPane

javax.swing.JScrollPane buttonScrollPane

moveDownMenuItem

javax.swing.JMenuItem moveDownMenuItem

moveUpMenuItem

javax.swing.JMenuItem moveUpMenuItem

popup

javax.swing.JPopupMenu popup

Class nodenet.OutputChannelVector extends java.lang.Object implements Serializable

Serialized Fields

myVector

java.util.Vector myVector

owner

Node owner

Class nodenet.SameNodeException extends java.lang.Exception implements Serializable


Package nodenet.registrar

Class nodenet.registrar.DestinationValidator extends java.lang.Object implements Serializable

Serialization Methods

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException


Nodenet Problem Set Javadocs