Serialized Form


Package edu.colorado.cs.ns2.agents

Class edu.colorado.cs.ns2.agents.Agent extends java.lang.Object implements Serializable

Serialized Fields

agentId

int agentId
Agent identifier field uniquely identifying this agent.


nodeId

int nodeId
Node identifier field which specifies to which node this agent is attached.


agentName

java.lang.String agentName
Agent name, as defined by NS2 (i.e., TCP, TCPSink, UDP, Null, etc.).


variableName

java.lang.String variableName
Agent's TCL variable name.


acceptableConnectAgents

java.util.Vector<E> acceptableConnectAgents
A vector of Agents that may be connected to the current Agent.

See Also:
Vector

isConnected

boolean isConnected
boolean Returns true if the current Agent is connected.

See Also:
Vector

applications

java.util.Vector<E> applications
A Vector of all applications attached to the current Agent.

See Also:
Vector

Class edu.colorado.cs.ns2.agents.Application extends java.lang.Object implements Serializable

Serialized Fields

applicationName

java.lang.String applicationName
Store the name of the Application in the NS2 application naming convention.


applicationId

int applicationId
Stores the application identifer.


nodeId

int nodeId
Stores the Node identifier on which this application's agent resides.


agentId

int agentId
Stores the agent identifier on which this application resides.


variableName

java.lang.String variableName
Stores this Application's TCL variable name


startEventScheduled

boolean startEventScheduled
True if a "start" event has been scheduled for this Application.


stopEventScheduled

boolean stopEventScheduled
True if a "stop" event has been scheduled for this Application.


acceptableConnectAgents

java.util.Vector<E> acceptableConnectAgents
A Vector of Agent names that are acceptable for attaching this Application. @see Vector

Class edu.colorado.cs.ns2.agents.CBRAgent extends Application implements Serializable

serialVersionUID: 6467045391317318430L

Serialized Fields

type_

java.lang.String type_
Stores the CBR Agent's TCL type_ field.


packetSize_

int packetSize_
Stores the CBR Agent's TCL packetSize_ field.


rate_

double rate_
Stores the CB Agent's TCL rate_ field.


random_

boolean random_
Stores the CBR Agent's TCL random_ field.

Class edu.colorado.cs.ns2.agents.CBRAgent.CBRPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
A OK button for the dialog.


packetSizeField

javax.swing.JTextField packetSizeField
A field for the user to specify the packet size (packetSize_ in TCL).


rateField

javax.swing.JTextField rateField
A field for the user to specify the CBR rate (rate_ in TCL).


randomButton

javax.swing.JCheckBox randomButton
A check box for the user to specify whether to enable random CBR (random_ in TCL).


agent

CBRAgent agent
A reference to the CBRAgent on which these properties should be applied.

Class edu.colorado.cs.ns2.agents.ExponentialAgent extends Application implements Serializable

serialVersionUID: 6467045391317318430L

Serialized Fields

type_

java.lang.String type_
NS2 Exponential traffic generator type field.


rate_

double rate_
NS2 Exponential traffic generator rate field.


burstTime_

double burstTime_
NS2 Exponential traffic generator burst time field.


idleTime_

double idleTime_
NS2 Exponential traffic generator idle time field.

Class edu.colorado.cs.ns2.agents.ExponentialAgent.ExponentialPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An OK button.


burstTimeField

javax.swing.JTextField burstTimeField
A text field allowing the user to specify the burst time.


rateField

javax.swing.JTextField rateField
A text field allowing the user to specify the rate.


idleTimeField

javax.swing.JTextField idleTimeField
A text field allowing the user to specify the idle time.


agent

ExponentialAgent agent
A reference to the Exponential traffic generator Application on which the properites should apply.

Class edu.colorado.cs.ns2.agents.FTPAgent extends Application implements Serializable

serialVersionUID: -8895168089741357806L

Class edu.colorado.cs.ns2.agents.FTPAgent.FTPPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "OK" button to accept the user's desired properties.

