Class: Gecode::Set::Channel::ChannelConstraint

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



44
45
46
47
48
# File 'lib/gecoder/interface/constraints/set/channel.rb', line 44

def post
  lhs, rhs = @params.values_at(:lhs, :rhs)
  Gecode::Raw::channel(@model.active_space, rhs.to_bool_enum.bind_array, 
    lhs.to_set_var.bind)
end