Class: Gecode::Constraints::Int::Domain::RangeDomainConstraint
- Inherits:
-
ReifiableConstraint
- Object
- Constraint
- ReifiableConstraint
- Gecode::Constraints::Int::Domain::RangeDomainConstraint
- Defined in:
- lib/gecoder/interface/constraints/int/domain.rb
Overview
Describes a range domain constraint.
Instance Method Summary collapse
Methods inherited from ReifiableConstraint
#&, #reification_var, #reification_var=, #|
Methods inherited from Constraint
Constructor Details
This class inherits a constructor from Gecode::Constraints::Constraint
Instance Method Details
#post ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/gecoder/interface/constraints/int/domain.rb', line 20 def post var, domain, reif_var, strength = @params.values_at(:lhs, :domain, :reif, :strength) (params = []) << var.bind params << domain.first << domain.last params << reif_var.bind if reif_var.respond_to? :bind params << strength Gecode::Raw::dom(@model.active_space, *params) end |