Class edu.colorado.cs.ns2.agents.NullAgent extends Agent implements Serializable

serialVersionUID: -593832633388044211L

Class edu.colorado.cs.ns2.agents.ParetoAgent extends Application implements Serializable

serialVersionUID: 6467045391317318430L

Serialized Fields

type_

java.lang.String type_
TCL type_ variable.


rate_

double rate_
TCL rate_ variabile.


burstTime_

double burstTime_
TCL burstTime_ variable.


idleTime_

double idleTime_
TCL idleTime_ variable.


shape_

double shape_
TCL shape_ variable.

Class edu.colorado.cs.ns2.agents.ParetoAgent.ParetoPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "OK" button.


burstTimeField

javax.swing.JTextField burstTimeField
Th burst time field.


rateField

javax.swing.JTextField rateField
The rate field.


idleTimeField

javax.swing.JTextField idleTimeField
the idle time field.


shapeField

javax.swing.JTextField shapeField
The shape field.


agent

ParetoAgent agent
A reference to the Application on which these properties should be set.

Class edu.colorado.cs.ns2.agents.TCPAgent extends Agent implements Serializable

serialVersionUID: 5601686951306122622L

Serialized Fields

class_

int class_
NS2's TCP class_ TCL variable.


fid_

int fid_
NS2's TCP fid_ (flow identifier) TCL variable.


packetSize_

int packetSize_
NS2's packetSize_ TCL variable.

Class edu.colorado.cs.ns2.agents.TCPRenoAgent extends Agent implements Serializable

serialVersionUID: 1025718974802809203L

Serialized Fields

class_

int class_
NS2's TCPReno class_ TCL variaible.


fid_

int fid_
NS2's TCPReno fid_ (flow identifier) TCL variaible.

Class edu.colorado.cs.ns2.agents.TCPSink extends Agent implements Serializable

serialVersionUID: -3162073274841097746L

Class edu.colorado.cs.ns2.agents.TCPVegasAgent extends Agent implements Serializable

serialVersionUID: 7271945148140465945L

Serialized Fields

class_

int class_
NS2's TCPVegas class_ TCL variable.


fid_

int fid_
NS2's TCPVegas fid_ (flow identifier) TCL variable.

Class edu.colorado.cs.ns2.agents.TelnetAgent extends Application implements Serializable

serialVersionUID: 3209783064260438135L

Class edu.colorado.cs.ns2.agents.TelnetAgent.TelnetPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "OK" button.

Class edu.colorado.cs.ns2.agents.UDPAgent extends Agent implements Serializable

serialVersionUID: -5306184516401438228L

Serialized Fields

fid_

int fid_
NS2's UDP fid_ (flow identifier) TCL variable.


class_

int class_
NS2's UDP class_ TCL variable.


Package edu.colorado.cs.ns2.graphics

Class edu.colorado.cs.ns2.graphics.CoordinatePair extends java.lang.Object implements Serializable

serialVersionUID: -4289730110401881855L

Serialized Fields

c1

java.awt.Point c1
Point (x1, y1).


c2

java.awt.Point c2
Point (x2, y2).

Class edu.colorado.cs.ns2.graphics.LineDrawable extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

X1

int X1
The X-coordinate of the first endpoint.


Y1

int Y1
The Y-coodinate of the first endpoint.


X2

int X2
The X-coordinate of the second endpoint.


Y2

int Y2
The Y-coordinate of the second endpoint.


m

double m
The slope of the line.


c

double c
The y-intercept of the line.


link

Link link
A reference to the NS2 link that the current graphical link represents.

Class edu.colorado.cs.ns2.graphics.RectDrawable extends java.lang.Object implements Serializable

serialVersionUID: -6738479805616960230L

Serialized Fields

myX

int myX
The shape's X-coordainte.


myY

int myY
The shape's Y-coordinate.


myWidth

int myWidth
The shape's width.


myHeight

int myHeight
The shape's height.


theNode

