uci.gef.demo
Class EdgePower
java.lang.Object
|
+--uci.gef.NetPrimitive
|
+--uci.gef.NetEdge
|
+--uci.gef.demo.EdgePower
- public class EdgePower
- extends NetEdge
- implements Serializable
A sample NetEdge subclass for use in the example application. This
represents a power cord that can go from the computer to the wall,
or from the printer to the wall.
- See Also:
- Serialized Form
|
Field Summary |
protected boolean |
_hasGroundProng
Some power cords have a third grounding prong, some don't. |
protected int |
_maxVoltage
Maximum Voltage that this line can handle. |
protected int |
_voltage
Voltage currently on line. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_voltage
protected int _voltage
- Voltage currently on line.
_maxVoltage
protected int _maxVoltage
- Maximum Voltage that this line can handle.
_hasGroundProng
protected boolean _hasGroundProng
- Some power cords have a third grounding prong, some don't.
EdgePower
public EdgePower()
setVoltage
public void setVoltage(int v)
getVoltage
public int getVoltage()
setMaxVoltage
public void setMaxVoltage(int v)
getMaxVoltage
public int getMaxVoltage()
setHasGroundProng
public void setHasGroundProng(boolean hgp)
getHasGroundProng
public boolean getHasGroundProng()
makePresentation
public FigEdge makePresentation(Layer lay)
- Overrides:
- makePresentation in class NetEdge