Class ATMEndSystem

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

public class ATMEndSystem
extends CollectorNode
Collector-specific representation of an end system network node.

Version:
$Revision: 1.14 $, $Date: 2000/10/31 20:32:01 $
Author:
Mike Spengler, Joseph Thomas

Variable Index

 o controlSwitch
The switch (if any) for which this end system is a control processor.
 o intfs
List of network interfaces.

Constructor Index

 o ATMEndSystem(CollectorNetwork, NodeAddress)
Class constructor.
 o ATMEndSystem(CollectorNetwork, NodeAddress, String)
Class constructor.

Method Index

 o addInterface(Interface)
Adds an interface to the end system.
 o delete()
Deletes this node from its network.
 o deleteInterface(Interface)
Deletes an interface from the end system.
 o deleteInterface(String)
Deletes an interface with the specified name from the end system.
 o dumpState(FIFO)
Dumps the current state of this endsystem.
 o dumpStateComponent(FIFO)
Dumps the current state of this endsystem's components.
 o dumpStateUncond(FIFO)
Unconditionally dumps the current state of this endsystem.
 o endCycle(NodeEnd)
Ends a collector update cycle.
 o getInterface(String)
Gets an interface on the end system.
 o getInterfaceEnumeration()
Gets an enumeration over the interface table.
 o getSwitchControl()
Gets the switch for which this end system is the control processor.
 o getType()
Get the node's type.
 o inCycle(long)
Updates/verifies update cycle state and data.
 o isSwitchControl()
Determines whether the end system is a control processor for an ATM switch.
 o merge(ATMNode)
Merges this node with another specified node.
 o setSwitchControl(ATMSwitch)
Sets this end system as the control processor for an ATM switch.
 o startCycle(NodeBegin)
Starts a collector update cycle.
 o updateDescription(NodeDescription)
Updates the node's type and description.
 o updateInterface(String, int, String, String, String)
Updates an end system's interface list.
 o updatePeer(PeerAddress)
Updates peer node information.
 o updatePort(NodePort)
Updates the node's port list.
 o updateVCCSegMap(VCCSegMap)
Updates switch VCC segment map.

Variables

 o intfs
 private VectorIter intfs
List of network interfaces.

 o controlSwitch
 private ATMSwitch controlSwitch
The switch (if any) for which this end system is a control processor.

Constructors

 o ATMEndSystem
 public ATMEndSystem(CollectorNetwork net,
                     NodeAddress addr,
                     String desc)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of this node
desc - the node's description
 o ATMEndSystem
 public ATMEndSystem(CollectorNetwork net,
                     NodeAddress addr)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of this node

Methods

 o startCycle
 public void startCycle(NodeBegin nb)
Starts a collector update cycle.

Parameters:
nb - NodeBegin update record
Overrides:
startCycle in class CollectorNode
 o endCycle
 public void endCycle(NodeEnd ne)
Ends a collector update cycle.

Parameters:
ne - NodeEnd update record
Overrides:
endCycle in class CollectorNode
 o inCycle
 public void inCycle(long time)
Updates/verifies update cycle state and data.

Parameters:
time - the time the update was created
Overrides:
inCycle in class CollectorNode
 o updateDescription
 public void updateDescription(NodeDescription nd)
Updates the node's type and description. If we receive a type of switch (and we aren't a switch control processor), that is because we've only heard about the control processor end system (this node) so far.

Parameters:
nd - NodeDescription update record
Overrides:
updateDescription in class CollectorNode
 o updatePort
 public void updatePort(NodePort np)
Updates the node's port list.

Parameters:
np - NodePort update record
Overrides:
updatePort in class CollectorNode
 o updatePeer
 public void updatePeer(PeerAddress pa)
Updates peer node information.

Parameters:
pa - PeerAddress update record
Overrides:
updatePeer in class CollectorNode
 o updateVCCSegMap
 public void updateVCCSegMap(VCCSegMap sm)
Updates switch VCC segment map.

Parameters:
sm - VCCSegMap update record
Overrides:
updateVCCSegMap in class CollectorNode
 o getSwitchControl
 public ATMSwitch getSwitchControl()
Gets the switch for which this end system is the control processor.

Returns:
the switch for this end system
 o setSwitchControl
 public void setSwitchControl(ATMSwitch sw)
Sets this end system as the control processor for an ATM switch.

Parameters:
sw - the switch for which this end system is the control processor
 o isSwitchControl
 public boolean isSwitchControl()
Determines whether the end system is a control processor for an ATM switch.

Returns:
True if the end system is a control processor for an ATM switch
 o updateInterface
 public void updateInterface(String name,
                             int type,
                             String addr,
                             String netmask,
                             String phyAddr)
Updates an end system's interface list.

Parameters:
name - the name of the interface
type - the physical interface type
addr - the interface's address
 o addInterface
 public void addInterface(Interface intf)
Adds an interface to the end system.

Parameters:
intf - the interface to add
 o deleteInterface
 public void deleteInterface(String name)
Deletes an interface with the specified name from the end system.

Parameters:
name - the name of the interface to be deleted
 o deleteInterface
 public void deleteInterface(Interface intf)
Deletes an interface from the end system.

Parameters:
intf - the interface to be deleted
 o getInterface
 public Interface getInterface(String name)
Gets 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 not exist
 o getInterfaceEnumeration
 public Enumeration getInterfaceEnumeration()
Gets an enumeration over the interface table.

Returns:
an enumeration over the node's interfaces
 o merge
 public void merge(ATMNode node)
Merges this node with another specified node.

Parameters:
node - the node to be merged with this one
Overrides:
merge in class CollectorNode
 o delete
 public void delete()
Deletes this node from its network.

Overrides:
delete in class CollectorNode
 o dumpState
 public void dumpState(FIFO f)
Dumps the current state of this endsystem.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
Overrides:
dumpState in class CollectorNode
 o dumpStateUncond
 public void dumpStateUncond(FIFO f)
Unconditionally dumps the current state of this endsystem.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
 o dumpStateComponent
 public void dumpStateComponent(FIFO f)
Dumps the current state of this endsystem's components.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
Overrides:
dumpStateComponent in class CollectorNode
 o getType
 public int getType()
Get the node's type.

Returns:
the node's type
Overrides:
getType in class ATMNode