NsNode theNode
A reference to the NS2 node that this shape represents graphically.


selected

boolean selected
True if this node is selected with the mouse.


WIDTH

int WIDTH
The default shape width.


HEIGHT

int HEIGHT
The default shape height.


Package edu.colorado.cs.ns2.gui

Class edu.colorado.cs.ns2.gui.DrawableMover extends java.awt.event.MouseAdapter implements Serializable

serialVersionUID: 1L

Serialized Fields

myPrevX

int myPrevX

myPrevY

int myPrevY

myDrawable

Drawable myDrawable

prevDrawable

Drawable prevDrawable

myCanvas

javax.swing.JFrame myCanvas

myBounds

java.awt.Rectangle myBounds

myList

java.util.Vector<E> myList

coordinatePair

CoordinatePair coordinatePair

counter

int counter

input

java.lang.String input

simData

SimulationData simData

TOOLBARHEIGHT

int TOOLBARHEIGHT

MINHEIGHT

int MINHEIGHT

nextAgentId

int nextAgentId

flag

boolean flag

checkLine

boolean checkLine

lines

java.util.Vector<E> lines

Class edu.colorado.cs.ns2.gui.Generator extends javax.swing.JFrame implements Serializable

serialVersionUID: 1L

Serialized Fields

myDrawableList

java.util.Vector<E> myDrawableList

simData

SimulationData simData

version

float version

mover

DrawableMover mover

bar

javax.swing.JMenuBar bar

contentPane

java.awt.Container contentPane

generator

Generator generator

Package edu.colorado.cs.ns2.gui.dialogs

Class edu.colorado.cs.ns2.gui.dialogs.ConnectAgentsDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "Ok" button.


cancelButton

javax.swing.JButton cancelButton
A "Cancel" button.


comboNodes

javax.swing.JComboBox comboNodes
A combo box containing any reachable nodes.


comboAgents

javax.swing.JComboBox comboAgents
A combo box containing agents on any reachable node.


simData

SimulationData simData
A reference to the main simulation data internal representation.


textPanel

javax.swing.JPanel textPanel
A text panel.


buttonPanel

javax.swing.JPanel buttonPanel
A button panel.


selectNodeLabel

javax.swing.JLabel selectNodeLabel
The label of the selected node.


selectAgentLabel

javax.swing.JLabel selectAgentLabel
The label of the selected agent.


node1

NsNode node1
A reference to the node containing the agent "connector".


element

int element
An index into the possibleAgents array.


node2

NsNode node2
A reference to the node containing the agent "conectee".


noOfAgents

int noOfAgents
The number of agents that exits.


possibleAgents

java.lang.String[] possibleAgents
An array of all possible agents that could be connected.

Class edu.colorado.cs.ns2.gui.dialogs.ExtendedLinkPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

queueSize

javax.swing.JTextField queueSize
A text field to read the link's queue size.


okButton

javax.swing.JButton okButton
An "Ok" button.


theLink

Link theLink
A reference to the link on which these extended properties should be applied.

Class edu.colorado.cs.ns2.gui.dialogs.LinkPropertiesDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "Ok" button.


textLatency

javax.swing.JTextField textLatency
A text field to read the link's latency value.


textBandwidth

javax.swing.JTextField textBandwidth
A text field to read the link's bandwidth value.


textArgs

javax.swing.JTextField textArgs
A text field to read the link's arguments.


comboQueue

javax.swing.JComboBox comboQueue
A combo box to allow the user to choose a queuing mechanism for the link.


lp

LinkProperties lp
Encapsulates the link properties.

Class edu.colorado.cs.ns2.gui.dialogs.OutputDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "Ok" button.


resultArea

javax.swing.JTextArea resultArea
A text area to show any resulting output.

Class edu.colorado.cs.ns2.gui.dialogs.ScheduleEventDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "Ok" button.


cancelButton

javax.swing.JButton cancelButton
A "Cancel" button.


timeField

