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
-
control
- End system that is the control processor for this switch.
-
prefix
- Switch node name prefix.
-
ATMSwitch(CollectorNetwork, NodeAddress)
- Class constructor.
-
ATMSwitch(CollectorNetwork, NodeAddress, String)
- Class constructor.
-
ATMSwitch(CollectorNetwork, NodeAddress, String, ATMEndSystem)
- Class constructor.
-
connectPorts(ATMSwitch, SwitchPort)
- Connects this node to a remote switch port.
-
delete()
- Deletes this node from its network.
-
disconnectPorts(ATMPort)
- Disconnects a port on this node from its remote peer port.
-
dumpState(FIFO)
- Dumps the current state of this switch.
-
dumpStateComponent(FIFO)
- Dumps the current state of this switch's components.
-
endCycle(NodeEnd)
- Ends a collector update cycle.
-
getControl()
- Gets the control processor for the switch.
-
getType()
- Gets the node's type.
-
inCycle(long)
- Updates/verifies update cycle state and data.
-
merge(ATMNode)
- Merges this node with another specified node.
-
startCycle(NodeBegin)
- Starts a collector update cycle.
-
updatePeer(PeerAddress)
- Updates peer node information.
-
updatePort(NodePort)
- Updates the node's port list.
-
updateVCCSegMap(VCCSegMap)
- Updates switch VCC segment map.
prefix
private static final String prefix
- Switch node name prefix.
control
private ATMEndSystem control
- End system that is the control processor for this switch.
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
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
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
startCycle
public void startCycle(NodeBegin nb)
- Starts a collector update cycle.
- Parameters:
- nb -
NodeBegin update record
- Overrides:
- startCycle in class CollectorNode
endCycle
public void endCycle(NodeEnd ne)
- Ends a collector update cycle.
- Parameters:
- ne -
NodeEnd update record
- Overrides:
- endCycle in class CollectorNode
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
updatePort
public void updatePort(NodePort np)
- Updates the node's port list.
- Parameters:
- np -
NodePort update record
- Overrides:
- updatePort in class CollectorNode
updatePeer
public void updatePeer(PeerAddress pa)
- Updates peer node information.
- Parameters:
- pa -
PeerAddress update record
- Overrides:
- updatePeer in class CollectorNode
updateVCCSegMap
public void updateVCCSegMap(VCCSegMap sm)
- Updates switch VCC segment map.
- Parameters:
- sm -
VCCSegMap update record
- Overrides:
- updateVCCSegMap in class CollectorNode
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
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
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
delete
public void delete()
- Deletes this node from its network.
- Overrides:
- delete in class CollectorNode
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
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
getType
public int getType()
- Gets the node's type.
- Returns:
- the node's type
- Overrides:
- getType in class ATMNode
getControl
public ATMEndSystem getControl()
- Gets the control processor for the switch.
- Returns:
- the end system that is the switch's control processor