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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
robot
protected LiSeSimpleAlgorithm.Robot robot
servo
protected Servo servo
state
protected int state
changes
protected PropertyChangeSupport changes
LiSeSimpleAlgorithm
public LiSeSimpleAlgorithm(LiSeSimpleAlgorithm.Robot robot)
LiSeSimpleAlgorithm
public LiSeSimpleAlgorithm()
throws Exception
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