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

Variable Index

 o farPort
The remote port this port is connected to.
 o myNode
The local node this port is attached to.
 o name
The name of the port.

Constructor Index

 o ATMPort(String, ATMNode)
Constructs an ATM port.
 o ATMPort(String, ATMNode, ATMPort)
Constructs an ATM port.

Method Index

 o delete()
Delete this port (and its subcomponents).
 o getConnectedNode()
Gets the remote node that this port is connected to.
 o getConnectedPort()
Gets the remote port that this port is connected to.
 o getFullName()
Get the port's name, qualified by its attached node name.
 o getName()
Get the port's name
 o getNode()
Gets the local node the port is attached to.
 o setConnectedPort(ATMPort)
Sets the remote port that this port is connected to.
 o setName(String)
Set the port's name
 o toString()
Get a string describing the ATMPort object.

Variables

 o name
 private String name
The name of the port.

 o myNode
 private ATMNode myNode
The local node this port is attached to.

 o farPort
 private ATMPort farPort
The remote port this port is connected to.

Constructors

 o 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.
 o 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.

Methods

 o delete
 public void delete()
Delete this port (and its subcomponents).

 o getName
 public String getName()
Get the port's name

Returns:
A String with the name of the port.
 o 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.
 o setName
 public void setName(String name)
Set the port's name

Parameters:
name - The name of the port.
 o getNode
 public ATMNode getNode()
Gets the local node the port is attached to.

Returns:
The ATMNode the port is attached to.
 o getConnectedPort
 public ATMPort getConnectedPort()
Gets the remote port that this port is connected to.

Returns:
The ATMPort the port is connected to.
 o 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.
 o getConnectedNode
 public ATMNode getConnectedNode()
Gets the remote node that this port is connected to.

Returns:
The ATMNode the port is connected to.
 o 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