public class Wheel extends Observable
Constructor and Description |
---|
Wheel()
Basic constructor, initiate the total distance at 0.
|
Modifier and Type | Method and Description |
---|---|
int |
getDistance() |
WheelState |
getState() |
int |
goBackward()
Move the mower one step backward.
|
int |
goForward()
Move the mower one step forward.
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public int goForward()
public int goBackward()
public int getDistance()
public WheelState getState()
Copyright © 2016. All Rights Reserved.