com.planet_ink.coffee_mud.Libraries
Class Sessions

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by 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


Field Summary
 SLinkedList<Session> all
           
 
Constructor Summary
Sessions()
           
 
Method Summary
 boolean activate()
           
 void add(Session s)
           
 java.util.Iterator<Session> all()
           
 java.lang.Iterable<Session> allIterable()
           
 MOB findPlayerOnline(java.lang.String srchStr, boolean exactOnly)
           
 Session findPlayerSessionOnline(java.lang.String srchStr, boolean exactOnly)
           
 Session getAllSessionAt(int index)
           
protected  Session getAllSessionAt(java.util.Iterator<Session> i, int index)
           
protected  int getCount(java.util.Iterator<Session> i)
           
 int getCountAll()
           
 int getCountLocalOnline()
           
 ThreadEngine.SupportThread getSupportThread()
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 java.util.Iterator<Session> localOnline()
           
 java.lang.Iterable<Session> localOnlineIterable()
           
 void remove(Session s)
           
 void run()
           
 boolean shutdown()
           
 void stopSessionAtAllCosts(Session S)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
compareTo, copyOf, initializeClass, newInstance, propertiesLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary
propertiesLoaded
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

all

public SLinkedList<Session> all
Constructor Detail

Sessions

public Sessions()
Method Detail

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