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
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
521 522 523 524 525 |
# File 'lib/core/nodes.rb', line 521 def propagate_assert(context) @out_nodes.each do |out_node| out_node.assert_right(context) end end |
#propagate_retract(fact) ⇒ Object
527 528 529 530 531 |
# File 'lib/core/nodes.rb', line 527 def propagate_retract(fact) @out_nodes.each do |out_node| out_node.retract_right(fact) end end |