public class TspConstraintOperator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TspConstraintOperator.CombinedConstraint |
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
NOT |
static int |
OR |
Constructor and Description |
---|
TspConstraintOperator() |
Modifier and Type | Method and Description |
---|---|
static TspConstraint |
and(TspConstraint[] constraints)
Performs "and" operation on an array of constraints, and returns the combined constraint.
|
static TspConstraint |
not(TspConstraint constraint)
Performs "not" operation on the specified constraint, and returns the opposite constraint.
|
static TspConstraint |
or(TspConstraint[] constraints)
Performs "or" operation on an array of constraints, and returns the combined constraint.
|
public static final int AND
public static final int OR
public static final int NOT
public static TspConstraint and(TspConstraint[] constraints)
constraints
-public static TspConstraint or(TspConstraint[] constraints)
constraints
-public static TspConstraint not(TspConstraint constraint)
constraint
-