Class: Gecode::IntEnum::Channel::ChannelConstraint

Inherits:
Constraint
  • Object
show all
Defined in:
lib/gecoder/interface/constraints/int_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:



79
80
81
82
83
# File 'lib/gecoder/interface/constraints/int_enum/channel.rb', line 79

def post
  lhs, rhs = @params.values_at(:lhs, :rhs)
  Gecode::Raw::channel(@model.active_space, lhs.to_int_enum.bind_array,
    rhs.to_int_enum.bind_array, *propagation_options)
end