Class FLPOptNeigh
java.lang.Object
es.urjc.etsii.grafo.solution.neighborhood.Neighborhood<FLPOptNeigh.OptMove, FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.model.FLPOptNeigh
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Neighborhood
Neighborhood.EmptyNeighborhood<M,S, I> -
Field Summary
Fields inherited from class Neighborhood
UNKNOWN_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexplore(FLPSolution solution) Build an exhaustive stream that allows iterating the whole neighborhood Using a stream is more efficient that a list as moves are only generated if they are neededMethods inherited from class Neighborhood
concat, empty, interleave, neighborhoodSize, random, toString
-
Constructor Details
-
FLPOptNeigh
public FLPOptNeigh()
-
-
Method Details
-
explore
Description copied from class:NeighborhoodBuild an exhaustive stream that allows iterating the whole neighborhood Using a stream is more efficient that a list as moves are only generated if they are needed- Specified by:
explorein classNeighborhood<FLPOptNeigh.OptMove, FLPSolution, FLPInstance>- Parameters:
solution- Solution used to generate the neighborhood- Returns:
- Stream with all the available moves in the neighborhood
-