Class SameGameNode
- java.lang.Object
-
- ai.libs.jaicore.search.exampleproblems.samegame.SameGameNode
-
- All Implemented Interfaces:
ISuccessorGenerationRelevantRemovalNode
public class SameGameNode extends java.lang.Object implements ISuccessorGenerationRelevantRemovalNode
-
-
Constructor Summary
Constructors Constructor Description SameGameNode(ai.libs.jaicore.problems.samegame.SameGameState state)SameGameNode(SameGameNode parent, ai.libs.jaicore.problems.samegame.SameGameCell selectedCell)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsGeneErasure()booleanequals(java.lang.Object obj)voideraseGenes()java.util.List<ai.libs.jaicore.problems.samegame.SameGameCell>getDecisionPathToRoot()java.util.List<SameGameNode>getPath()intgetScore()ai.libs.jaicore.problems.samegame.SameGameCellgetSelectedCell()ai.libs.jaicore.problems.samegame.SameGameStategetState()inthashCode()booleanisGoalState()booleanisKeepInMemory()voidrecoverGenes()java.lang.StringtoString()
-
-
-
Constructor Detail
-
SameGameNode
public SameGameNode(ai.libs.jaicore.problems.samegame.SameGameState state)
-
SameGameNode
public SameGameNode(SameGameNode parent, ai.libs.jaicore.problems.samegame.SameGameCell selectedCell)
-
-
Method Detail
-
eraseGenes
public void eraseGenes()
- Specified by:
eraseGenesin interfaceISuccessorGenerationRelevantRemovalNode
-
recoverGenes
public void recoverGenes()
- Specified by:
recoverGenesin interfaceISuccessorGenerationRelevantRemovalNode
-
isGoalState
public boolean isGoalState()
-
getState
public ai.libs.jaicore.problems.samegame.SameGameState getState()
-
getScore
public int getScore()
-
getPath
public java.util.List<SameGameNode> getPath()
-
getDecisionPathToRoot
public java.util.List<ai.libs.jaicore.problems.samegame.SameGameCell> getDecisionPathToRoot()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
isKeepInMemory
public boolean isKeepInMemory()
-
allowsGeneErasure
public boolean allowsGeneErasure()
- Specified by:
allowsGeneErasurein interfaceISuccessorGenerationRelevantRemovalNode
-
getSelectedCell
public ai.libs.jaicore.problems.samegame.SameGameCell getSelectedCell()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-