Module: Gecode::FixnumEnumMethods

Includes:
Constraints::IntEnum::Element::AdditionalEnumMethods, EnumMethods
Defined in:
lib/gecoder/interface/enum_wrapper.rb,
lib/gecoder/interface/constraints/set/operation.rb,
lib/gecoder/interface/constraints/int_enum/element.rb

Overview

A module containing the methods needed by enumerations containing fixnums. Requires that it’s included in an enumerable.

Instance Attribute Summary

Attributes included from EnumMethods

#model

Instance Method Summary collapse

Methods included from Constraints::IntEnum::Element::AdditionalEnumMethods

included

Methods included from EnumMethods

#active_space

Instance Method Details

#domain_rangeObject

Returns the smallest range that contains the domains of all integer variables involved.



149
150
151
# File 'lib/gecoder/interface/enum_wrapper.rb', line 149

def domain_range
  min..max
end