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 boolean
allowsGeneErasure()
boolean
equals(java.lang.Object obj)
void
eraseGenes()
java.util.List<ai.libs.jaicore.problems.samegame.SameGameCell>
getDecisionPathToRoot()
java.util.List<SameGameNode>
getPath()
int
getScore()
ai.libs.jaicore.problems.samegame.SameGameCell
getSelectedCell()
ai.libs.jaicore.problems.samegame.SameGameState
getState()
int
hashCode()
boolean
isGoalState()
boolean
isKeepInMemory()
void
recoverGenes()
java.lang.String
toString()
-
-
-
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:
eraseGenes
in interfaceISuccessorGenerationRelevantRemovalNode
-
recoverGenes
public void recoverGenes()
- Specified by:
recoverGenes
in 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
isKeepInMemory
public boolean isKeepInMemory()
-
allowsGeneErasure
public boolean allowsGeneErasure()
- Specified by:
allowsGeneErasure
in interfaceISuccessorGenerationRelevantRemovalNode
-
getSelectedCell
public ai.libs.jaicore.problems.samegame.SameGameCell getSelectedCell()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-