org.optaplanner.constraint.streams.bavet.common.Tuple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optaplanner-constraint-streams-bavet Show documentation
Show all versions of optaplanner-constraint-streams-bavet Show documentation
OptaPlanner solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains implementation of Constraint streams (Bavet).
package org.optaplanner.constraint.streams.bavet.common;
import java.util.function.Function;
import org.optaplanner.core.api.score.stream.uni.UniConstraintStream;
/**
* A tuple must not implement equals()/hashCode() to fact equality,
* because some stream operations ({@link UniConstraintStream#map(Function)}, ...)
* might create 2 different tuple instances to contain the same facts
* and because a tuple's origin may replace a tuple's fact.
*/
public interface Tuple {
BavetTupleState getState();
void setState(BavetTupleState state);
Object[] getStore();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy