Class TspConstraintOperator


  • public class TspConstraintOperator
    extends java.lang.Object
    Since:
    release specific (what release of product did this appear in)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int AND  
      static int NOT  
      static int OR  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TspConstraintOperator

        public TspConstraintOperator()
    • Method Detail

      • and

        public static TspConstraint and​(TspConstraint[] constraints)
        Performs "and" operation on an array of constraints, and returns the combined constraint.
        Parameters:
        constraints -
        Returns:
      • or

        public static TspConstraint or​(TspConstraint[] constraints)
        Performs "or" operation on an array of constraints, and returns the combined constraint.
        Parameters:
        constraints -
        Returns:
      • not

        public static TspConstraint not​(TspConstraint constraint)
        Performs "not" operation on the specified constraint, and returns the opposite constraint.
        Parameters:
        constraint -
        Returns: