public class ThreadCar extends AbstrThreadVehicle
Modifier and Type | Method and Description |
---|---|
void |
run()
Every TIME_SLICE fractions of second this do a cycle scanning in
front of itself to check if there are some obstacles.
|
void |
start()
This is an extends-thread class, so this is needed to start the thread.
|
void |
terminate()
Stop the vehicle's thread.
|
getCenterPoint, getModelVehicle
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, stop, stop, suspend, toString, yield
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
join
public void start()
AbstrThreadVehicle
start
in interface IThreadVehicle
start
in class AbstrThreadVehicle
public void terminate()
terminate
in interface IThreadVehicle
terminate
in class AbstrThreadVehicle
public void run()
run
in interface IThreadVehicle
run
in interface java.lang.Runnable
run
in class java.lang.Thread