|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.client.PredictSplits
public final class PredictSplits
Predicts splits for one enemy player, and adjusts predictions as creatures are revealed.
Nested Class Summary | |
---|---|
(package private) class |
PredictSplits.ReverseIntegerComparator
|
Field Summary | |
---|---|
private static java.util.logging.Logger |
LOGGER
|
private NodeTurnComparator |
nodeTurnComparator
|
private PredictSplitNode |
root
|
Constructor Summary | |
---|---|
PredictSplits(java.lang.String rootId,
java.util.List<CreatureType> creatureTypes,
Variant variant)
|
Method Summary | |
---|---|
(package private) PredictSplitNode |
getLeaf(java.lang.String markerId)
Return the leaf PredictSplitNode with matching markerId. |
(package private) java.util.List<PredictSplitNode> |
getLeaves(PredictSplitNode node)
Return all non-empty childless nodes in subtree starting from node. |
(package private) java.util.List<PredictSplitNode> |
getNodes(PredictSplitNode node)
Return all non-empty nodes in subtree starting from node. |
PredictSplitNode |
getRoot()
|
(package private) void |
printLeaves()
Print all childless nodes in tree. |
(package private) void |
printNodes()
Print all nodes in tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private final PredictSplitNode root
private final NodeTurnComparator nodeTurnComparator
Constructor Detail |
---|
PredictSplits(java.lang.String rootId, java.util.List<CreatureType> creatureTypes, Variant variant)
Method Detail |
---|
java.util.List<PredictSplitNode> getLeaves(PredictSplitNode node)
java.util.List<PredictSplitNode> getNodes(PredictSplitNode node)
void printLeaves()
void printNodes()
PredictSplitNode getLeaf(java.lang.String markerId)
public PredictSplitNode getRoot()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |