Package es.urjc.etsii.grafo.shake
Class Destructive<S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.shake.Destructive<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
- Direct Known Subclasses:
Destructive.NullDestructive
Method that destroys a solution, in part or completely.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Destructive
public Destructive()
-
-
Method Details
-
destroy
Destroy a part of the solution. Usually involves deassigning parts of the solution to be rebuilt later by a reconstructive method- Parameters:
solution
- original solutionk
- destroy intensity, may be ignored by the implementing class- Returns:
- reference to the modified solution. Can be modified in placed or cloned before. // TODO clone always or not? decided by the caller?
-
nul
Create a no operation destructive method Returns the solution immediately without executing any operation- Type Parameters:
S
- Solution classI
- Instance class- Returns:
- Null destructive method
-