lejos.nxt
Class NXTRegulatedMotor.Controller

java.lang.Object
  extended by java.lang.Thread
      extended by lejos.nxt.NXTRegulatedMotor.Controller
All Implemented Interfaces:
Runnable
Enclosing class:
NXTRegulatedMotor

protected static class NXTRegulatedMotor.Controller
extends Thread

This class provides a single thread that drives all of the motor regulation process. Only active motors will be regulated. To try and keep motors as closely synchronized as possible tach counts for all motors are gathered as close as possible to the same time. Similarly new power levels for each motor are also set at the same time.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected NXTRegulatedMotor.Controller()
           
 
Method Summary
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 
Methods inherited from class java.lang.Thread
currentThread, getDefaultUncaughtExceptionHandler, getName, getPriority, getUncaughtExceptionHandler, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NXTRegulatedMotor.Controller

protected NXTRegulatedMotor.Controller()
Method Detail

run

public void run()
Description copied from interface: Runnable
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

Specified by:
run in interface Runnable
Overrides:
run in class Thread