|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultCoffeeTableRow
public class DefaultCoffeeTableRow
| Field Summary | |
|---|---|
long |
endTime
|
long |
highestOnline
|
long |
numberOnlineCounter
|
long |
numberOnlineTotal
|
long |
startTime
|
java.util.Map<java.lang.String,long[]> |
stats
|
| Fields inherited from interface com.planet_ink.coffee_mud.Common.interfaces.CoffeeTableRow |
|---|
STAT_BIRTHS, STAT_CLASSCHANGE, STAT_DEATHS, STAT_DIVORCES, STAT_LEVELSGAINED, STAT_LOGINS, STAT_MARRIAGES, STAT_NEWPLAYERS, STAT_PKDEATHS, STAT_PURGES, STAT_QUESTACCEPTED, STAT_QUESTDROPPED, STAT_QUESTFAILED, STAT_QUESTFAILEDSTART, STAT_QUESTSTARTATTEMPT, STAT_QUESTSTOP, STAT_QUESTSUCCESS, STAT_QUESTTIMESTART, STAT_QUESTTIMESTOP, STAT_SKILLUSE, STAT_SPECIAL_NUMONLINE, STAT_TICKSONLINE, STAT_TOTAL |
| Constructor Summary | |
|---|---|
DefaultCoffeeTableRow()
|
|
| 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. |
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
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. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.util.Map<java.lang.String,long[]> stats
public long highestOnline
public long numberOnlineTotal
public long numberOnlineCounter
public long startTime
public long endTime
| Constructor Detail |
|---|
public DefaultCoffeeTableRow()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
CMObject
name in interface CMObjectEnvironmental.Name()public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public void setStartTime(long time)
CoffeeTableRow
setStartTime in interface CoffeeTableRowtime - the start time in millisCoffeeTableRow.startTime()public void setEndTime(long time)
CoffeeTableRow
setEndTime in interface CoffeeTableRowtime - the end time in millisCoffeeTableRow.endTime()public long startTime()
CoffeeTableRow
startTime in interface CoffeeTableRowCoffeeTableRow.setStartTime(long)public long endTime()
CoffeeTableRow
endTime in interface CoffeeTableRowCoffeeTableRow.setEndTime(long)public long highestOnline()
CoffeeTableRow
highestOnline in interface CoffeeTableRowpublic long numberOnlineTotal()
CoffeeTableRow
numberOnlineTotal in interface CoffeeTableRowCoffeeTableRow.numberOnlineCounter()public long numberOnlineCounter()
CoffeeTableRow
numberOnlineCounter in interface CoffeeTableRowCoffeeTableRow.numberOnlineTotal()public java.lang.String data()
CoffeeTableRow
data in interface CoffeeTableRowCoffeeTableRow.populate(long, long, String)
public void bumpVal(java.lang.String s,
int type)
CoffeeTableRow
bumpVal in interface CoffeeTableRows - the named statistic to record for the given eventtype - the type of event to tabulateCoffeeTableRow.STAT_LOGINS
public void totalUp(java.lang.String code,
long[] tot)
CoffeeTableRow
totalUp in interface CoffeeTableRowcode - the code string to use, or *tot - the running total of all events statsCoffeeTableRow.STAT_TOTALpublic java.lang.String tagFix(java.lang.String s)
CoffeeTableRow
tagFix in interface CoffeeTableRows - the string to change
public void bumpVal(CMObject E,
int type)
CoffeeTableRow
bumpVal in interface CoffeeTableRowE - the mob or abilitytype - the type of event to tabulateCoffeeTableRow.STAT_LOGINS
public void populate(long start,
long end,
java.lang.String data)
CoffeeTableRow
populate in interface CoffeeTableRowstart - 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 xmlCoffeeTableRow.data()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic CMObject copyOf()
CMObject
copyOf in interface CMObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||