public class ServoMotor extends Observable
| Constructor and Description |
|---|
ServoMotor(Direction direction) |
| Modifier and Type | Method and Description |
|---|---|
Direction |
getCurrentDirection() |
int |
getNumberOfMovement() |
void |
turnLeft()
Turn the mower on the left and update the detectors.
|
void |
turnRight()
Turn the mower on the right and update the detectors.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic ServoMotor(Direction direction)
direction - the initial direction of the servomotor.public void turnLeft()
public void turnRight()
public Direction getCurrentDirection()
public int getNumberOfMovement()
Copyright © 2016. All Rights Reserved.