public interface IThreadVehicle
extends java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
void |
join()
Standard method to wait a thread termination.Added here to be sure
that any implementation of this interface will have this method.
|
void |
run()
Every TIME_SLICE fractions of second it do a cycle scanning in front
of itself to check if there are some obstacles.Then it move according
to it's speed and road under it.
|
void |
start()
This is a thread class, so it need to be run to work.
|
void |
terminate()
This method will stop the thread.
|
void run()
run
in interface java.lang.Runnable
void start()
void terminate()
void join() throws java.lang.InterruptedException
java.lang.InterruptedException
- following Thread declaration