Class: Ruleby::Core::LeftAdapterNode

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

#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



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