com.planet_ink.coffee_mud.Libraries
Class CMJournals

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.CMJournals
All Implemented Interfaces:
CMObject, CMLibrary, JournalsLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>, java.lang.Runnable

public class CMJournals
extends StdLibrary
implements JournalsLibrary


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary
JournalsLibrary.JournalEntry
 
Field Summary
 java.util.Vector commandJournalFlags
           
 java.util.Vector commandJournalMasks
           
 java.util.Vector commandJournalNames
           
 java.util.Vector emptyVector
           
 int numCommandJournalsLoaded
           
 int QUEUE_SIZE
           
 
Fields inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.JournalsLibrary
ALLFLAGS, JOURNAL_BOUNDARY
 
Constructor Summary
CMJournals()
           
 
Method Summary
 boolean activate()
           
 void commandJournalSweep()
           
 java.util.Hashtable getCommandJournalFlags(int i)
           
 java.lang.String getCommandJournalMask(int i)
           
 java.lang.String getCommandJournalName(int i)
           
 java.lang.String[] getCommandJournalNames()
           
 int getNumCommandJournals()
           
 ThreadEngine.SupportThread getSupportThread()
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 int loadCommandJournals(java.lang.String list)
           
 void run()
           
 boolean shutdown()
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
compareTo, copyOf, initializeClass, newInstance
 
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.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

QUEUE_SIZE

public final int QUEUE_SIZE
See Also:
Constant Field Values

numCommandJournalsLoaded

public int numCommandJournalsLoaded

commandJournalNames

public java.util.Vector commandJournalNames

commandJournalMasks

public java.util.Vector commandJournalMasks

commandJournalFlags

public java.util.Vector commandJournalFlags

emptyVector

public final java.util.Vector emptyVector
Constructor Detail

CMJournals

public CMJournals()
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

loadCommandJournals

public int loadCommandJournals(java.lang.String list)
Specified by:
loadCommandJournals in interface JournalsLibrary

getNumCommandJournals

public int getNumCommandJournals()
Specified by:
getNumCommandJournals in interface JournalsLibrary

getCommandJournalMask

public java.lang.String getCommandJournalMask(int i)
Specified by:
getCommandJournalMask in interface JournalsLibrary

getCommandJournalName

public java.lang.String getCommandJournalName(int i)
Specified by:
getCommandJournalName in interface JournalsLibrary

getCommandJournalFlags

public java.util.Hashtable getCommandJournalFlags(int i)
Specified by:
getCommandJournalFlags in interface JournalsLibrary

getCommandJournalNames

public java.lang.String[] getCommandJournalNames()
Specified by:
getCommandJournalNames in interface JournalsLibrary

commandJournalSweep

public void commandJournalSweep()

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

run

public void run()
Specified by:
run in interface java.lang.Runnable