Class SimpleNode<P extends IGamePosition<P>>
- Type Parameters:
P- some implementation ofIGamePositionwhich corresponds to the game being searched by this tree.
- All Implemented Interfaces:
Serializable
Implementation of
GameTreeNode that only acts as a facade for the underlying
tree expressed by the P implementation of IGamePosition. No values are
saved beyond the direct parental line of ancestors of each node and the depth of each node.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class gametree.GameTreeNode
GameTreeNode.Result<N extends GameTreeNode<N,P>, P extends IGamePosition<P>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean_adjustBounds(List<SimpleNode<P>> children, MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.adjustBounds(List<N>, MetricKeeper...).List<SimpleNode<P>> _children(MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.children(MetricKeeper...).long_depthOfLower(MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.depthOfLower(MetricKeeper...).long_depthOfUpper(MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.depthOfUpper(MetricKeeper...).double_lowerbound(MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.lowerbound(MetricKeeper...).double_upperbound(MetricKeeper... metrics) Method to implement functionality ofGameTreeNode.upperbound(MetricKeeper...).booleanbooleanThis isIGamePosition.maximising()from theGameTreeNode.position()of this node.Optional<List<SimpleNode<P>>> toString()Methods inherited from class gametree.GameTreeNode
adjustBounds, adjustBounds, adjustBounds, adjustBounds, attachMetrics, CDF, children, clearPosition, combineMetricList, countSavedSubTree, depth, depthOfLower, depthOfUpper, findBest2, fromFile, getAllLeafnodes, getAttachedMetrics, getComparator, getSavedLeafnodes, hasAttachedMetrics, isRelevant, isRoot, leastPessimistic2, lowerbound, mostOptimistic2, parent, PMF, position, printTree, printTree, printTree, remainingSolveEffort, separation, separation, setParent, survivalFunction, toFile, updateMetrics, updateMetricsParental, updateTree, upperbound
-
Constructor Details
-
SimpleNode
-
SimpleNode
-
-
Method Details
-
_children
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.children(MetricKeeper...).- Specified by:
_childrenin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
savedChildren
- Specified by:
savedChildrenin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>- Returns:
- An Optional containing all children nodes saved in the memory of this
GameTreeNodeor an empty Optional if none are saved in memory. An Optional containing an empty List signifies a terminal node with no children.
-
_upperbound
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.upperbound(MetricKeeper...).- Specified by:
_upperboundin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
_lowerbound
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.lowerbound(MetricKeeper...).- Specified by:
_lowerboundin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
hasSavedBounds
public boolean hasSavedBounds()- Specified by:
hasSavedBoundsin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
maximising
public boolean maximising()Description copied from class:GameTreeNodeThis isIGamePosition.maximising()from theGameTreeNode.position()of this node.- Specified by:
maximisingin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>- Returns:
trueif the current player-to-move is maximising the score, orfalseif it is minimising the score.
-
_adjustBounds
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.adjustBounds(List<N>, MetricKeeper...).- Specified by:
_adjustBoundsin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
_depthOfUpper
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.depthOfUpper(MetricKeeper...).- Specified by:
_depthOfUpperin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
_depthOfLower
Description copied from class:GameTreeNodeMethod to implement functionality ofGameTreeNode.depthOfLower(MetricKeeper...).- Specified by:
_depthOfLowerin classGameTreeNode<SimpleNode<P extends IGamePosition<P>>, P extends IGamePosition<P>>
-
toString
-