Class: Gecode::BoolEnum::Channel::ChannelConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Gecode::BoolEnum::Channel::ChannelConstraint
- Defined in:
- lib/gecoder/interface/constraints/bool_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:
60 61 62 63 64 65 |
# File 'lib/gecoder/interface/constraints/bool_enum/channel.rb', line 60 def post lhs, rhs, offset = @params.values_at(:lhs, :rhs, :offset) Gecode::Raw::channel(@model.active_space, lhs.to_bool_enum.bind_array, rhs.to_int_var.bind, offset, *) end |