Class CAPShake

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<CAPSolution,CAPInstance>
es.urjc.etsii.grafo.flayouts.components.CAPShake

public class CAPShake extends Shake<CAPSolution,CAPInstance>
  • Constructor Details

  • Method Details

    • shake

      public CAPSolution shake(CAPSolution solution, int k)
      Description copied from class: Shake
      Shake the solution. Use k to calculate how powerful the shake should be in your implementation. Can be as simple as number of elements to remove, or to swap. Whatever you want.
      Specified by:
      shake in class Shake<CAPSolution,CAPInstance>
      Parameters:
      solution - Solution to shake
      k - shake strength
      Returns:
      shaken solution. Shaken, not stirred.
    • toString

      public String toString()
      Overrides:
      toString in class Object