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
-
ATMARPSERVER
-
-
description
- Description of the node.
-
END_SYSTEM
-
-
ETHER_SWITCH
-
-
flags
- Flags that indicate attributes of the node (e.g.
-
LANE_BUS
-
-
LANE_LECS
-
-
LANE_LES
-
-
name
- Network-unique name of this node.
-
net
- Network the node is part of.
-
NONE
-
-
NULL_FLAGS
-
-
ports
- List of ATM ports associated with the node.
-
ROUTER
-
-
SWITCH
-
-
UNKNOWN
-
-
ATMNode(String, ATMNetwork)
- Constructs an ATM node.
-
ATMNode(String, ATMNetwork, String, long)
- Constructs an ATM node.
-
addPort(ATMPort)
- Adds an ATM port to the node.
-
addPort(String)
- Adds an ATM port to the node.
-
countPorts()
- Gets the number of ports on the node.
-
delete()
- Deletes the node (and its subcomponents) from its network.
-
deletePort(ATMPort)
- Deletes an ATM port from the node.
-
deletePort(String)
- Deletes an ATM port from the node.
-
getDescription()
- Gets the node's description.
-
getFlags()
- Gets the node's flags.
-
getFlagString()
- Converts the node's flags to a string.
-
getName()
- Gets the name of the node.
-
getNet()
- Gets the network the node is part of.
-
getPort(String)
- Finds a port in the port table.
-
getPortEnumeration()
- Gets an enumeration over the port table.
-
getPortIteration()
- Gets an iteration over the port table.
-
getType()
- Gets the node's type.
-
merge(ATMNode)
- Merges the node with another.
-
setDescription(String)
- Sets the node's description.
-
setFlags(long)
- Sets the node's flags.
-
toString()
- Gets a string describing the ATMNode object.
END_SYSTEM
public static final int END_SYSTEM
SWITCH
public static final int SWITCH
UNKNOWN
public static final int UNKNOWN
NONE
public static final int NONE
ROUTER
public static final int ROUTER
ETHER_SWITCH
public static final int ETHER_SWITCH
name
private String name
- Network-unique name of this node.
net
private ATMNetwork net
- Network the node is part of.
ports
private VectorIter ports
- List of ATM ports associated with the node.
description
private String description
- Description of the node.
flags
private long flags
- Flags that indicate attributes of the node (e.g. the node is
an ATMARP server or a LANE server).
NULL_FLAGS
public static final long NULL_FLAGS
ATMARPSERVER
public static final long ATMARPSERVER
LANE_BUS
public static final long LANE_BUS
LANE_LECS
public static final long LANE_LECS
LANE_LES
public static final long LANE_LES
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.
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.
merge
public abstract void merge(ATMNode n)
- Merges the node with another.
- Parameters:
- n - The node to be merged with this one.
delete
public void delete()
- Deletes the node (and its subcomponents) from its network.
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.
getPortEnumeration
public Enumeration getPortEnumeration()
- Gets an enumeration over the port table.
- Returns:
- An enumeration over the port table.
getPortIteration
public VIteration getPortIteration()
- Gets an iteration over the port table.
- Returns:
- An iteration over the port table.
countPorts
public int countPorts()
- Gets the number of ports on the node.
- Returns:
- The number of ports attached to the node.
addPort
public void addPort(String name)
- Adds an ATM port to the node.
- Parameters:
- name - The name of the port to be added.
addPort
public void addPort(ATMPort port)
- Adds an ATM port to the node.
- Parameters:
- port - The port to be added.
deletePort
public void deletePort(ATMPort port)
- Deletes an ATM port from the node.
- Parameters:
- port - The port to be deleted.
deletePort
public void deletePort(String name)
- Deletes an ATM port from the node.
- Parameters:
- name - The name of the port to be deleted.
getName
public String getName()
- Gets the name of the node.
- Returns:
- The node name.
getNet
public ATMNetwork getNet()
- Gets the network the node is part of.
- Returns:
- The network.
getDescription
public String getDescription()
- Gets the node's description.
- Returns:
- A String with the node's description.
setDescription
public void setDescription(String d)
- Sets the node's description.
- Parameters:
- d - The description for the node.
getFlags
public long getFlags()
- Gets the node's flags.
- Returns:
- The node's flags.
setFlags
public void setFlags(long flags)
- Sets the node's flags.
- Parameters:
- flags - The new flag value.
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.
getType
public int getType()
- Gets the node's type.
- Returns:
- the node's type
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