Package org.optaplanner.core.impl.domain.variable.supply

## Interface SupplyManager<Solution_>

- All Known Implementing Classes:
    `VariableListenerSupport`

      public interface SupplyManager<Solution_>

  Provides a `Supply` for subsystems that submit a `Demand`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `<Supply_ extends Supply> Supply_` | `demand​(Demand<Solution_,​Supply_> demand)` | Returns the `Supply` for a `Demand`, preferably an existing one.

- - ### Method Detail

    - #### demand

          <Supply_ extends Supply> Supply_ demand​(Demand<Solution_,​Supply_> demand)

      Returns the `Supply` for a `Demand`, preferably an existing one. If the `Supply` doesn't exist yet (as part of the domain model or externalized), it creates and attaches it.
      Type Parameters:
        `Supply_` - Subclass of `Supply`
      Parameters:
        `demand` - never null
      Returns:
        never null