|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.planet_ink.coffee_mud.core.threads.Tick
public class Tick
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
boolean |
awake
|
TockClient |
lastClient
|
long |
lastStart
|
long |
lastStop
|
long |
milliTotal
|
ThreadEngine |
myEngine
|
protected int |
numTickers
|
protected boolean |
shutdown
|
boolean |
solitaryTicker
|
long |
TICK_TIME
|
protected java.util.Vector |
tickers
|
long |
tickTotal
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.TickableGroup |
|---|
MAX_TICK_CLIENTS |
| Constructor Summary | |
|---|---|
Tick(long sleep)
|
|
Tick(java.lang.String a_name,
long sleep)
|
|
Tick(ThreadEngine theEngine,
long sleep)
|
|
| Method Summary | |
|---|---|
void |
addTicker(TockClient C)
|
boolean |
contains(Tickable T,
int tickID)
|
Tick |
copyOf()
|
void |
delTicker(TockClient C)
|
TockClient |
fetchTicker(int i)
|
int |
getCounter()
|
protected int |
getIndex(Tickable T)
|
java.util.Vector |
getLocalItems(int itemTypes,
Room R)
|
java.util.Iterator |
getTickSet(Tickable T,
int tickID)
|
Tickable |
lastTicked()
Returns the current or last Tickable object which this thread made a tick(Tickable,int) method call to. |
int |
numTickers()
|
void |
run()
|
void |
shutdown()
|
java.util.Iterator |
tickers()
|
static boolean |
tickTicker(TockClient C,
boolean allSuspended)
|
| 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 |
| Field Detail |
|---|
public long lastStart
public long lastStop
public long milliTotal
public long tickTotal
public ThreadEngine myEngine
public boolean solitaryTicker
public long TICK_TIME
protected java.util.Vector tickers
protected int numTickers
protected boolean shutdown
public boolean awake
public TockClient lastClient
| Constructor Detail |
|---|
public Tick(ThreadEngine theEngine,
long sleep)
public Tick(long sleep)
public Tick(java.lang.String a_name,
long sleep)
| Method Detail |
|---|
public Tick copyOf()
protected int getIndex(Tickable T)
public java.util.Iterator tickers()
public int numTickers()
public TockClient fetchTicker(int i)
public java.util.Iterator getTickSet(Tickable T,
int tickID)
public java.util.Vector getLocalItems(int itemTypes,
Room R)
public boolean contains(Tickable T,
int tickID)
public int getCounter()
public void delTicker(TockClient C)
public void addTicker(TockClient C)
public Tickable lastTicked()
TickableGroup
lastTicked in interface TickableGroupTickable,
Tickable.tick(Tickable, int)public void shutdown()
public static boolean tickTicker(TockClient C,
boolean allSuspended)
public 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 | ||||||||