Class: Gecode::Constraints::Set::CompositeExpression

Inherits:
CompositeExpression show all
Defined in:
lib/gecoder/interface/constraints/set_var_constraints.rb

Overview

A composite expression which is an set expression with a left hand side resulting from a previous constraint.

Instance Method Summary collapse

Methods inherited from CompositeExpression

#==, #method_missing

Constructor Details

#initialize(model, params, &block) ⇒ CompositeExpression

The block given should take three parameters. The first is the variable that should be the left hand side, if it’s nil then a new one should be created. The second is the has of parameters. The block should return the variable used as left hand side.



40
41
42
43
# File 'lib/gecoder/interface/constraints/set_var_constraints.rb', line 40

def initialize(model, params, &block)
  super(Expression, Gecode::FreeSetVar, lambda{ model.set_var }, model,
    params, &block)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gecode::Constraints::CompositeExpression