com.planet_ink.coffee_mud.core.threads
Class Tick
java.lang.Object
java.lang.Thread
com.planet_ink.coffee_mud.core.threads.Tick
- All Implemented Interfaces:
- TickableGroup, java.lang.Cloneable, java.lang.Runnable
public class Tick
- extends java.lang.Thread
- implements TickableGroup, java.lang.Cloneable
| Nested classes/interfaces inherited from class java.lang.Thread |
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| 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 |
TICK_TIME
public final long TICK_TIME
lastStart
public volatile long lastStart
lastStop
public volatile long lastStop
milliTotal
public volatile long milliTotal
tickTotal
public volatile long tickTotal
solitaryTicker
public volatile boolean solitaryTicker
awake
public volatile boolean awake
lastClient
public volatile TockClient lastClient
Tick
public Tick(long sleep)
Tick
public Tick(java.lang.String a_name,
long sleep)
Tick
public Tick(ThreadEngine theEngine,
long sleep)
copyOf
public Tick copyOf()
fetchTickerByIndex
public TockClient fetchTickerByIndex(int i)
tickers
public java.util.Iterator<TockClient> tickers()
numTickers
public int numTickers()
getTickSet
public java.util.Iterator<TockClient> getTickSet(Tickable T,
int tickID)
getLocalItems
public java.util.Iterator<TockClient> getLocalItems(int itemTypes,
Room R)
contains
public boolean contains(Tickable T,
int tickID)
getCounter
public int getCounter()
delTicker
public void delTicker(TockClient C)
addTicker
public void addTicker(TockClient C)
lastTicked
public Tickable lastTicked()
- Description copied from interface:
TickableGroup
- Returns the current or last Tickable object which this thread made a tick(Tickable,int) method
call to.
- Specified by:
lastTicked in interface TickableGroup
- Returns:
- the Tickable object last accessed
- See Also:
Tickable,
Tickable.tick(Tickable, int)
getStatus
public java.lang.String getStatus()
shutdown
public void shutdown()
tickTicker
public static boolean tickTicker(TockClient C,
boolean allSuspended)
run
public void run()
- Specified by:
run in interface java.lang.Runnable- Overrides:
run in class java.lang.Thread