|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
anecho.JamochaMUD.plugins.ticker.Tick
public class Tick
This class maintains all the tick information for a specific MU*. A tick class is assigned to each MU* to keep track of warnings, ticksizes, etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Tick()
|
|
| Method Summary | |
|---|---|
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()
|
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tick()
| Method Detail |
|---|
public 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 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 | ||||||||