public class Output extends AbstractPort implements OutputInterface
| Modifier | Constructor and Description |
|---|---|
protected |
Output(ControlLabInterface controllab,
OutputPortEnum port)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
OutputPortEnum |
getPort() |
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.
|
getControlLab, setControlLabprotected Output(ControlLabInterface controllab, OutputPortEnum port)
controllab - control labport - output portpublic void forwardAndRun()
forwardAndRun in interface OutputInterfacepublic void backwardAndRun()
backwardAndRun in interface OutputInterfacepublic void reverseDirection()
reverseDirection in interface OutputInterfacepublic void run()
run in interface OutputInterfacepublic void stop()
stop in interface OutputInterfacepublic void backward()
backward in interface OutputInterfacepublic void forward()
forward in interface OutputInterfacepublic void setPower(int power)
setPower in interface OutputInterfacepower - a power.public 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 startCycle()
startCycle in interface OutputInterfaceOutputInterface.run(),
OutputInterface.forwardAndRun(),
OutputInterface.backwardAndRun()public final OutputPortEnum getPort()
Copyright © 2018. All rights reserved.