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


Inner Class Summary
static interface DriveTrainSimpleAlgorithm.Robot
           
 
Field Summary
protected  PropertyChangeSupport changes
           
protected  Motor left
           
protected  Motor right
           
protected  int state
           
 
Fields inherited from interface de.jaetzold.art.examples.DriveTrain
BACKWARD, FORWARD, LEFT_SPIN, RIGHT_SPIN, STOP
 
Constructor Summary
DriveTrainSimpleAlgorithm()
           
DriveTrainSimpleAlgorithm(DriveTrainSimpleAlgorithm.Robot robot)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 void backward()
           
 void forward()
           
 int getState()
           
 void leftSpin()
           
static void main(String[] argv)
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void resume()
           
 void rightSpin()
           
protected  void setState(int state)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

left

protected Motor left

right

protected Motor right

state

protected int state

changes

protected PropertyChangeSupport changes
Constructor Detail

DriveTrainSimpleAlgorithm

public DriveTrainSimpleAlgorithm(DriveTrainSimpleAlgorithm.Robot robot)

DriveTrainSimpleAlgorithm

public DriveTrainSimpleAlgorithm()
                          throws Exception
Method Detail

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