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, #sorted

Constructor Details

#initialize(model, params) ⇒ Expression

Returns a new instance of Expression.



37
38
39
40
41
42
43
44
# File 'lib/gecoder/interface/constraints/int_enum/count.rb', line 37

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