javax.swing.JTextField timeField
A text field to read the event time.


comboApps

javax.swing.JComboBox comboApps
A combo box to display the possible application on which an event may be scheduled.


comboWhatToDo

javax.swing.JComboBox comboWhatToDo
A combox box to display the possible actions for an event: {start, stop, finish}.


simData

SimulationData simData
A reference to the primary internal simulation data structure.


appList

java.util.Vector<E> appList
A list of possible applications.


labelTime

javax.swing.JLabel labelTime
A time label.


labelApplication

javax.swing.JLabel labelApplication
An application label.


labelWhatToDo

javax.swing.JLabel labelWhatToDo
An event action label.


textPanel

javax.swing.JPanel textPanel
A text panel.


buttonPanel

javax.swing.JPanel buttonPanel
A button panel.

Class edu.colorado.cs.ns2.gui.dialogs.ViewScriptDialog extends javax.swing.JDialog implements Serializable

serialVersionUID: 1L

Serialized Fields

okButton

javax.swing.JButton okButton
An "Ok" button.


resultArea

javax.swing.JTextArea resultArea
A text area to display the TCL script.


Package edu.colorado.cs.ns2.sim

Class edu.colorado.cs.ns2.sim.Connection extends java.lang.Object implements Serializable

serialVersionUID: 7034839147507007049L

Serialized Fields

agent1

Agent agent1
The first Agent party in the Connection.


agent2

Agent agent2
The second Agent party in the Connection.


isConnected

boolean isConnected
The status of the Connection.

Class edu.colorado.cs.ns2.sim.ConnectionList extends java.lang.Object implements Serializable

serialVersionUID: 5603172026119558955L

Serialized Fields

connections

java.util.Vector<E> connections
List of agent connections.

Class edu.colorado.cs.ns2.sim.ExtendedLinkProperties extends java.lang.Object implements Serializable

serialVersionUID: -1630136113449714964L

Serialized Fields

queueBufferSize

int queueBufferSize
Stores the queue's buffer size.

Class edu.colorado.cs.ns2.sim.Link extends java.lang.Object implements Serializable

serialVersionUID: -2106184709591667172L

Serialized Fields

node1

NsNode node1
The NS2 node at endpoint 1.


node2

NsNode node2
The NS2 node at endpoint 2.


queueType

java.lang.String queueType
The queuing model.


bandwidth

double bandwidth
The bandwidth (Mb/s).


latency

double latency
The latency (ms).


args

java.lang.String args
The queue's arguments.


connectionList

ConnectionList connectionList
A list of connections on this link.


elp

ExtendedLinkProperties elp
The extended link properties for this link.

Class edu.colorado.cs.ns2.sim.NsNode extends java.lang.Object implements Serializable

serialVersionUID: 5762586995011992356L

Serialized Fields

nodeId

int nodeId

x

double x

y

double y

agents

java.util.Vector<E> agents

reachableNodes

java.util.HashSet<E> reachableNodes

Class edu.colorado.cs.ns2.sim.SimulationData extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

nodes

java.util.Vector<E> nodes

links

java.util.Vector<E> links

eventList

java.util.Vector<E> eventList

connList

ConnectionList connList

routing

boolean routing

flowId

boolean flowId

routingType

java.lang.String routingType

Class edu.colorado.cs.ns2.sim.SimulationEvent extends java.lang.Object implements Serializable

serialVersionUID: 9157259475959567824L

Serialized Fields

simulationTime

double simulationTime
The time of this event in the simulation.


app

Application app
The application on which this event should occur.


whatToDO

java.lang.String whatToDO
The event action: {start, stop, finish}.


Package edu.colorado.cs.ns2.sys

Class edu.colorado.cs.ns2.sys.GeneratorFileIO extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

myListDrawable

java.util.Vector<E> myListDrawable
The list of graphical shapes on the GUI.


simData

SimulationData simData
The simulation data internal representation.


nextAgentId

int nextAgentId
The next available agent identifier.