Class: Gecode::Constraints::IntEnum::Count::Expression

Inherits:
Expression show all
Defined in:
lib/gecoder/interface/constraints/int_enum/count.rb

Overview

Describes an expression

Instance Method Summary collapse

Methods inherited from Expression

#channel, #distinct, #equal, #in, #match, #sorted

Constructor Details

#initialize(model, params) ⇒ Expression

:nodoc:



22
23
24
25
26
27
28
29
# File 'lib/gecoder/interface/constraints/int_enum/count.rb', line 22

def initialize(model, params)
  super
  unless params[:negate]
    @method_relations = Gecode::Constraints::Util::RELATION_TYPES
  else
    @method_relations = Gecode::Constraints::Util::NEGATED_RELATION_TYPES
  end
end