Class: Ruleby::Core::RightAdapterNode
- Inherits:
-
ParentNode
- Object
- Printable
- Node
- ParentNode
- Ruleby::Core::RightAdapterNode
- Defined in:
- lib/core/nodes.rb
Overview
This class is used to plug nodes into the right input of a two-input JoinNode
Instance Attribute Summary
Attributes inherited from ParentNode
Attributes inherited from Printable
Instance Method Summary collapse
- #propagate_assert(context) ⇒ Object
- #propagate_retract(fact) ⇒ Object
- #retract_resolve(match) ⇒ Object
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
527 528 529 530 531 |
# File 'lib/core/nodes.rb', line 527 def propagate_assert(context) @out_nodes.each do |out_node| out_node.assert_right(context) end end |
#propagate_retract(fact) ⇒ Object
533 534 535 536 537 |
# File 'lib/core/nodes.rb', line 533 def propagate_retract(fact) @out_nodes.each do |out_node| out_node.retract_right(fact) end end |
#retract_resolve(match) ⇒ Object
539 540 541 542 543 |
# File 'lib/core/nodes.rb', line 539 def retract_resolve(match) @out_nodes.each do |o| o.retract_resolve(match) end end |