Class PathOrigin
java.lang.Object
|
+----PathOrigin
- public class PathOrigin
- extends Object
Class definition for a virtual path that originates at a switch
port in an IP/ATM network.
- Version:
- $Revision: 1.5 $, $Date: 2000/10/12 14:09:52 $
- Author:
- John Cavanaugh, Mike Spengler
-
alive
- The last time this path was reported active.
-
port
- The switch port at which the path originates.
-
termNode
- The node at the far end of the path.
-
vpi
- The VPI for the path.
-
PathOrigin(SwitchPort, int, CollectorNode)
- Construct a PathOrigin object.
-
delete()
- Delete this path.
-
deleteTermNode()
- Delete this path due to the deletion of the node terminating this path.
-
getActive()
- Gets the last time this path was considered active.
-
getPort()
- Returns the port associated with this path
-
getTermNode()
- Get node at the far end of the path.
-
getVPI()
- Get the path's VPI.
-
refreshActive()
- Refreshes the path's active time.
-
toString()
- Get a string describing the PathOrigin object.
port
private SwitchPort port
- The switch port at which the path originates.
vpi
private int vpi
- The VPI for the path.
termNode
private CollectorNode termNode
- The node at the far end of the path.
alive
private long alive
- The last time this path was reported active.
PathOrigin
public PathOrigin(SwitchPort port,
int vpi,
CollectorNode termNode)
- Construct a PathOrigin object.
- Parameters:
- port - The port at which the path originates.
- vpi - The VPI for the path.
- termNode - The node at the far end of the path.
delete
public void delete()
- Delete this path.
deleteTermNode
public void deleteTermNode()
- Delete this path due to the deletion of the node terminating this path.
getVPI
public int getVPI()
- Get the path's VPI.
- Returns:
- The VPI for the path.
getTermNode
public CollectorNode getTermNode()
- Get node at the far end of the path.
- Returns:
- The node at the far end of the path.
getActive
public long getActive()
- Gets the last time this path was considered active.
- Returns:
- the last time this path was considered active
refreshActive
public void refreshActive()
- Refreshes the path's active time.
getPort
public SwitchPort getPort()
- Returns the port associated with this path
- Returns:
- associated port
toString
public String toString()
- Get a string describing the PathOrigin object.
- Returns:
- A string describing the PathOrigin object.
- Overrides:
- toString in class Object