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
-
currentStatistics
- The current statistics for the VCC endpoint.
-
node
- The node where the VCC terminates.
-
statsHistory
- A list of updates to the endpoint's counters.
-
vci
- The VCI at the endpoint.
-
vpi
- The VPI at the endpoint.
-
VCCEndpoint()
- Constructs a VCC endpoint with default settings.
-
VCCEndpoint(Node, int, int)
- Constructs a VCC endpoint, given its end station, VPI, and VCI.
-
VCCEndpoint(VCCEndpoint)
- Constructs a VCC endpoint by copying another VCC endpoint.
-
equals(String, int, int)
- Checks whether the VCC endpoint matches a given node,
VPI, and VCI.
-
getNode()
- Gets the node where the VCC terminates.
-
getStatisticsIteration()
- Gets an iteration over the VCC endpoint's statistics.
-
getUptime()
- Gets the VCC endpoint's uptime.
-
getVCI()
- Gets the VCC endpoint's VCI.
-
getVPI()
- Gets the VCC endpoint's VPI.
-
getXmitCells()
- Gets the number of cells transmitted by the endpoint.
-
toString()
- Gets a string describing the VCC endpoint.
-
update(long, long, long)
- Updates the VCCEndpoint's counters
node
private Node node
- The node where the VCC terminates.
vpi
private int vpi
- The VPI at the endpoint.
vci
private int vci
- The VCI at the endpoint.
currentStatistics
private VCCEndpointStatistics currentStatistics
- The current statistics for the VCC endpoint.
statsHistory
private StatisticsQueue statsHistory
- A list of updates to the endpoint's counters.
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.
VCCEndpoint
public VCCEndpoint(VCCEndpoint v)
- Constructs a VCC endpoint by copying another VCC endpoint.
- Parameters:
- v - the VCC endpoint to be copied.
VCCEndpoint
public VCCEndpoint()
- Constructs a VCC endpoint with default settings.
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.
getStatisticsIteration
public VIteration getStatisticsIteration()
- Gets an iteration over the VCC endpoint's statistics.
- Returns:
- an iteration over the VCC endpoint's statistics.
getNode
public Node getNode()
- Gets the node where the VCC terminates.
- Returns:
- the node where the VCC terminates.
getVPI
public int getVPI()
- Gets the VCC endpoint's VPI.
- Returns:
- the VPI at the endpoint.
getVCI
public int getVCI()
- Gets the VCC endpoint's VCI.
- Returns:
- the VCI at the endpoint.
getUptime
public long getUptime()
- Gets the VCC endpoint's uptime.
- Returns:
- the VCC uptime at the endpoint.
getXmitCells
public long getXmitCells()
- Gets the number of cells transmitted by the endpoint.
- Returns:
- the number of cells transmitted.
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.
toString
public String toString()
- Gets a string describing the VCC endpoint.
- Returns:
- a string describing the VCC endpoint.
- Overrides:
- toString in class Object