OptaPlanner core 6.2.0.CR3

org.optaplanner.core.impl.domain.variable.inverserelation
Interface SingletonInverseVariableSupply

All Known Implementing Classes:
SingletonInverseVariableListener

public interface SingletonInverseVariableSupply

Currently only supported for chained variables, which guarantee that no 2 entities use the same planningValue.


Method Summary
 Object getInverseSingleton(Object planningValue)
          If entity1.varA = x then the inverse of x is entity1.
 

Method Detail

getInverseSingleton

Object getInverseSingleton(Object planningValue)
If entity1.varA = x then the inverse of x is entity1.

Parameters:
planningValue - never null
Returns:
sometimes null, an entity for which the planning variable is the planningValue.

OptaPlanner core 6.2.0.CR3

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