org.optaplanner.constraint.streams.bavet.bi.BiTupleImpl 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.bi;
import org.optaplanner.constraint.streams.bavet.common.AbstractTuple;
public final class BiTupleImpl extends AbstractTuple implements BiTuple {
// Only a tuple's origin node may modify a fact.
public A factA;
public B factB;
public BiTupleImpl(A factA, B factB, int storeSize) {
super(storeSize);
this.factA = factA;
this.factB = factB;
}
@Override
public A getFactA() {
return factA;
}
@Override
public B getFactB() {
return factB;
}
@Override
public String toString() {
return "{" + factA + ", " + factB + "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy