Class: Gecode::Int::Channel::ChannelConstraint
- Inherits:
-
Constraint
- Object
- Constraint
- Gecode::Int::Channel::ChannelConstraint
- Defined in:
- lib/gecoder/interface/constraints/int/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:
44 45 46 47 48 |
# File 'lib/gecoder/interface/constraints/int/channel.rb', line 44 def post lhs, rhs = @params.values_at(:lhs, :rhs) Gecode::Raw::channel(@model.active_space, lhs.to_int_var.bind, rhs.to_bool_var.bind, *) end |