Class VariableState

java.lang.Object
org.projog.clp.VariableState

public final class VariableState extends Object
Represents the possible values for a variable.
  • Field Details

    • CORRUPT

      private static final NumberSet CORRUPT
      Used to indicate a VariableState has become corrupt.

      If bitset is assigned to CORRUPT then that indicates the VariableState has become corrupt and should no longer be used.

      For example, a VariableState would become corrupt if it had a minimum value of 7 and an attempt was made to set its maximum value to 6.

    • min

      private long min
      The minimum possible value for this VariableState.
    • max

      private long max
      The maximum possible value for this VariableState.
    • bitset

      private NumberSet bitset
      The set of all possible values for this VariableState.

      If null then indicates that all numbers in the range min to max (inclusive) are possible values for this VariableState.

      If assigned to CORRUPT then indicates that this VariableState has become corrupt and should no longer be used.

  • Constructor Details

    • VariableState

      public VariableState()
      Creates a VariableState with the full range of possible values.
    • VariableState

      private VariableState(long min, long max, NumberSet bitset)
    • VariableState

      private VariableState(VariableState original)
  • Method Details