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
-
controlSwitch
- The switch (if any) for which this end system is a control processor.
-
intfs
-
List of network interfaces.
-
ATMEndSystem(CollectorNetwork, NodeAddress)
- Class constructor.
-
ATMEndSystem(CollectorNetwork, NodeAddress, String)
- Class constructor.
-
addInterface(Interface)
- Adds an interface to the end system.
-
delete()
- Deletes this node from its network.
-
deleteInterface(Interface)
- Deletes an interface from the end system.
-
deleteInterface(String)
- Deletes an interface with the specified name from the end system.
-
dumpState(FIFO)
- Dumps the current state of this endsystem.
-
dumpStateComponent(FIFO)
- Dumps the current state of this endsystem's components.
-
dumpStateUncond(FIFO)
- Unconditionally dumps the current state of this endsystem.
-
endCycle(NodeEnd)
- Ends a collector update cycle.
-
getInterface(String)
- Gets an interface on the end system.
-
getInterfaceEnumeration()
- Gets an enumeration over the interface table.
-
getSwitchControl()
- Gets the switch for which this end system is the control processor.
-
getType()
- Get the node's type.
-
inCycle(long)
- Updates/verifies update cycle state and data.
-
isSwitchControl()
- Determines whether the end system is a control processor
for an ATM switch.
-
merge(ATMNode)
- Merges this node with another specified node.
-
setSwitchControl(ATMSwitch)
- Sets this end system as the control processor for an ATM switch.
-
startCycle(NodeBegin)
- Starts a collector update cycle.
-
updateDescription(NodeDescription)
- Updates the node's type and description.
-
updateInterface(String, int, String, String, String)
- Updates an end system's interface list.
-
updatePeer(PeerAddress)
- Updates peer node information.
-
updatePort(NodePort)
- Updates the node's port list.
-
updateVCCSegMap(VCCSegMap)
- Updates switch VCC segment map.
intfs
private VectorIter intfs
- List of network interfaces.
controlSwitch
private ATMSwitch controlSwitch
- The switch (if any) for which this end system is a control processor.
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
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
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
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
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
getSwitchControl
public ATMSwitch getSwitchControl()
- Gets the switch for which this end system is the control processor.
- Returns:
- the switch for this end system
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
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
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
addInterface
public void addInterface(Interface intf)
- Adds an interface to the end system.
- Parameters:
- intf - the interface to add
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
deleteInterface
public void deleteInterface(Interface intf)
- Deletes an interface from the end system.
- Parameters:
- intf - the interface to be deleted
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
getInterfaceEnumeration
public Enumeration getInterfaceEnumeration()
- Gets an enumeration over the interface table.
- Returns:
- an enumeration over the node's interfaces
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 endsystem.
- Parameters:
- f - where to queue the
ModelUpdate
objects representing the model's current state
- Overrides:
- dumpState in class CollectorNode
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
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
getType
public int getType()
- Get the node's type.
- Returns:
- the node's type
- Overrides:
- getType in class ATMNode