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
-
intfs
- A table of interfaces on the end system.
-
EndSystem(String, Network, String, long)
- Constructs a displayable end system.
-
addInterface(Interface)
- Add an interface to the end system.
-
addInterface(String, int, String, String, String)
- Add an interface to the end system.
-
deleteInterface(Interface)
- Delete an interface from the end system.
-
deleteInterface(String)
- Delete the interface with the specified name from
the end system.
-
getInterface(String)
- Get an interface on the end system.
-
getInterfaceEnumeration()
- Get an enumeration over the interface table.
-
isSwitchControl()
- Determine whether the end system is a control processor
for an ATM switch.
-
merge(ATMNode)
- Merge the end system with another.
-
toString()
- Return a string describing the end system object.
intfs
private Vector intfs
- A table of interfaces on the end system.
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.
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.
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.
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.
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.
addInterface
public void addInterface(Interface intf)
- Add an interface to the end system.
- Parameters:
- intf - The interface to add.
deleteInterface
public void deleteInterface(Interface intf)
- Delete an interface from the end system.
- Parameters:
- intf - The interface to be deleted.
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.
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
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