Class ATMSwitch

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

public class ATMSwitch
extends CollectorNode
Collector-specific representation of an ATM switch network node.

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

Variable Index

 o control
End system that is the control processor for this switch.
 o prefix
Switch node name prefix.

Constructor Index

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

Method Index

 o connectPorts(ATMSwitch, SwitchPort)
Connects this node to a remote switch port.
 o delete()
Deletes this node from its network.
 o disconnectPorts(ATMPort)
Disconnects a port on this node from its remote peer port.
 o dumpState(FIFO)
Dumps the current state of this switch.
 o dumpStateComponent(FIFO)
Dumps the current state of this switch's components.
 o endCycle(NodeEnd)
Ends a collector update cycle.
 o getControl()
Gets the control processor for the switch.
 o getType()
Gets the node's type.
 o inCycle(long)
Updates/verifies update cycle state and data.
 o merge(ATMNode)
Merges this node with another specified node.
 o startCycle(NodeBegin)
Starts a collector update cycle.
 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 prefix
 private static final String prefix
Switch node name prefix.

 o control
 private ATMEndSystem control
End system that is the control processor for this switch.

Constructors

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

Parameters:
net - the network the node is part of
addr - the network address of switch control processor
desc - the node's description
cp - the switch control processor
 o ATMSwitch
 public ATMSwitch(CollectorNetwork net,
                  NodeAddress addr,
                  String desc)
Class constructor.

Parameters:
net - the network the node is part of
addr - the network address of switch control processor
desc - the node's description
 o ATMSwitch
 public ATMSwitch(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 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 connectPorts
 public void connectPorts(ATMSwitch sw,
                          SwitchPort swport)
Connects this node to a remote switch port.

Parameters:
sw - the switch to which this node is connected
swport - the switch port to which this node is connected
Overrides:
connectPorts in class CollectorNode
 o disconnectPorts
 public void disconnectPorts(ATMPort port)
Disconnects a port on this node from its remote peer port.

Parameters:
port - the local node port to disconnect
Overrides:
disconnectPorts in class CollectorNode
 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 switch.

Parameters:
f - where to queue the ModelUpdate objects representing the model's current state
Overrides:
dumpState in class CollectorNode
 o dumpStateComponent
 public void dumpStateComponent(FIFO f)
Dumps the current state of this switch'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()
Gets the node's type.

Returns:
the node's type
Overrides:
getType in class ATMNode
 o getControl
 public ATMEndSystem getControl()
Gets the control processor for the switch.

Returns:
the end system that is the switch's control processor