|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjopt.csp.search.UnifiedNeighborhood
Creates a neighborhood based on a combination of other neighborhoods.
| Constructor Summary | |
UnifiedNeighborhood(Neighborhood[] neighborhoods)
Creates a unified neighborhood based on a collection of other neighborhoods |
|
| Method Summary | |
SolverSolution |
getNeighbor(int index)
Returns the neighboring solution at index i |
Neighborhood |
getSelectedNeighborhood()
Returns the Neighborhood represented by the latest selected Neighborhood |
int |
getSelectedNeighborhoodOffset()
Returns the offset into Neighborhood represented by the latest selected Neighborhood |
void |
neighborSelected(int i)
Indicates that a neighbor has been selected from this neighborhood and is about to be used to update the initial solution. |
void |
setInitialSolution(SolverSolution initial)
Sets the initial solution to which this neighborhood is related |
int |
size()
Returns the number of potential solutions contained in the neighborhood |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnifiedNeighborhood(Neighborhood[] neighborhoods)
| Method Detail |
public void setInitialSolution(SolverSolution initial)
Neighborhood
setInitialSolution in interface Neighborhoodpublic int size()
Neighborhood
size in interface Neighborhoodpublic SolverSolution getNeighbor(int index)
Neighborhoodi
getNeighbor in interface Neighborhoodindex - Index of neighbor within neighborhood
public Neighborhood getSelectedNeighborhood()
Neighborhood
getSelectedNeighborhood in interface Neighborhoodpublic int getSelectedNeighborhoodOffset()
Neighborhood
getSelectedNeighborhoodOffset in interface Neighborhoodpublic void neighborSelected(int i)
Neighborhood
neighborSelected in interface Neighborhood
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||