Class: Gecode::Constraints::Bool::ExpressionNode
- Inherits:
-
Object
- Object
- Gecode::Constraints::Bool::ExpressionNode
- Includes:
- OperationMethods
- Defined in:
- lib/gecoder/interface/constraints/bool/boolean.rb
Overview
Describes a single node in a boolean expression.
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(value, model = nil) ⇒ ExpressionNode
constructor
A new instance of ExpressionNode.
-
#to_minimodel_lin_exp ⇒ Object
Converts the linear expression to an instance of Gecode::Raw::MiniModel::BoolExpr.
Methods included from LeftHandSideMethods
Constructor Details
#initialize(value, model = nil) ⇒ ExpressionNode
Returns a new instance of ExpressionNode.
145 146 147 148 |
# File 'lib/gecoder/interface/constraints/bool/boolean.rb', line 145 def initialize(value, model = nil) @value = value @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
143 144 145 |
# File 'lib/gecoder/interface/constraints/bool/boolean.rb', line 143 def model @model end |