public class Tick
extends java.lang.Thread
| Constructor | Description |
|---|---|
Tick() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
endThread() |
This method should "safely" end the thread by changing our running
variable to false.
|
int |
getDeadTickSize() |
This method is for returning the tick size of a dead thread.
|
MuSocket |
getMU() |
|
int |
getTickSize() |
Returns the size (duration) of the tick
|
int |
getTimeRemaining() |
Returns the number of seconds remaining before the next tick
|
boolean |
isLive() |
Indicates whether this thread is live or not.
|
void |
run() |
This is our main method that handles the ticking
|
void |
setMU(MuSocket inMuck) |
Sets the MuSocket that this tick is associated with
|
void |
setSize(int size) |
Set the size (duration) of the tick in seconds
|
void |
setStart(long startTime) |
|
void |
setStartNow() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic void setMU(MuSocket inMuck)
inMuck - The MuSocket associated with this Tickpublic MuSocket getMU()
public void setStart(long startTime)
startTime - public void setStartNow()
public void setSize(int size)
size - Duration of the tick in seconds.public void endThread()
public int getTickSize()
public int getDeadTickSize()
public int getTimeRemaining()
public boolean isLive()
true - this thread is alive
false - this thread is no long alivepublic void run()
run in class java.lang.Thread