All Packages Class Hierarchy This Package Previous Next Index
Class VisiModel.ATMPort
java.lang.Object
|
+----VisiModel.ATMPort
- public class ATMPort
- extends Object
Class definition for an ATM port in an IP/ATM network. This is
the superclass for use by either a switch port or and end system
port.
- Version:
- $Revision: 1.7 $, $Date: 2000/10/12 14:09:10 $
- Author:
- John Cavanaugh, Mike Spengler
-
farPort
- The remote port this port is connected to.
-
myNode
- The local node this port is attached to.
-
name
- The name of the port.
-
ATMPort(String, ATMNode)
- Constructs an ATM port.
-
ATMPort(String, ATMNode, ATMPort)
- Constructs an ATM port.
-
delete()
- Delete this port (and its subcomponents).
-
getConnectedNode()
- Gets the remote node that this port is connected to.
-
getConnectedPort()
- Gets the remote port that this port is connected to.
-
getFullName()
- Get the port's name, qualified by its attached node name.
-
getName()
- Get the port's name
-
getNode()
- Gets the local node the port is attached to.
-
setConnectedPort(ATMPort)
- Sets the remote port that this port is connected to.
-
setName(String)
- Set the port's name
-
toString()
- Get a string describing the ATMPort object.
name
private String name
- The name of the port.
myNode
private ATMNode myNode
- The local node this port is attached to.
farPort
private ATMPort farPort
- The remote port this port is connected to.
ATMPort
public ATMPort(String name,
ATMNode node)
- Constructs an ATM port.
- Parameters:
- name - The name of the port.
- node - The local node the port is attached to.
ATMPort
public ATMPort(String name,
ATMNode node,
ATMPort port)
- Constructs an ATM port.
- Parameters:
- name - The name of the port.
- node - The local node the port is attached to.
- port - The remote port this port is connected to.
delete
public void delete()
- Delete this port (and its subcomponents).
getName
public String getName()
- Get the port's name
- Returns:
- A String with the name of the port.
getFullName
public String getFullName()
- Get the port's name, qualified by its attached node name.
- Returns:
- A String with the name of the port and its node.
setName
public void setName(String name)
- Set the port's name
- Parameters:
- name - The name of the port.
getNode
public ATMNode getNode()
- Gets the local node the port is attached to.
- Returns:
- The ATMNode the port is attached to.
getConnectedPort
public ATMPort getConnectedPort()
- Gets the remote port that this port is connected to.
- Returns:
- The ATMPort the port is connected to.
setConnectedPort
public void setConnectedPort(ATMPort port)
- Sets the remote port that this port is connected to.
- Parameters:
- port - The ATMPort the port is connected to.
getConnectedNode
public ATMNode getConnectedNode()
- Gets the remote node that this port is connected to.
- Returns:
- The ATMNode the port is connected to.
toString
public String toString()
- Get a string describing the ATMPort object.
- Returns:
- A string describing the ATMPort object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index