No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Neighbor.java 706B

123456789101112131415161718192021
  1. package jobshop.solvers.neighborhood;
  2. import jobshop.encodings.Encoding;
  3. /** This class provides a representation of neighbor by allowing to transform
  4. * a solution in a particular encoding Enc into the neighbor and back.
  5. *
  6. * @param <Enc> A subclass of Encoding for that can be transformed into a neighbor and back.
  7. * */
  8. public abstract class Neighbor<Enc extends Encoding> {
  9. /** Transform the given solution into the neighbor. */
  10. public abstract void applyOn(Enc current);
  11. /** Transform the neighbor back into the original solution. */
  12. public abstract void undoApplyOn(Enc current);
  13. /** Renvoi l'objet caracterisant le changement **/
  14. public abstract Object getChange();
  15. }