de.jaetzold.art.examples
Class LiSeSimpleAlgorithm

java.lang.Object
  |
  +--de.jaetzold.art.examples.LiSeSimpleAlgorithm
All Implemented Interfaces:
LiSe

public class LiSeSimpleAlgorithm
extends Object
implements LiSe


Inner Class Summary
static interface LiSeSimpleAlgorithm.Robot
           
 
Field Summary
protected  PropertyChangeSupport changes
           
protected  LiSeSimpleAlgorithm.Robot robot
           
protected  Servo servo
           
protected  int state
           
 
Fields inherited from interface de.jaetzold.art.examples.LiSe
SEARCH, SEE_CENTER, SEE_LEFT, SEE_RIGHT, STOP
 
Constructor Summary
LiSeSimpleAlgorithm()
           
LiSeSimpleAlgorithm(LiSeSimpleAlgorithm.Robot robot)
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 AngleSensor getAngleSensor()
           
 int getState()
           
 boolean isSeeing()
           
static void main(String[] argv)
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void search()
           
 void seeCenter()
           
 void seeLeft()
           
 void seeRight()
           
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

robot

protected LiSeSimpleAlgorithm.Robot robot

servo

protected Servo servo

state

protected int state

changes

protected PropertyChangeSupport changes
Constructor Detail

LiSeSimpleAlgorithm

public LiSeSimpleAlgorithm(LiSeSimpleAlgorithm.Robot robot)

LiSeSimpleAlgorithm

public LiSeSimpleAlgorithm()
                    throws Exception
Method Detail

seeLeft

public void seeLeft()
Specified by:
seeLeft in interface LiSe

seeRight

public void seeRight()
Specified by:
seeRight in interface LiSe

search

public void search()
Specified by:
search in interface LiSe

seeCenter

public void seeCenter()
Specified by:
seeCenter in interface LiSe

stop

public void stop()
Specified by:
stop in interface LiSe

isSeeing

public boolean isSeeing()
Specified by:
isSeeing in interface LiSe

getAngleSensor

public AngleSensor getAngleSensor()
Specified by:
getAngleSensor in interface LiSe

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 LiSe

main

public static void main(String[] argv)
                 throws Exception