Class: Gecode::BoolEnum::Channel::ChannelConstraint

Inherits:
Constraint
  • Object
show all
Defined in:
lib/gecoder/interface/constraints/bool_enum/channel.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Constraint

#initialize

Constructor Details

This class inherits a constructor from Gecode::Constraint

Instance Method Details

#postObject

: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, *propagation_options)
end