public class NAryTreeStateVisit<S extends NAryTreeState> extends java.lang.Object implements java.lang.Comparable<NAryTreeStateVisit<S>>
Modifier and Type | Field and Description |
---|---|
protected AbstractNAryTreeOracle.NodeSet |
allowedMoves |
protected int |
costSoFar |
protected int |
depth |
protected int |
modelMove |
protected NAryTreeStateVisit<S> |
predecessor |
protected S |
state |
Constructor and Description |
---|
NAryTreeStateVisit(S state,
NAryTreeStateVisit<S> predecessor,
NAryTreeNode modelMove,
AbstractNAryTreeOracle.NodeSet allowedMoves,
int costSoFar,
int depth) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NAryTreeStateVisit<S> o) |
boolean |
equals(java.lang.Object o) |
AbstractNAryTreeOracle.NodeSet |
getAllowedMoves() |
int |
getCostSoFar() |
int |
getDepth() |
NAryTreeNode |
getModelMove() |
NAryTreeStateVisit<S> |
getPredecessor() |
S |
getState() |
int |
hashCode() |
java.lang.String |
toString() |
protected final int costSoFar
protected final int depth
protected final S extends NAryTreeState state
protected final NAryTreeStateVisit<S extends NAryTreeState> predecessor
protected final int modelMove
protected final AbstractNAryTreeOracle.NodeSet allowedMoves
public NAryTreeStateVisit(S state, NAryTreeStateVisit<S> predecessor, NAryTreeNode modelMove, AbstractNAryTreeOracle.NodeSet allowedMoves, int costSoFar, int depth)
public int getCostSoFar()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getDepth()
public NAryTreeStateVisit<S> getPredecessor()
public S getState()
public NAryTreeNode getModelMove()
public int compareTo(NAryTreeStateVisit<S> o)
compareTo
in interface java.lang.Comparable<NAryTreeStateVisit<S extends NAryTreeState>>
public AbstractNAryTreeOracle.NodeSet getAllowedMoves()