Class AbstractVariableReferenceGraph<Solution_,ChangeSet_>
java.lang.Object
ai.timefold.solver.core.impl.domain.variable.declarative.AbstractVariableReferenceGraph<Solution_,ChangeSet_>
- All Implemented Interfaces:
VariableReferenceGraph
- Direct Known Subclasses:
FixedVariableReferenceGraph
public abstract sealed class AbstractVariableReferenceGraph<Solution_,ChangeSet_>
extends Object
implements VariableReferenceGraph
permits FixedVariableReferenceGraph<Solution_> (not exhaustive)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ChangeSet_protected final DynamicIntArray[]protected final TopologicalOrderGraphprotected final List<EntityVariablePair<Solution_>>protected final Map<VariableMetaModel<?,?, ?>, List<BiConsumer<AbstractVariableReferenceGraph<Solution_, ?>, Object>>> protected final Map<VariableMetaModel<?,?, ?>, List<BiConsumer<AbstractVariableReferenceGraph<Solution_, ?>, Object>>> protected final Map<VariableMetaModel<?,?, ?>, Map<Object, EntityVariablePair<Solution_>>> -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdge(@NonNull EntityVariablePair<Solution_> from, @NonNull EntityVariablePair<Solution_> to) voidafterVariableChanged(VariableMetaModel<?, ?, ?> variableReference, Object entity) voidbeforeVariableChanged(VariableMetaModel<?, ?, ?> variableReference, Object entity) protected abstract ChangeSet_createChangeSet(int instanceCount) @Nullable EntityVariablePair<Solution_>lookupOrNull(VariableMetaModel<?, ?, ?> variableId, Object entity) voidremoveEdge(@NonNull EntityVariablePair<Solution_> from, @NonNull EntityVariablePair<Solution_> to) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.domain.variable.declarative.VariableReferenceGraph
updateChanged
-
Field Details
-
instanceList
-
variableReferenceToInstanceMap
protected final Map<VariableMetaModel<?,?, variableReferenceToInstanceMap?>, Map<Object, EntityVariablePair<Solution_>>> -
variableReferenceToBeforeProcessor
protected final Map<VariableMetaModel<?,?, variableReferenceToBeforeProcessor?>, List<BiConsumer<AbstractVariableReferenceGraph<Solution_, ?>, Object>>> -
variableReferenceToAfterProcessor
protected final Map<VariableMetaModel<?,?, variableReferenceToAfterProcessor?>, List<BiConsumer<AbstractVariableReferenceGraph<Solution_, ?>, Object>>> -
edgeCount
-
changeSet
-
graph
-
-
Method Details
-
createChangeSet
-
lookupOrNull
public @Nullable EntityVariablePair<Solution_> lookupOrNull(VariableMetaModel<?, ?, ?> variableId, Object entity) -
addEdge
public void addEdge(@NonNull EntityVariablePair<Solution_> from, @NonNull EntityVariablePair<Solution_> to) -
removeEdge
public void removeEdge(@NonNull EntityVariablePair<Solution_> from, @NonNull EntityVariablePair<Solution_> to) -
beforeVariableChanged
- Specified by:
beforeVariableChangedin interfaceVariableReferenceGraph
-
afterVariableChanged
- Specified by:
afterVariableChangedin interfaceVariableReferenceGraph
-
toString
-