uci.gef.demo
Class EdgeData

java.lang.Object
  |
  +--uci.gef.NetPrimitive
        |
        +--uci.gef.NetEdge
              |
              +--uci.gef.demo.EdgeData

public class EdgeData
extends NetEdge
implements Serializable

A sample NetEdge subclass for use in the Example application. There are no real details here yet. If I was to expand this example more the Edge could have more attributes, e.g. bandwidth... and it could have its own subclasses of FigEdge to make it look a certain way.

See Also:
Serialized Form

Field Summary
protected  int _bitsPerSecond
          Speed of this data line
protected  String _cableType
          Type of cable, choosen from the constants above: SCSI, FireWire, etc.
static Vector _PossibleCableTypes
           
static String CABLE_ETHERNET
           
static String CABLE_FDDI
           
static String CABLE_FIREWIRE
           
static String CABLE_SCSI
           
static String pBITS_PER_SECOND
           
static String pCABLE_TYPE
           
 
Fields inherited from class uci.gef.NetEdge
_destPort, _ports, _sourcePort
 
Fields inherited from class uci.gef.NetPrimitive
_changeSup, _highlight
 
Constructor Summary
EdgeData()
           
 
Method Summary
 int getBitsPerSecond()
           
 String getCableType()
           
 FigEdge makePresentation(Layer lay)
           
 void setBitsPerSecond(int bps)
           
 void setCableType(String ct)
           
 
Methods inherited from class uci.gef.NetEdge
connect, dispose, getDestPort, getPorts, getSourcePort, otherEnd, presentationFor, setDestPort, setPorts, setSourcePort
 
Methods inherited from class uci.gef.NetPrimitive
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getHighlight, removePropertyChangeListener, setHighlight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pCABLE_TYPE

public static final String pCABLE_TYPE

pBITS_PER_SECOND

public static final String pBITS_PER_SECOND

CABLE_SCSI

public static final String CABLE_SCSI

CABLE_ETHERNET

public static final String CABLE_ETHERNET

CABLE_FIREWIRE

public static final String CABLE_FIREWIRE

CABLE_FDDI

public static final String CABLE_FDDI

_bitsPerSecond

protected int _bitsPerSecond
Speed of this data line

_cableType

protected String _cableType
Type of cable, choosen from the constants above: SCSI, FireWire, etc.

_PossibleCableTypes

public static Vector _PossibleCableTypes
Constructor Detail

EdgeData

public EdgeData()
Method Detail

getCableType

public String getCableType()

setCableType

public void setCableType(String ct)

getBitsPerSecond

public int getBitsPerSecond()

setBitsPerSecond

public void setBitsPerSecond(int bps)

makePresentation

public FigEdge makePresentation(Layer lay)
Overrides:
makePresentation in class NetEdge