Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.domain.solution.mutation
Class MutationCounter

    java.lang.Object
      org.optaplanner.core.impl.domain.solution.mutation.MutationCounter

    public class MutationCounter

extends Object

Field Summary
`protected SolutionDescriptor` | `solutionDescriptor`

Constructor Summary
`MutationCounter(SolutionDescriptor solutionDescriptor)`

Method Summary
`int` | `countMutations(Solution a, Solution b)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### solutionDescriptor

    protected final SolutionDescriptor solutionDescriptor

Constructor Detail

### MutationCounter

    public MutationCounter(SolutionDescriptor solutionDescriptor)

Method Detail

### countMutations

    public int countMutations(Solution a,
                              Solution b)

  Parameters:
    `a` - never null
    `b` - never null
  Returns:
    >= 0, the number of planning variables that have a different value in `a` and `b`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.