de.jaetzold.art.examples
Class AriadneSimpleAlgorithm

java.lang.Object
  |
  +--de.jaetzold.art.examples.AriadneSimpleAlgorithm
All Implemented Interfaces:
Ariadne

public class AriadneSimpleAlgorithm
extends Object
implements Ariadne


Inner Class Summary
static interface AriadneSimpleAlgorithm.Robot
           
 
Field Summary
protected  PropertyChangeSupport changes
           
protected  NormalizedDriveTrain driveTrain
           
protected  int leftDirection
           
protected  double orientationAngle
           
 
Fields inherited from interface de.jaetzold.art.examples.Ariadne
ORIENTED, ORIENTING
 
Constructor Summary
AriadneSimpleAlgorithm(AriadneSimpleAlgorithm.Robot robot)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 int getState()
           
 void orientByAngle(double angle)
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
protected  void setState(int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driveTrain

protected NormalizedDriveTrain driveTrain

leftDirection

protected int leftDirection

orientationAngle

protected double orientationAngle

changes

protected PropertyChangeSupport changes
Constructor Detail

AriadneSimpleAlgorithm

public AriadneSimpleAlgorithm(AriadneSimpleAlgorithm.Robot robot)
Method Detail

orientByAngle

public void orientByAngle(double angle)
Specified by:
orientByAngle in interface Ariadne

setState

protected void setState(int state)

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)

getState

public int getState()
Specified by:
getState in interface Ariadne