OptaPlanner core 6.2.0.Final

org.optaplanner.core.impl.domain.variable.supply
Interface Demand<S extends Supply>

Type Parameters:
S -
All Superinterfaces:
Serializable
All Known Implementing Classes:
AnchorVariableDemand, CustomShadowVariableDemand, SingletonInverseVariableDemand

public interface Demand<S extends Supply>
extends Serializable

A subsystem submits a demand for a Supply. Implementations must overwrite #equals(Object) and #hashCode().

See Also:
Supply, SupplyManager

Method Summary
 S createExternalizedSupply(InnerScoreDirector scoreDirector)
          Only called if the domain model doesn't already support the demand (through a shadow variable usually).
 

Method Detail

createExternalizedSupply

S createExternalizedSupply(InnerScoreDirector scoreDirector)
Only called if the domain model doesn't already support the demand (through a shadow variable usually). Equal demands share the same Supply.

Parameters:
scoreDirector - never null
Returns:
never null

OptaPlanner core 6.2.0.Final

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