com.dlsc.flexgantt.model.scheduling

## Interface IResolution<T extends IGranularity<?>>

- Type Parameters:
    `T` - the granularity
  All Known Implementing Classes:
    AbstractResolution, DefaultTimeGranularityFixBufferResolution

      public interface IResolution<T extends IGranularity<?>>

  A resolution if a class that knows how to fix a violated constraint.
  Since:
    2.1
  Author:
    Dirk Lemmermann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getResolutionName()` Returns the name of the resolution.
    `void` | `resolve(LayerContainer lc, IConstraint<?,T> constraint, Violation violation, IModelValidator validator)` Resolves / fixes the violated constraint.

- - ### Method Detail

    - #### getResolutionName

          String getResolutionName()

      Returns the name of the resolution.
      Returns:
        the resolution name
      Since:
        2.1

    - #### resolve

          void resolve(LayerContainer lc,
                       IConstraint<?,T> constraint,
                       Violation violation,
                       IModelValidator validator)

      Resolves / fixes the violated constraint.
      Parameters:
        `lc` - the layer container where the fix will take place
        `constraint` - the violated constraint
        `violation` - the violation
        `validator` - the validator used for recursive (waterfall) constraint resolution
      Since:
        2.1

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.