public class OutputsGroup extends Object implements OutputInterface
| Constructor and Description |
|---|
OutputsGroup()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOutput(Output output)
Add an output to the group.
|
void |
backward()
Backward but not start the output.
|
void |
backwardAndRun()
Backward and start the output.
|
void |
forward()
Forward but not start the output.
|
void |
forwardAndRun()
Forward and start the output.
|
void |
reverseDirection()
Reverse direction of the output.
|
void |
run()
Power on the output.
|
void |
runFor(int time)
Power on the output for the given time.
|
void |
setCyclicMode(int on,
int off)
Set cyle mode.
|
void |
setPower(int power)
Set the power.
|
void |
startCycle()
Start cycle mode.
|
void |
stop()
Power off the output.
|
public void addOutput(Output output)
output - the output to add to the group.public void backwardAndRun()
backwardAndRun in interface OutputInterfacepublic void backward()
backward in interface OutputInterfacepublic void forward()
forward in interface OutputInterfacepublic void forwardAndRun()
forwardAndRun in interface OutputInterfacepublic void reverseDirection()
reverseDirection in interface OutputInterfacepublic void run()
run in interface OutputInterfacepublic void runFor(int time)
runFor in interface OutputInterfacetime - time to power on (in 1/10 seconds)public void setCyclicMode(int on,
int off)
setCyclicMode in interface OutputInterfaceon - : time to power on (in 1/10s).off - : time to power off (in 1/10s).OutputInterface.startCycle()public void setPower(int power)
setPower in interface OutputInterfacepower - a power.public void startCycle()
startCycle in interface OutputInterfaceOutputInterface.run(),
OutputInterface.forwardAndRun(),
OutputInterface.backwardAndRun()public void stop()
stop in interface OutputInterfaceCopyright © 2018. All rights reserved.