Next: 7.2 Main.java
Up: 7 Subsumption1サンプル
Previous: 7 Subsumption1サンプル
public class Main
public static void main (String[] arg)
class Subsumption
implements ButtonListener
public Subsumption()
int getPriority(Task t)
public synchronized void execute(Task requestor)
public synchronized void setMotor(Task requestor,
Motor motor, int power, boolean forward)
public synchronized void release(Task releaser)
public void buttonPressed(Button b)
public void buttonReleased(Button b)
interface Action
public int act();
abstract class Task
extends Thread
implements SensorConstants
public void reset()
public void run()
public void release()
public void execute()
public boolean running()
public void setMotor(Motor motor,
int power, boolean forward)
class LeftBumber extends Task
implements SensorListener
public LeftBumber()
public void stateChanged(Sensor bumber,
int oldValue, int newValue)
class RightBumber extends Task
implements SensorListener
public RightBumber()
public void stateChanged(Sensor bumber,
int oldValue, int newValue)
class Wander extends Task
public Wander()
generated through LaTeX2HTML. M.Inaba 平成18年5月6日