Class: Gecode::SetEnum::Channel::IntEnumChannelConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Gecode::SetEnum::Channel::IntEnumChannelConstraint
- Defined in:
- lib/gecoder/interface/constraints/set_enum/channel.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#post ⇒ Object
:nodoc:.
Methods inherited from Constraint
Constructor Details
This class inherits a constructor from Gecode::Constraint
Instance Method Details
#post ⇒ Object
:nodoc:
38 39 40 41 42 |
# File 'lib/gecoder/interface/constraints/set_enum/channel.rb', line 38 def post lhs, rhs = @params.values_at(:lhs, :rhs) Gecode::Raw::channel(@model.active_space, rhs.to_int_enum.bind_array, lhs.to_set_enum.bind_array) end |