|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Thread
LightViewerLoop
public class LightViewerLoop
In einer Endlosschleife werden die aktuellen Lichtsensorwerte (links, rechts und mitte) mit Konstanten verglichen. Das Ergebnis wird in Variablen festgehalten. Zusätzlich bietet die Klasse Methoden zum Auslesen dieser Werte.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static int |
BALL_LINKS_THRESHOLD
Schwelle für den linken Lichtsensor |
static int |
BALL_MITTE_THRESHOLD
Schwelle für den mittleren Lichtsensor |
static int |
BALL_RECHTS_THRESHOLD
Schwelle für den rechten Lichtsensor |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
LightViewerLoop()
|
|
| Method Summary | |
|---|---|
static boolean |
ballDa()
|
static boolean |
ballLinks()
|
static boolean |
ballMitte()
|
static boolean |
ballRechts()
|
static boolean |
ballWeg()
|
void |
run()
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BALL_LINKS_THRESHOLD
public static final int BALL_MITTE_THRESHOLD
public static final int BALL_RECHTS_THRESHOLD
| Constructor Detail |
|---|
public LightViewerLoop()
| Method Detail |
|---|
public static boolean ballDa()
public static boolean ballLinks()
public static boolean ballMitte()
public static boolean ballRechts()
public static boolean ballWeg()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||