stella.roof
Class RoofReceiver.OpenThread
java.lang.Object
java.lang.Thread
stella.roof.RoofReceiver.OpenThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- RoofReceiver
protected class RoofReceiver.OpenThread
- extends Thread
To open both halfes synchroningly, create an open thread for each half.
The roofs have opened when both thread die.
|
Field Summary |
private int |
roofnr
The roof number to open. |
private boolean |
success
The outcome of the open operation. |
|
Method Summary |
protected boolean |
isSuccess()
Returns the success of the opening of the specified roof half. |
void |
run()
Running the open thread does nothing else then calling the
enclosing class's RoofReceiver.doOpen(int) method. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, 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 |
roofnr
private int roofnr
- The roof number to open.
success
private boolean success
- The outcome of the open operation.
RoofReceiver.OpenThread
protected RoofReceiver.OpenThread(int index)
- Constructs a new open thread. It is not started automatically.
run
public void run()
- Running the open thread does nothing else then calling the
enclosing class's
RoofReceiver.doOpen(int) method.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
isSuccess
protected boolean isSuccess()
- Returns the success of the opening of the specified roof half.