Class NodePort

java.lang.Object
   |
   +----CollectorUpdate
           |
           +----NodePort

public class NodePort
extends CollectorUpdate
Collector class for reporting the ports on a node.

Version:
$Revision: 1.12 $, $Date: 2000/10/12 14:09:51 $
Author:
Mike Spengler, Joseph Thomas

Variable Index

 o allocin
Input allocated port bandwidth
 o allocout
Output allocated port bandwidth
 o bwin
Input maximum port bandwidth
 o bwout
Output maximum port bandwidth
 o cellsin
Input port cell count
 o cellsout
Output port cell count
 o isControl
True if this is a switch port and it is the control processor's port.
 o isSwitch
True if this port is for a switch node.
 o portName
Port name.
 o uptime
Port Uptime

Constructor Index

 o NodePort(NodeAddress, String, boolean, boolean)
Class constructor.
 o NodePort(NodeAddress, String, boolean, boolean, int, int, int, int, int, int, int)
Class constructor.

Method Index

 o getInputAllocatedBW()
Returns the allocated input bandwidth in cells for this object.
 o getInputBandwidth()
Returns the maximum input bandwidth in cells for this object.
 o getInputCells()
Returns the input cell count for this object.
 o getOutputAllocatedBW()
Returns the alloacted output bandwidth in cells for this object.
 o getOutputBandwidth()
Returns the maximum output bandwidth in cells for this object.
 o getOutputCells()
Returns the output cell count for this object.
 o getPortName()
Gets the port's name.
 o getUptime()
Returns the port uptime for this object.
 o isControl()
Determines whether the update applies to a switch control processor.
 o isSwitch()
Determines whether the update applies to a switch.
 o process(CollectorNetwork)
Applies this update object to the network model.
 o toString()
Returns a string describing this object.

Variables

 o portName
 private String portName
Port name.

 o uptime
 private int uptime
Port Uptime

 o bwin
 private int bwin
Input maximum port bandwidth

 o allocin
 private int allocin
Input allocated port bandwidth

 o cellsin
 private int cellsin
Input port cell count

 o bwout
 private int bwout
Output maximum port bandwidth

 o allocout
 private int allocout
Output allocated port bandwidth

 o cellsout
 private int cellsout
Output port cell count

 o isSwitch
 private boolean isSwitch
True if this port is for a switch node.

 o isControl
 private boolean isControl
True if this is a switch port and it is the control processor's port.

Constructors

 o NodePort
 public NodePort(NodeAddress addr,
                 String portName,
                 boolean isSwitch,
                 boolean isControl,
                 int uptime,
                 int bwin,
                 int allocin,
                 int cellsin,
                 int bwout,
                 int allocout,
                 int cellsout)
Class constructor.

Parameters:
addr - the address of the node from which the data for this update was obtained
portName - the name of a port on the node
isSwitch - true if port is for a switch node
isControl - true if port is a control processor
uptime - port uptime
bwin - port maximum input bandwidth
allocin - port allocated input bandwidth
cellsin - port input cell count
bwout - port maximum output bandwidth
allocout - port allocated output bandwidth
cellsout - port output cell count
 o NodePort
 public NodePort(NodeAddress addr,
                 String portName,
                 boolean isSwitch,
                 boolean isControl)
Class constructor.

Parameters:
addr - the address of the node from which the data for this update was obtained
portName - the name of a port on the node
isSwitch - true if port is for a switch node
isControl - true if port is a control processor

Methods

 o process
 public void process(CollectorNetwork net)
Applies this update object to the network model.

Parameters:
net - the network which this object updates
Overrides:
process in class CollectorUpdate
 o getPortName
 public String getPortName()
Gets the port's name.

Returns:
the port name
 o isSwitch
 public boolean isSwitch()
Determines whether the update applies to a switch.

Returns:
True if this port is for a switch node
 o isControl
 public boolean isControl()
Determines whether the update applies to a switch control processor.

Returns:
True if this is a switch control processor's port
 o getUptime
 public int getUptime()
Returns the port uptime for this object.

Returns:
the time (in hundredths of a second) this port has been up.
 o getInputBandwidth
 public int getInputBandwidth()
Returns the maximum input bandwidth in cells for this object.

Returns:
maximum input bandwidth for this port
 o getInputAllocatedBW
 public int getInputAllocatedBW()
Returns the allocated input bandwidth in cells for this object.

Returns:
allocated input bandwidth for this port
 o getInputCells
 public int getInputCells()
Returns the input cell count for this object.

Returns:
input cell count for this port
 o getOutputBandwidth
 public int getOutputBandwidth()
Returns the maximum output bandwidth in cells for this object.

Returns:
maximum output bandwidth for this port
 o getOutputAllocatedBW
 public int getOutputAllocatedBW()
Returns the alloacted output bandwidth in cells for this object.

Returns:
allocated output bandwidth for this port
 o getOutputCells
 public int getOutputCells()
Returns the output cell count for this object.

Returns:
output cell count for this port
 o toString
 public String toString()
Returns a string describing this object.

Returns:
string describing this object
Overrides:
toString in class Object