|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ereinionbw.spp.SquarePuzzleOp
Implementazione di SearchOp rappresentante una mossa per il rompicapo dell'8.
Una mossa, in questa implementazione del rompicapo dell'8, è definita come
la posizione di una casella adiacente con la casella vuota (vale a dire una cassella
che è possibile far slittare sulla casella vuota).
La posizione di tale casella è indicata attraverso la usa posizione sugli assi
X e Y all'interno del SquarePuzzleState corrispondente.
SquarePuzzleState,
SquarePuzzleProblem| Constructor Summary | |
SquarePuzzleOp(int x,
int y)
Crea una nuova mossa di posizione indicata. |
|
| Method Summary | |
static int |
getX(SquarePuzzleOp op)
Restituisce il valore x di questa mossa. |
static int |
getY(SquarePuzzleOp op)
Restituisce il valore y di questa mossa. |
java.lang.String |
operatorToString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SquarePuzzleOp(int x,
int y)
x - la posizione sull'asse x della mossa da creare.y - la posizione sull'asse y della mossa da creare.| Method Detail |
public static int getX(SquarePuzzleOp op)
op - la mossa da considerare.
public static int getY(SquarePuzzleOp op)
op - la mossa da considerare.
public java.lang.String operatorToString()
operatorToString in interface SearchOp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||