Class EtherSwitch
java.lang.Object
|
+----VisiModel.ATMNode
|
+----Node
|
+----EndSystem
|
+----EtherSwitch
- public class EtherSwitch
- extends EndSystem
Class definition for a displayable representation of an Ethernet
switch in an IP/ATM network.
- Version:
- $Revision: 1.3 $, $Date: 2000/10/12 14:07:50 $
- Author:
- John Cavanaugh
-
ETHER_SWITCH_ICON_SIZE
- The display size of the icon representing the Ethernet switch.
-
EtherSwitch(String, Network, String, long)
- Constructs an Ethernet switch.
-
draw(Graphics, ViewSettings)
- Draws the Ethernet switch in the display window.
-
isSwitchControl()
- Determine whether the end system is a control processor
for an ATM switch; always returns false.
-
setScreenLocation(Point)
- Sets the Ethernet switch's display location; overrides
setScreenLocation() in Node.
-
toString()
- Gets a string describing the Ethernet switch.
ETHER_SWITCH_ICON_SIZE
public static final int ETHER_SWITCH_ICON_SIZE
- The display size of the icon representing the Ethernet switch.
EtherSwitch
public EtherSwitch(String name,
Network net,
String description,
long flags)
- Constructs an Ethernet switch.
- Parameters:
- name - a name for the Ethernet switch.
- net - the network the Ethernet switch is part of.
- description - a description of the Ethernet switch.
- flags - attribute flags for the Ethernet switch.
isSwitchControl
public boolean isSwitchControl()
- Determine whether the end system is a control processor
for an ATM switch; always returns false. Overrides
isControl() in EndSystem.
- Returns:
- always returns false.
- Overrides:
- isSwitchControl in class EndSystem
draw
public void draw(Graphics g,
ViewSettings view)
- Draws the Ethernet switch in the display window.
- Parameters:
- g - the graphics context for the display window.
- view - the view settings.
- Overrides:
- draw in class Node
setScreenLocation
public void setScreenLocation(Point loc)
- Sets the Ethernet switch's display location; overrides
setScreenLocation() in Node.
- Parameters:
- loc - the Ethernet switch's location in the
display window.
- Overrides:
- setScreenLocation in class Node
toString
public String toString()
- Gets a string describing the Ethernet switch.
- Returns:
- a string describing the Ethernet switch object.
- Overrides:
- toString in class EndSystem