Class: Ruleby::Core::LeftAdapterNode
- Inherits:
-
ParentNode
- Object
- Printable
- Node
- ParentNode
- Ruleby::Core::LeftAdapterNode
- Defined in:
- lib/core/nodes.rb
Overview
This class is used to plug nodes into the left input of a two-input JoinNode
Instance Attribute Summary
Attributes inherited from ParentNode
Attributes inherited from Printable
Instance Method Summary collapse
Methods inherited from ParentNode
#add_out_node, #assert, #forks?, #initialize, #retract
Methods inherited from Node
Methods inherited from Printable
Constructor Details
This class inherits a constructor from Ruleby::Core::ParentNode
Instance Method Details
#propagate_assert(context) ⇒ Object
505 506 507 508 509 |
# File 'lib/core/nodes.rb', line 505 def propagate_assert(context) @out_nodes.each do |out_node| out_node.assert_left(context) end end |
#propagate_retract(fact) ⇒ Object
511 512 513 514 515 |
# File 'lib/core/nodes.rb', line 511 def propagate_retract(fact) @out_nodes.each do |out_node| out_node.retract_left(fact) end end |