Class VCCEndpoint

java.lang.Object
   |
   +----VCCEndpoint

public class VCCEndpoint
extends Object
Class definition for one end of a VCC.

Version:
$Revision: 1.7 $, $Date: 2000/10/12 14:08:03 $
Author:
John Cavanaugh

Variable Index

 o currentStatistics
The current statistics for the VCC endpoint.
 o node
The node where the VCC terminates.
 o statsHistory
A list of updates to the endpoint's counters.
 o vci
The VCI at the endpoint.
 o vpi
The VPI at the endpoint.

Constructor Index

 o VCCEndpoint()
Constructs a VCC endpoint with default settings.
 o VCCEndpoint(Node, int, int)
Constructs a VCC endpoint, given its end station, VPI, and VCI.
 o VCCEndpoint(VCCEndpoint)
Constructs a VCC endpoint by copying another VCC endpoint.

Method Index

 o equals(String, int, int)
Checks whether the VCC endpoint matches a given node, VPI, and VCI.
 o getNode()
Gets the node where the VCC terminates.
 o getStatisticsIteration()
Gets an iteration over the VCC endpoint's statistics.
 o getUptime()
Gets the VCC endpoint's uptime.
 o getVCI()
Gets the VCC endpoint's VCI.
 o getVPI()
Gets the VCC endpoint's VPI.
 o getXmitCells()
Gets the number of cells transmitted by the endpoint.
 o toString()
Gets a string describing the VCC endpoint.
 o update(long, long, long)
Updates the VCCEndpoint's counters

Variables

 o node
 private Node node
The node where the VCC terminates.

 o vpi
 private int vpi
The VPI at the endpoint.

 o vci
 private int vci
The VCI at the endpoint.

 o currentStatistics
 private VCCEndpointStatistics currentStatistics
The current statistics for the VCC endpoint.

 o statsHistory
 private StatisticsQueue statsHistory
A list of updates to the endpoint's counters.

Constructors

 o VCCEndpoint
 public VCCEndpoint(Node node,
                    int vpi,
                    int vci)
Constructs a VCC endpoint, given its end station, VPI, and VCI.

Parameters:
node - the node system where the VCC terminates.
vpi - the VPI at the endpoint.
vci - the VCI at the endpoint.
 o VCCEndpoint
 public VCCEndpoint(VCCEndpoint v)
Constructs a VCC endpoint by copying another VCC endpoint.

Parameters:
v - the VCC endpoint to be copied.
 o VCCEndpoint
 public VCCEndpoint()
Constructs a VCC endpoint with default settings.

Methods

 o update
 public void update(long uptime,
                    long xmitCells,
                    long updTime)
Updates the VCCEndpoint's counters

Parameters:
uptime - the VCC uptime at the endpoint.
xmitCells - the number of cells transmitted by the endpoint.
updTime - the time at which the update was issued.
 o getStatisticsIteration
 public VIteration getStatisticsIteration()
Gets an iteration over the VCC endpoint's statistics.

Returns:
an iteration over the VCC endpoint's statistics.
 o getNode
 public Node getNode()
Gets the node where the VCC terminates.

Returns:
the node where the VCC terminates.
 o getVPI
 public int getVPI()
Gets the VCC endpoint's VPI.

Returns:
the VPI at the endpoint.
 o getVCI
 public int getVCI()
Gets the VCC endpoint's VCI.

Returns:
the VCI at the endpoint.
 o getUptime
 public long getUptime()
Gets the VCC endpoint's uptime.

Returns:
the VCC uptime at the endpoint.
 o getXmitCells
 public long getXmitCells()
Gets the number of cells transmitted by the endpoint.

Returns:
the number of cells transmitted.
 o equals
 public boolean equals(String esName,
                       int vpi,
                       int vci)
Checks whether the VCC endpoint matches a given node, VPI, and VCI.

Parameters:
esName - the node name.
vpi - the VPI.
vci - the VCI.
Returns:
true if the endpoint matches the given parameters; false otherwise.
 o toString
 public String toString()
Gets a string describing the VCC endpoint.

Returns:
a string describing the VCC endpoint.
Overrides:
toString in class Object