public interface MotorInterface extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addListener(MotorListener listener) |
void |
backward(float speed) |
void |
forward(float speed) |
float |
getValue() |
boolean |
isActive() |
void |
removeListener(MotorListener listener) |
void |
reverse() |
void |
setValue(float value) |
void |
stop() |
void |
whenBackward(Action action) |
void |
whenForward(Action action) |
void |
whenStop(Action action) |
void forward(float speed) throws RuntimeIOException
RuntimeIOException
void backward(float speed) throws RuntimeIOException
RuntimeIOException
void stop() throws RuntimeIOException
RuntimeIOException
void reverse() throws RuntimeIOException
RuntimeIOException
float getValue() throws RuntimeIOException
RuntimeIOException
void setValue(float value) throws RuntimeIOException
RuntimeIOException
boolean isActive() throws RuntimeIOException
RuntimeIOException
void whenForward(Action action)
void whenBackward(Action action)
void whenStop(Action action)
void addListener(MotorListener listener)
void removeListener(MotorListener listener)
Copyright © 2016 mattjlewis. All rights reserved.