Class: Ruleby::Core::RightAdapterNode

Inherits:
ParentNode show all
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

#child_nodes

Attributes inherited from Printable

#parent_nodes

Instance Method Summary collapse

Methods inherited from ParentNode

#add_out_node, #assert, #forks?, #initialize, #retract

Methods inherited from Node

#resolve

Methods inherited from Printable

#initialize, #print

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