Class FLPRelocateNeigh.RelocateMove

Enclosing class:
FLPRelocateNeigh

public static class FLPRelocateNeigh.RelocateMove extends FLPMove
  • Constructor Details

    • RelocateMove

      public RelocateMove(FLPSolution solution, int row1, int pos1, int row2, int pos2)
    • RelocateMove

      public RelocateMove(FLPSolution solution, int row1, int pos1, int row2, int pos2, double cost)
  • Method Details

    • moveCost

      public static double moveCost(FLPSolution solution, int row1, int pos1, int row2, int pos2)
    • _execute

      protected FLPSolution _execute(FLPSolution solution)
      Description copied from class: Move
      Executes the proposed move, to be implemented by each move type
      Specified by:
      _execute in class Move<FLPSolution, FLPInstance>
    • toString

      public String toString()
      Description copied from class: Move
      Returns a String representation of the current movement. Tip: Default IDEs implementations are usually fine
      Overrides:
      toString in class FLPMove
      Returns:
      human readable string
    • equals

      public boolean equals(Object o)
      Description copied from class: Move
      Specified by:
      equals in class FLPMove
    • hashCode

      public int hashCode()
      Description copied from class: Move
      Specified by:
      hashCode in class FLPMove