|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.search.CurrentNeighbor
Used to hold a neighboring solution and the neighborhood that produced it. This is used when browsing a neighborhood to maintain which neighbor is currently active in the solver.
Constructor Summary | |
CurrentNeighbor()
|
Method Summary | |
int |
getIndex()
|
Metaheuristic |
getMetaheuristic()
|
Neighborhood |
getNeighborhood()
|
SolverSolution |
getSolution()
|
void |
setIndex(int index)
Sets the index of the neighboring solution within the neighborhood |
void |
setMetaheuristic(Metaheuristic metaheuristic)
Sets the metaheuristic that determines neighbors to be valid |
void |
setNeighborhood(Neighborhood hood)
Sets the neighborhood that generated this neighbor |
void |
setSolution(SolverSolution solution)
Sets a neighboring solution that was produced by the neighborhood |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CurrentNeighbor()
Method Detail |
public Neighborhood getNeighborhood()
public void setNeighborhood(Neighborhood hood)
public SolverSolution getSolution()
public void setSolution(SolverSolution solution)
public int getIndex()
public void setIndex(int index)
public Metaheuristic getMetaheuristic()
public void setMetaheuristic(Metaheuristic metaheuristic)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |