|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaron.components.Signal
jaron.components.TwoWaySwitch
public class TwoWaySwitch
The TwoWaySwitch
class implements a switch with an input and
two output signals (channels).
Constructor Summary | |
---|---|
TwoWaySwitch()
Creates a TwoWaySwitch object. |
Method Summary | |
---|---|
Signal |
getInput()
Returns the input signal. |
Signal |
getOutput1()
Returns the first output signal Output1 . |
Signal |
getOutput2()
Returns the second output signal Output2 . |
void |
toggleSwitch()
Toggles the switch's output form Output1 to
Output2 and vice versa. |
Methods inherited from class jaron.components.Signal |
---|
addSignalListener, getBandwidth, getHigh, getLow, getValue, removeSignalListener, setBandwidth, setHigh, setLow, setValue, signalChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwoWaySwitch()
TwoWaySwitch
object. By default the switch's
output signal is Output1
.
Method Detail |
---|
public Signal getInput()
public Signal getOutput1()
Output1
.
public Signal getOutput2()
Output2
.
public void toggleSwitch()
Output1
to
Output2
and vice versa.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |