|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbot.module.th.estimation.Estimation
public class Estimation
This class initializes the estimation of x opponents for a given amount of competitions
It holds the estimation data in the Map opponentsEstimations
- BY NOW ONLY THE ESTIMATION OF THE SPECIAL ROUND "PREFLOPSHC" IS EXEMPLARILY IMPLEMENTED -
Field Summary | |
---|---|
private int |
competitionId
|
private int[] |
completedCompetitionsIds
|
private java.lang.String |
myName
|
private java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Opponent>> |
opponentsEstimations
Map holding all estimations by opponent and competition playerId, HashMap oppPerCompetition: competitionId, estimation |
private java.util.List<java.lang.String> |
playersExplicitely
if players were explicitly announced, estimate only those |
(package private) long |
timestamp
|
Constructor Summary | |
---|---|
Estimation(java.lang.String myName,
long beginAt,
java.util.List<java.lang.String> restrictToPlayers)
Constructor |
Method Summary | |
---|---|
private boolean |
addOpponentWithCompetition(int player_id,
int competition_id)
add opponent with competition to Map opponentsEstimations |
boolean |
estimate()
estimate opponent over all rounds TODO booleans to IF_EstimationAtRound |
void |
estimateCompletedCompetitions(int gamedef_id)
process all completed competitions right now since the participation players are unknown right now estimate all players played this gamedef |
java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Opponent>> |
getOpponentsEstimations()
|
boolean |
initNewCompetition()
set currently running competition cleanup opponentsEstimations by not participating estimated players |
private void |
setCompletedCompetitionsIds(int gamedef_id,
long timestamp)
get all completed competitions with current gamedef |
private void |
setOpponentsEstimations()
fill opponentsAtCompetition with completed competitions by playerId, competitionId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String myName
long timestamp
private java.util.List<java.lang.String> playersExplicitely
private int[] completedCompetitionsIds
private int competitionId
private java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Opponent>> opponentsEstimations
Constructor Detail |
---|
public Estimation(java.lang.String myName, long beginAt, java.util.List<java.lang.String> restrictToPlayers)
myName
- - bots namebeginAt
- - - ability to reduce estimation of completed competitions to specific date (timestamp)restrictToPlayers
- - ability to reduce estimation of completed competitions to specific playersMethod Detail |
---|
public void estimateCompletedCompetitions(int gamedef_id)
IF_Estimation
estimateCompletedCompetitions
in interface IF_Estimation
gamedef_id
- - already generated by db -private void setCompletedCompetitionsIds(int gamedef_id, long timestamp)
gamedef_id
- - already generated by dbprivate void setOpponentsEstimations()
private boolean addOpponentWithCompetition(int player_id, int competition_id)
player_id
- competition_id
- already generated by db
public boolean initNewCompetition()
IF_Estimation
initNewCompetition
in interface IF_Estimation
public boolean estimate()
IF_Estimation
estimate
in interface IF_Estimation
public java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,Opponent>> getOpponentsEstimations()
getOpponentsEstimations
in interface IF_Estimation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |