de.jaetzold.art.examples
Class DriveTrainSimpleAlgorithm
java.lang.Object
|
+--de.jaetzold.art.examples.DriveTrainSimpleAlgorithm
- All Implemented Interfaces:
- DriveTrain
- Direct Known Subclasses:
- NormalizedDriveTrainSimpleAlgorithm
- public class DriveTrainSimpleAlgorithm
- extends Object
- implements DriveTrain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
left
protected Motor left
right
protected Motor right
state
protected int state
changes
protected PropertyChangeSupport changes
DriveTrainSimpleAlgorithm
public DriveTrainSimpleAlgorithm(DriveTrainSimpleAlgorithm.Robot robot)
DriveTrainSimpleAlgorithm
public DriveTrainSimpleAlgorithm()
throws Exception
stop
public void stop()
- Specified by:
stop
in interface DriveTrain
resume
public void resume()
- Specified by:
resume
in interface DriveTrain
forward
public void forward()
- Specified by:
forward
in interface DriveTrain
backward
public void backward()
- Specified by:
backward
in interface DriveTrain
leftSpin
public void leftSpin()
- Specified by:
leftSpin
in interface DriveTrain
rightSpin
public void rightSpin()
- Specified by:
rightSpin
in interface DriveTrain
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
setState
protected void setState(int state)
getState
public int getState()
- Specified by:
getState
in interface DriveTrain
main
public static void main(String[] argv)
throws Exception