org.optaplanner.core.impl.score.stream

## Interface ConstraintSession<Solution_>

- All Superinterfaces:
    AutoCloseable
  All Known Implementing Classes:
    BavetConstraintSession, DroolsConstraintSession

      public interface ConstraintSession<Solution_>
      extends AutoCloseable

  An instance of this class must be used in only one thread.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Score<?>` | `calculateScore(int initScore)`
    `void` | `close()`
    `Map<String,ConstraintMatchTotal>` | `getConstraintMatchTotalMap()` As defined by `ScoreDirector.getConstraintMatchTotalMap()`.
    `Map<Object,Indictment>` | `getIndictmentMap()` As defined by `ScoreDirector.getIndictmentMap()`.
    `void` | `insert(Object fact)`
    `void` | `retract(Object fact)`
    `void` | `update(Object fact)`

- - ### Method Detail

    - #### insert

          void insert(Object fact)

    - #### update

          void update(Object fact)

    - #### retract

          void retract(Object fact)

    - #### calculateScore

          Score<?> calculateScore(int initScore)

    - #### getConstraintMatchTotalMap

          Map<String,ConstraintMatchTotal> getConstraintMatchTotalMap()

      As defined by `ScoreDirector.getConstraintMatchTotalMap()`.
      Returns:
        never null
      See Also:
        `ScoreDirector.getConstraintMatchTotalMap()`

    - #### getIndictmentMap

          Map<Object,Indictment> getIndictmentMap()

      As defined by `ScoreDirector.getIndictmentMap()`.
      Returns:
        never null
      See Also:
        `ScoreDirector.getIndictmentMap()`

    - #### close

          void close()

      Specified by:
        `close` in interface `AutoCloseable`

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