Class BruteForceIPProblem.IntegerDomain

  • Enclosing class:
    BruteForceIPProblem

    public static class BruteForceIPProblem.IntegerDomain
    extends Object
    This specifies the integral domain for an integral variable, i.e., the integer values the variable can take.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int[] domain
      the integer values the variable can take
      int index
      the index of an integral variable
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerDomain​(int index, int[] domain)
      Construct the integral domain for an integral variable.
      IntegerDomain​(int index, int lower, int upper)
      Construct the integral domain for an integral variable.
      IntegerDomain​(int index, int lower, int upper, int inc)
      Construct the integral domain for an integral variable.
    • Field Detail

      • index

        public final int index
        the index of an integral variable
      • domain

        public final int[] domain
        the integer values the variable can take
    • Constructor Detail

      • IntegerDomain

        public IntegerDomain​(int index,
                             int[] domain)
        Construct the integral domain for an integral variable.
        Parameters:
        index - the index of an integral variable
        domain - the integer values the variable can take
      • IntegerDomain

        public IntegerDomain​(int index,
                             int lower,
                             int upper)
        Construct the integral domain for an integral variable.
        Parameters:
        index - the index of an integral variable
        lower - the lower bound of the integral domain
        upper - the upperbound of the integral domain
      • IntegerDomain

        public IntegerDomain​(int index,
                             int lower,
                             int upper,
                             int inc)
        Construct the integral domain for an integral variable.
        Parameters:
        index - the index of an integral variable
        lower - the lower bound of the integral domain
        upper - the upperbound of the integral domain
        inc - the increment