public class AnalysisData extends Object
Analysis
,
PlaceholderUtils
Constructor and Description |
---|
AnalysisData()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getActive()
Retrieve the amount of active players.
|
Map<String,String> |
getAdditionalDataReplaceMap()
Get the additional data replaceMap used with Analysis replacerules.
|
double |
getAverageAge()
Get the average age of the players whose age has been gathered
|
long |
getAveragePlayTime()
Get How long players have played on average.
|
int |
getBanned()
Used to get the amount of banned players.
|
String |
getCommandUseListHtml()
Used to get the html for the commands table.
|
int[] |
getGenderData()
Get the integer array containing 3 numbers.
0 Male, 1 Female, 2 Unknown.
|
String |
getGeomapCodes()
Used to get the toString representation of a String[] containing all
country codes on the Plotly.js Chloropleth map.
|
String |
getGeomapCountries()
Used to get the toString representation of a String[] containing all
countries on the Plotly.js Chloropleth map.
|
String |
getGeomapZ()
Used to get the toString representation of a int[] containing all player
amounts on the Plotly.js Chloropleth map.
|
double |
getGm0Perc()
Get percentage of Gamemode usage time as a whole.
|
double |
getGm1Perc()
Get percentage of Gamemode usage time as a whole.
|
double |
getGm2Perc()
Get percentage of Gamemode usage time as a whole.
|
double |
getGm3Perc()
Get percentage of Gamemode usage time as a whole.
|
int |
getInactive()
Set the amount of inactive players.
|
int |
getJoinleaver()
Used to get the amount of players who have joined only once.
|
int |
getNewPlayersDay()
Get the amount of registered players in last 24 hours.
|
int |
getNewPlayersMonth()
Get the amount of registered players in last 30 days.
|
int |
getNewPlayersWeek()
Get the amount of registered players in last 7 days.
|
int |
getOps()
Get How many operators are on the server.
|
String[] |
getPlayersDataArray()
Used to store all arrays created in
Analysis#createPlayerActivityGraphs().
0, 2, 4 contain data. 1, 3, 5 contain labels.
0, 1 day; 2, 3 week; 4, 5 month
|
String |
getRecentPlayers()
Get the html for Recent player buttons.
|
long |
getRefreshDate()
Retrieve the refresh Epoch millisecond this object's data was calculated.
|
long |
getSessionAverage()
Get the average length of every session on the server.
|
String |
getSortablePlayersTable()
Used to get the html for players table.
|
int |
getTotal()
Get the total amount of players used to calculate activity.
|
long |
getTotalCommands()
Get the total number of unique commands.
|
long |
getTotalDeaths()
Get how many times the playes have died.
|
long |
getTotalLoginTimes()
Get How many times players have joined in total.
|
long |
getTotalMobKills()
Get the amount of mob kills the players have.
|
long |
getTotalPlayerKills()
Get the amount of times players have killed each other.
|
int |
getTotalPlayers()
Get percentage of Gamemode usage time as a whole.
|
long |
getTotalPlayTime()
Get how long time has been played, long in ms.
|
void |
setActive(int active)
Set the amount of active players.
|
void |
setAdditionalDataReplaceMap(Map<String,String> additionalDataReplaceMap)
Set the additional data replaceMap used with Analysis replacerules.
|
void |
setAverageAge(double averageAge)
Set the average age of the players whose age has been gathered.
|
void |
setAveragePlayTime(long averagePlayTime)
Set the average playtime of all players.
|
void |
setBanned(int banned)
Used to set the amount of banned players.
|
void |
setCommandUseTableHtml(String commandsTableHtml)
Used to get the html for the commands table.
|
void |
setGenderData(int[] genderData)
Set the integer array containing 3 numbers.
0 Male, 1 Female, 2 Unknown.
|
void |
setGeomapCodes(String geomapCodes)
Used to set the toString representation of a String[] containing all
country codes on the Plotly.js Chloropleth map.
|
void |
setGeomapCountries(String geomapCountries)
Used to set the toString representation of a String[] containing all
countries on the Plotly.js Chloropleth map.
|
void |
setGeomapZ(String geomapZ)
Used to set the toString representation of a int[] containing all player
amounts on the Plotly.js Chloropleth map.
|
void |
setGm0Perc(double gm0Perc)
Set percentage of Gamemode usage time as a whole.
|
void |
setGm1Perc(double gm1Perc)
Set percentage of Gamemode usage time as a whole.
|
void |
setGm2Perc(double gm2Perc)
Set percentage of Gamemode usage time as a whole.
|
void |
setGm3Perc(double gm3Perc)
Set percentage of Gamemode usage time as a whole.
|
void |
setInactive(int inactive)
Set the amount of inactive players.
|
void |
setJoinleaver(int joinleaver)
Used to set the amount of players who have joined only once.
|
void |
setNewPlayersDay(int newPlayersDay)
Set the amount of registered players in last 24 hours.
|
void |
setNewPlayersMonth(int newPlayersMonth)
Set the amount of registered players in last 30 days.
|
void |
setNewPlayersWeek(int newPlayersWeek)
Set the amount of registered players in last 7 days.
|
void |
setOps(int ops)
Set the amount of operators.
|
void |
setPlayersDataArray(String[] playersDataArray)
Used to store all arrays created in
Analysis#createPlayerActivityGraphs().
0, 2, 4 contain data. 1, 3, 5 contain labels.
0, 1 day; 2, 3 week; 4, 5 month
|
void |
setRecentPlayers(String recentPlayers)
Set the html for Recent player buttons.
|
void |
setRefreshDate(long refreshDate)
Set the refresh Epoch millisecond this object's data was calculated.
|
void |
setSessionAverage(long sessionAverage)
Set the average length of every session on the server.
|
void |
setSortablePlayersTable(String sortablePlayersTable)
Used to set the html for players table.
|
void |
setTotal(int total)
Set the total amount of players used to calculate activity.
|
void |
setTotalCommands(long totalCommands)
Set the total number of unique commands.
|
void |
setTotaldeaths(long totaldeaths)
Set how many times the playes have died.
|
void |
setTotalkills(long totalkills)
Set the amount of times players have killed each other.
|
void |
setTotalLoginTimes(long totalLoginTimes)
Set How many times playes have logged in.
|
void |
setTotalmobkills(long totalmobkills)
Set the amount of mob kills the players have.
|
void |
setTotalPlayers(int totalPlayers)
Get the Total number of players according to bukkit's data.
|
void |
setTotalPlayTime(long totalPlayTime)
Set how long time has been played, long in ms.
|
public AnalysisData()
public void setAdditionalDataReplaceMap(Map<String,String> additionalDataReplaceMap)
additionalDataReplaceMap
- Map with placeholder keys %key%, valuePlaceholderUtils
public Map<String,String> getAdditionalDataReplaceMap()
public String getGeomapCountries()
public void setGeomapCountries(String geomapCountries)
geomapCountries
- ["Finland","Sweden","Etc.."]public String getGeomapZ()
public void setGeomapZ(String geomapZ)
geomapZ
- [0,0,0,3,0,Etc..]public String getGeomapCodes()
public void setGeomapCodes(String geomapCodes)
geomapCodes
- ["PNG","KHM","KAZ","PRY","SYR","SLB","MLI","Etc.."]public String getSortablePlayersTable()
SortablePlayersTableCreator
public void setSortablePlayersTable(String sortablePlayersTable)
sortablePlayersTable
- Html string.SortablePlayersTableCreator
public int getJoinleaver()
public void setJoinleaver(int joinleaver)
joinleaver
- Number from 0 to Integer.MAXpublic String getCommandUseListHtml()
SortableCommandUseTableCreator
public void setCommandUseTableHtml(String commandsTableHtml)
commandsTableHtml
- Html string.SortableCommandUseTableCreator
public int getBanned()
public void setBanned(int banned)
banned
- 0 to Integer.MAXpublic int getActive()
AnalysisUtils
public void setActive(int active)
active
- Amount of active playersAnalysisUtils
public int getInactive()
AnalysisUtils
public void setInactive(int inactive)
inactive
- Amount of inactive playersAnalysisUtils
public int getTotal()
public void setTotal(int total)
total
- 0 to Integer.MAXpublic double getGm0Perc()
public void setGm0Perc(double gm0Perc)
gm0Perc
- 0.0 to 1.0public double getGm1Perc()
public void setGm1Perc(double gm1Perc)
gm1Perc
- 0.0 to 1.0public double getGm2Perc()
public void setGm2Perc(double gm2Perc)
gm2Perc
- 0.0 to 1.0public double getGm3Perc()
public void setGm3Perc(double gm3Perc)
gm3Perc
- 0.0 to 1.0public int getTotalPlayers()
public void setTotalPlayers(int totalPlayers)
totalPlayers
- 0 to Integer.MAXpublic long getTotalPlayTime()
public void setTotalPlayTime(long totalPlayTime)
totalPlayTime
- 0 to Long.MAXpublic long getRefreshDate()
public long getAveragePlayTime()
public double getAverageAge()
public long getTotalLoginTimes()
public int getOps()
public void setRefreshDate(long refreshDate)
refreshDate
- Epoch millisecond.public void setAveragePlayTime(long averagePlayTime)
averagePlayTime
- long in ms.public void setAverageAge(double averageAge)
averageAge
- 1.0 to 99.0 or -1 if none have been gathered.public void setTotalLoginTimes(long totalLoginTimes)
totalLoginTimes
- 0 to Long.MAXpublic void setOps(int ops)
ops
- 0 to Integer.MAXpublic String getRecentPlayers()
RecentPlayersButtonsCreator
public void setRecentPlayers(String recentPlayers)
recentPlayers
- html string.RecentPlayersButtonsCreator
public int getNewPlayersMonth()
public void setNewPlayersMonth(int newPlayersMonth)
newPlayersMonth
- 0 to Integer.MAXpublic int getNewPlayersWeek()
public void setNewPlayersWeek(int newPlayersWeek)
newPlayersWeek
- 0 to Integer.MAXpublic int getNewPlayersDay()
public void setNewPlayersDay(int newPlayersDay)
newPlayersDay
- 0 to Integer.MAXpublic long getTotalPlayerKills()
public long getTotalMobKills()
public long getTotalDeaths()
public void setTotalkills(long totalkills)
totalkills
- 0 to Long.MAXpublic void setTotalmobkills(long totalmobkills)
totalmobkills
- 0 to Long.MAXpublic void setTotaldeaths(long totaldeaths)
totaldeaths
- 0 to Long.MAXpublic String[] getPlayersDataArray()
PlayerActivityGraphCreator
,
Analysis
public void setPlayersDataArray(String[] playersDataArray)
playersDataArray
- String array containing multiple toString
representations of number and label arrays.PlayerActivityGraphCreator
,
Analysis
public void setTotalCommands(long totalCommands)
totalCommands
- 0 to Long.MAXpublic long getTotalCommands()
public long getSessionAverage()
public void setSessionAverage(long sessionAverage)
sessionAverage
- 0 to Long.MAXpublic int[] getGenderData()
public void setGenderData(int[] genderData)
genderData
- for example [0, 4, 5]Copyright © 2017. All rights reserved.