org.optaplanner.core.impl.domain.variable.listener

## Interface StatefulVariableListener<Entity_>

- All Superinterfaces:
    Supply, VariableListener<Entity_>
  All Known Implementing Classes:
    ExternalizedAnchorVariableSupply, ExternalizedCollectionInverseVariableSupply, ExternalizedSingletonInverseVariableSupply

      public interface StatefulVariableListener<Entity_>
      extends VariableListener<Entity_>

  A stateful `VariableListener`, often used to externalize data for a `Supply` from the domain model itself.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `clearWorkingSolution(ScoreDirector scoreDirector)`
    `VariableDescriptor` | `getSourceVariableDescriptor()`
    `void` | `resetWorkingSolution(ScoreDirector scoreDirector)`

    - ### Methods inherited from interface org.optaplanner.core.impl.domain.variable.listener.VariableListener

      `afterEntityAdded, afterEntityRemoved, afterVariableChanged, beforeEntityAdded, beforeEntityRemoved, beforeVariableChanged, requiresUniqueEntityEvents`

- - ### Method Detail

    - #### getSourceVariableDescriptor

          VariableDescriptor getSourceVariableDescriptor()

    - #### resetWorkingSolution

          void resetWorkingSolution(ScoreDirector scoreDirector)

    - #### clearWorkingSolution

          void clearWorkingSolution(ScoreDirector scoreDirector)

Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.