com.planet_ink.coffee_mud.Libraries
Class Sessions
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.Sessions
- All Implemented Interfaces:
- CMObject, CMLibrary, SessionsList, java.lang.Cloneable, java.lang.Comparable<CMObject>, java.lang.Runnable
public class Sessions
- extends StdLibrary
- implements SessionsList
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
all
public SLinkedList<Session> all
Sessions
public Sessions()
ID
public java.lang.String ID()
- Description copied from interface:
CMObject
- The CoffeeMud Java Class ID shared by all instances of
this object. Unlike the Java Class name, this method
does not include package information. However, it must
return a String value unique to its class category in
the ClassLoader. Class categories include Libraries, Common,
Areas, Abilities, Behaviors, CharClasses, Commands, Exits
Locales, MOBS, Races, WebMacros, Basic Items, Armor,
Weapons, ClanItems, MiscTech. The name is typically identical
to the class name.
- Specified by:
ID in interface CMObject- Overrides:
ID in class StdLibrary
- Returns:
- the name of this class
getSupportThread
public ThreadEngine.SupportThread getSupportThread()
- Specified by:
getSupportThread in interface CMLibrary- Overrides:
getSupportThread in class StdLibrary
all
public java.util.Iterator<Session> all()
- Specified by:
all in interface SessionsList
allIterable
public java.lang.Iterable<Session> allIterable()
- Specified by:
allIterable in interface SessionsList
localOnline
public java.util.Iterator<Session> localOnline()
- Specified by:
localOnline in interface SessionsList
localOnlineIterable
public java.lang.Iterable<Session> localOnlineIterable()
- Specified by:
localOnlineIterable in interface SessionsList
getCountAll
public int getCountAll()
- Specified by:
getCountAll in interface SessionsList
getCountLocalOnline
public int getCountLocalOnline()
- Specified by:
getCountLocalOnline in interface SessionsList
getCount
protected int getCount(java.util.Iterator<Session> i)
getAllSessionAt
public Session getAllSessionAt(int index)
- Specified by:
getAllSessionAt in interface SessionsList
getAllSessionAt
protected Session getAllSessionAt(java.util.Iterator<Session> i,
int index)
add
public void add(Session s)
- Specified by:
add in interface SessionsList
remove
public void remove(Session s)
- Specified by:
remove in interface SessionsList
stopSessionAtAllCosts
public void stopSessionAtAllCosts(Session S)
- Specified by:
stopSessionAtAllCosts in interface SessionsList
activate
public boolean activate()
- Specified by:
activate in interface CMLibrary- Overrides:
activate in class StdLibrary
shutdown
public boolean shutdown()
- Specified by:
shutdown in interface CMLibrary- Overrides:
shutdown in class StdLibrary
findPlayerOnline
public MOB findPlayerOnline(java.lang.String srchStr,
boolean exactOnly)
- Specified by:
findPlayerOnline in interface SessionsList
findPlayerSessionOnline
public Session findPlayerSessionOnline(java.lang.String srchStr,
boolean exactOnly)
- Specified by:
findPlayerSessionOnline in interface SessionsList
run
public void run()
- Specified by:
run in interface java.lang.Runnable