All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class VisiModel.ATMNode

java.lang.Object
   |
   +----VisiModel.ATMNode

public abstract class ATMNode
extends Object
Class definition for a node (switch or end system) in an IP/ATM network.

Version:
$Revision: 1.12 $, $Date: 2000/10/12 14:09:09 $
Author:
John Cavanaugh, Mike Spengler, Joseph Thomas

Variable Index

 o ATMARPSERVER
 o description
Description of the node.
 o END_SYSTEM
 o ETHER_SWITCH
 o flags
Flags that indicate attributes of the node (e.g.
 o LANE_BUS
 o LANE_LECS
 o LANE_LES
 o name
Network-unique name of this node.
 o net
Network the node is part of.
 o NONE
 o NULL_FLAGS
 o ports
List of ATM ports associated with the node.
 o ROUTER
 o SWITCH
 o UNKNOWN

Constructor Index

 o ATMNode(String, ATMNetwork)
Constructs an ATM node.
 o ATMNode(String, ATMNetwork, String, long)
Constructs an ATM node.

Method Index

 o addPort(ATMPort)
Adds an ATM port to the node.
 o addPort(String)
Adds an ATM port to the node.
 o countPorts()
Gets the number of ports on the node.
 o delete()
Deletes the node (and its subcomponents) from its network.
 o deletePort(ATMPort)
Deletes an ATM port from the node.
 o deletePort(String)
Deletes an ATM port from the node.
 o getDescription()
Gets the node's description.
 o getFlags()
Gets the node's flags.
 o getFlagString()
Converts the node's flags to a string.
 o getName()
Gets the name of the node.
 o getNet()
Gets the network the node is part of.
 o getPort(String)
Finds a port in the port table.
 o getPortEnumeration()
Gets an enumeration over the port table.
 o getPortIteration()
Gets an iteration over the port table.
 o getType()
Gets the node's type.
 o merge(ATMNode)
Merges the node with another.
 o setDescription(String)
Sets the node's description.
 o setFlags(long)
Sets the node's flags.
 o toString()
Gets a string describing the ATMNode object.

Variables

 o END_SYSTEM
 public static final int END_SYSTEM
 o SWITCH
 public static final int SWITCH
 o UNKNOWN
 public static final int UNKNOWN
 o NONE
 public static final int NONE
 o ROUTER
 public static final int ROUTER
 o ETHER_SWITCH
 public static final int ETHER_SWITCH
 o name
 private String name
Network-unique name of this node.

 o net
 private ATMNetwork net
Network the node is part of.

 o ports
 private VectorIter ports
List of ATM ports associated with the node.

 o description
 private String description
Description of the node.

 o flags
 private long flags
Flags that indicate attributes of the node (e.g. the node is an ATMARP server or a LANE server).

 o NULL_FLAGS
 public static final long NULL_FLAGS
 o ATMARPSERVER
 public static final long ATMARPSERVER
 o LANE_BUS
 public static final long LANE_BUS
 o LANE_LECS
 public static final long LANE_LECS
 o LANE_LES
 public static final long LANE_LES

Constructors

 o ATMNode
 public ATMNode(String name,
                ATMNetwork net,
                String description,
                long flags)
Constructs an ATM node.

Parameters:
name - The name of the node.
net - The network the node is part of.
description - A description of the node.
flags - Attribute flags for the node.
 o ATMNode
 public ATMNode(String name,
                ATMNetwork net)
Constructs an ATM node.

Parameters:
name - The name of the node.
net - The network the node is part of.

Methods

 o merge
 public abstract void merge(ATMNode n)
Merges the node with another.

Parameters:
n - The node to be merged with this one.
 o delete
 public void delete()
Deletes the node (and its subcomponents) from its network.

 o getPort
 public ATMPort getPort(String name)
Finds a port in the port table.

Parameters:
name - The name of the port.
Returns:
The port object, or null if it was not found.
 o getPortEnumeration
 public Enumeration getPortEnumeration()
Gets an enumeration over the port table.

Returns:
An enumeration over the port table.
 o getPortIteration
 public VIteration getPortIteration()
Gets an iteration over the port table.

Returns:
An iteration over the port table.
 o countPorts
 public int countPorts()
Gets the number of ports on the node.

Returns:
The number of ports attached to the node.
 o addPort
 public void addPort(String name)
Adds an ATM port to the node.

Parameters:
name - The name of the port to be added.
 o addPort
 public void addPort(ATMPort port)
Adds an ATM port to the node.

Parameters:
port - The port to be added.
 o deletePort
 public void deletePort(ATMPort port)
Deletes an ATM port from the node.

Parameters:
port - The port to be deleted.
 o deletePort
 public void deletePort(String name)
Deletes an ATM port from the node.

Parameters:
name - The name of the port to be deleted.
 o getName
 public String getName()
Gets the name of the node.

Returns:
The node name.
 o getNet
 public ATMNetwork getNet()
Gets the network the node is part of.

Returns:
The network.
 o getDescription
 public String getDescription()
Gets the node's description.

Returns:
A String with the node's description.
 o setDescription
 public void setDescription(String d)
Sets the node's description.

Parameters:
d - The description for the node.
 o getFlags
 public long getFlags()
Gets the node's flags.

Returns:
The node's flags.
 o setFlags
 public void setFlags(long flags)
Sets the node's flags.

Parameters:
flags - The new flag value.
 o getFlagString
 public String getFlagString()
Converts the node's flags to a string.

Returns:
A string representation of the node's flags; a zero-length string if no flags are set.
 o getType
 public int getType()
Gets the node's type.

Returns:
the node's type
 o toString
 public String toString()
Gets a string describing the ATMNode object.

Returns:
A String describing the ATMNode object.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index