|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoffeeTableRow
A CoffeeTableRow object represents a period of sustained statistics gathering. The CoffeeMud engine keeps counters on all manner of different game events, such as logins, new players, levels, deaths, and others. CoffeeTableRows are managed by the CoffeeTables library.
StatisticsLibrary
Field Summary | |
---|---|
static int |
STAT_BIRTHS
a constant index into statistics for a birth event |
static int |
STAT_CLASSCHANGE
a constant index into statistics for a class change event |
static int |
STAT_DEATHS
a constant index into statistics for a death event |
static int |
STAT_DIVORCES
a constant index into statistics for a divorce event |
static int |
STAT_LEVELSGAINED
a constant index into statistics for a level gain event |
static int |
STAT_LOGINS
a constant index into statistics for login events |
static int |
STAT_MARRIAGES
a constant index into statistics for a marriage event |
static int |
STAT_NEWPLAYERS
a constant index into statistics for a new player event |
static int |
STAT_PKDEATHS
a constant index into statistics for pk death event |
static int |
STAT_PURGES
a constant index into statistics for a purge event |
static int |
STAT_QUESTACCEPTED
a constant index into statistics for a quest accepted |
static int |
STAT_QUESTDROPPED
a constant index into statistics for a quest dropped |
static int |
STAT_QUESTFAILED
a constant index into statistics for a quest failed |
static int |
STAT_QUESTFAILEDSTART
a constant index into statistics for a quest failed start |
static int |
STAT_QUESTSTARTATTEMPT
a constant index into statistics for a manual start |
static int |
STAT_QUESTSTOP
a constant index into statistics for a quest manual stop |
static int |
STAT_QUESTSUCCESS
a constant index into statistics for a quest success |
static int |
STAT_QUESTTIMESTART
a constant index into statistics for a times start |
static int |
STAT_QUESTTIMESTOP
a constant index into statistics for a quest timeout stop |
static int |
STAT_SKILLUSE
a constant index into statistics for a skill use event |
static int |
STAT_SPECIAL_NUMONLINE
a constant index into statistics for a num players online poll event |
static int |
STAT_TICKSONLINE
a constant index into statistics for a tick event |
static int |
STAT_TOTAL
a constant index of the total number of enumerated statistical events |
Method Summary | |
---|---|
void |
bumpVal(CMObject E,
int type)
Gathers relevant information about the given Environmental object (usually MOB or Ability) and adds to the relevant statistics. |
void |
bumpVal(java.lang.String s,
int type)
Finds a named statistic of the given name, and increments the value of that long statistic by 1. |
java.lang.String |
data()
Returns an XML document representing all the information in this object. |
long |
endTime()
The end time, in millis since 1970, for this row of data |
long |
highestOnline()
Returns the highest number of players online during this period. |
long |
numberOnlineCounter()
Returns the number of times the number of players online has been polled during this period. |
long |
numberOnlineTotal()
Returns the cumulative number online during this period per poll. |
void |
populate(long start,
long end,
java.lang.String data)
Populates this object from an xml document containing relevant statistics. |
void |
setEndTime(long time)
Sets the end time, in millis since 1970, for this row of data |
void |
setStartTime(long time)
Sets the start time, in millis since 1970, for this row of data |
long |
startTime()
The start time, in millis since 1970, for this row of data |
java.lang.String |
tagFix(java.lang.String s)
Simple method that replaces a strings spaces with _ characters, and makes the string uppercase. |
void |
totalUp(java.lang.String code,
long[] tot)
Loops through adding all the event stats for the given code string together |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final int STAT_LOGINS
static final int STAT_TICKSONLINE
static final int STAT_NEWPLAYERS
static final int STAT_LEVELSGAINED
static final int STAT_DEATHS
static final int STAT_PKDEATHS
static final int STAT_MARRIAGES
static final int STAT_BIRTHS
static final int STAT_DIVORCES
static final int STAT_CLASSCHANGE
static final int STAT_PURGES
static final int STAT_SKILLUSE
static final int STAT_TOTAL
static final int STAT_QUESTFAILEDSTART
static final int STAT_QUESTTIMESTART
static final int STAT_QUESTTIMESTOP
static final int STAT_QUESTSTOP
static final int STAT_QUESTACCEPTED
static final int STAT_QUESTFAILED
static final int STAT_QUESTSUCCESS
static final int STAT_QUESTDROPPED
static final int STAT_QUESTSTARTATTEMPT
static final int STAT_SPECIAL_NUMONLINE
Method Detail |
---|
long startTime()
setStartTime(long)
long endTime()
setEndTime(long)
void setStartTime(long time)
time
- the start time in millisstartTime()
void setEndTime(long time)
time
- the end time in millisendTime()
long highestOnline()
long numberOnlineTotal()
numberOnlineCounter()
long numberOnlineCounter()
numberOnlineTotal()
java.lang.String data()
populate(long, long, String)
void populate(long start, long end, java.lang.String data)
start
- the start time, in millis, for this row of dataend
- the end time, in millis, for this row of datadata
- the statistics and data for this row, as xmldata()
void bumpVal(java.lang.String s, int type)
s
- the named statistic to record for the given eventtype
- the type of event to tabulateSTAT_LOGINS
void bumpVal(CMObject E, int type)
E
- the mob or abilitytype
- the type of event to tabulateSTAT_LOGINS
java.lang.String tagFix(java.lang.String s)
s
- the string to change
void totalUp(java.lang.String code, long[] tot)
code
- the code string to use, or *tot
- the running total of all events statsSTAT_TOTAL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |