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

Variable Index

 o ETHER_SWITCH_ICON_SIZE
The display size of the icon representing the Ethernet switch.

Constructor Index

 o EtherSwitch(String, Network, String, long)
Constructs an Ethernet switch.

Method Index

 o draw(Graphics, ViewSettings)
Draws the Ethernet switch in the display window.
 o isSwitchControl()
Determine whether the end system is a control processor for an ATM switch; always returns false.
 o setScreenLocation(Point)
Sets the Ethernet switch's display location; overrides setScreenLocation() in Node.
 o toString()
Gets a string describing the Ethernet switch.

Variables

 o ETHER_SWITCH_ICON_SIZE
 public static final int ETHER_SWITCH_ICON_SIZE
The display size of the icon representing the Ethernet switch.

Constructors

 o 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.

Methods

 o 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
 o 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
 o 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
 o toString
 public String toString()
Gets a string describing the Ethernet switch.

Returns:
a string describing the Ethernet switch object.
Overrides:
toString in class EndSystem