Class EndSystem

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

public class EndSystem
extends Node
Class definition for a displayable end system.

Version:
$Revision: 1.11 $, $Date: 2000/10/30 17:10:27 $
Author:
John Cavanaugh

Variable Index

 o intfs
A table of interfaces on the end system.

Constructor Index

 o EndSystem(String, Network, String, long)
Constructs a displayable end system.

Method Index

 o addInterface(Interface)
Add an interface to the end system.
 o addInterface(String, int, String, String, String)
Add an interface to the end system.
 o deleteInterface(Interface)
Delete an interface from the end system.
 o deleteInterface(String)
Delete the interface with the specified name from the end system.
 o getInterface(String)
Get an interface on the end system.
 o getInterfaceEnumeration()
Get an enumeration over the interface table.
 o isSwitchControl()
Determine whether the end system is a control processor for an ATM switch.
 o merge(ATMNode)
Merge the end system with another.
 o toString()
Return a string describing the end system object.

Variables

 o intfs
 private Vector intfs
A table of interfaces on the end system.

Constructors

 o EndSystem
 public EndSystem(String name,
                  Network net,
                  String description,
                  long flags)
Constructs a displayable end system.

Parameters:
name - a name for the end system.
net - the network the end system is part of.
description - a description of the end system.
flags - attribute flags for the end system.

Methods

 o isSwitchControl
 public boolean isSwitchControl()
Determine whether the end system is a control processor for an ATM switch.

Returns:
true if the end system is the control processor for some ATM switch; false otherwise.
 o getInterface
 public Interface getInterface(String name)
Get an interface on the end system.

Parameters:
name - The name of the interface.
Returns:
The interface with the given name, or null if it does exist in the interface table.
 o getInterfaceEnumeration
 public Enumeration getInterfaceEnumeration()
Get an enumeration over the interface table.

Returns:
An enumeration that will iterate over the list of the node's interfaces.
 o addInterface
 public void addInterface(String name,
                          int type,
                          String IPAddr,
                          String netMask,
                          String phyAddr)
Add an interface to the end system.

Parameters:
name - The name of the interface.
type - The physical interface type.
IPAddr - The interface's IP address.
netMask - The interface's subnet mask.
phyAddr - The interface's physical address.
 o addInterface
 public void addInterface(Interface intf)
Add an interface to the end system.

Parameters:
intf - The interface to add.
 o deleteInterface
 public void deleteInterface(Interface intf)
Delete an interface from the end system.

Parameters:
intf - The interface to be deleted.
 o deleteInterface
 public void deleteInterface(String name)
Delete the interface with the specified name from the end system.

Parameters:
name - The name of the interface to be deleted.
 o merge
 public void merge(ATMNode node)
Merge the end system with another.

Parameters:
node - the end system to merge with this one
Overrides:
merge in class Node
 o toString
 public String toString()
Return a string describing the end system object.

Returns:
a string describing the end system object.
Overrides:
toString in class Node