CMCommon
, CoffeeTableRow
, CMObject
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class DefaultCoffeeTableRow extends java.lang.Object implements CoffeeTableRow
Modifier and Type | Field | Description |
---|---|---|
long |
endTime |
|
long |
highestOnline |
|
long |
highestPOnline |
|
long |
numberOnlineCounter |
|
long |
numberOnlineTotal |
|
long |
numberPOnlineTotal |
|
long |
startTime |
|
java.util.Map<java.lang.String,long[]> |
stats |
idConverter
STAT_ARRESTS, STAT_BIRTHS, STAT_CLASSCHANGE, STAT_CMDUSE, STAT_DEATHS, STAT_DIVORCES, STAT_EXECUTIONS, STAT_JAILINGS, STAT_LEVELSGAINED, STAT_LOGINS, STAT_MARRIAGES, STAT_NEWPLAYERS, STAT_PAROLES, 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_SOCUSE, STAT_SPECIAL_NUMONLINE, STAT_TICKSONLINE, STAT_TOTAL, STAT_WARRANTS
Constructor | Description |
---|---|
DefaultCoffeeTableRow() |
Modifier and Type | Method | Description |
---|---|---|
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 |
highestCharsOnline() |
Returns the highest number of chars online during this period.
|
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 |
numberCharsOnlineTotal() |
Returns the cumulative number online during this period per poll.
|
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
|
public java.util.Map<java.lang.String,long[]> stats
public long highestOnline
public long numberOnlineTotal
public long numberOnlineCounter
public long highestPOnline
public long numberPOnlineTotal
public long startTime
public long endTime
public java.lang.String ID()
CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public void setStartTime(long time)
CoffeeTableRow
setStartTime
in interface CoffeeTableRow
time
- the start time in millisCoffeeTableRow.startTime()
public void setEndTime(long time)
CoffeeTableRow
setEndTime
in interface CoffeeTableRow
time
- the end time in millisCoffeeTableRow.endTime()
public long startTime()
CoffeeTableRow
startTime
in interface CoffeeTableRow
CoffeeTableRow.setStartTime(long)
public long endTime()
CoffeeTableRow
endTime
in interface CoffeeTableRow
CoffeeTableRow.setEndTime(long)
public long highestOnline()
CoffeeTableRow
highestOnline
in interface CoffeeTableRow
public long numberOnlineTotal()
CoffeeTableRow
numberOnlineTotal
in interface CoffeeTableRow
CoffeeTableRow.numberOnlineCounter()
public long numberOnlineCounter()
CoffeeTableRow
numberOnlineCounter
in interface CoffeeTableRow
CoffeeTableRow.numberOnlineTotal()
public long highestCharsOnline()
CoffeeTableRow
highestCharsOnline
in interface CoffeeTableRow
public long numberCharsOnlineTotal()
CoffeeTableRow
numberCharsOnlineTotal
in interface CoffeeTableRow
CoffeeTableRow.numberOnlineCounter()
public java.lang.String data()
CoffeeTableRow
data
in interface CoffeeTableRow
CoffeeTableRow.populate(long, long, String)
public void bumpVal(java.lang.String s, int type)
CoffeeTableRow
bumpVal
in interface CoffeeTableRow
s
- 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 CoffeeTableRow
code
- the code string to use, or *tot
- the running total of all events statsCoffeeTableRow.STAT_TOTAL
public java.lang.String tagFix(java.lang.String s)
CoffeeTableRow
tagFix
in interface CoffeeTableRow
s
- the string to changepublic void bumpVal(CMObject E, int type)
CoffeeTableRow
bumpVal
in interface CoffeeTableRow
E
- 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 CoffeeTableRow
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 xmlCoffeeTableRow.data()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public void initializeClass()
CMObject
initializeClass
in interface CMObject