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, #initialize, #propagate, #propagate_modify, #retract

Methods inherited from Node

#initialize, #resolve

Methods inherited from Printable

#initialize, #print

Constructor Details

This class inherits a constructor from Ruleby::Core::ParentNode

Instance Method Details

#modify(context) ⇒ Object



681
682
683
# File 'lib/core/nodes.rb', line 681

def modify(context)
  propagate(:modify_left, context)
end

#propagate_assert(context) ⇒ Object



669
670
671
# File 'lib/core/nodes.rb', line 669

def propagate_assert(context)
  propagate(:assert_left, context)
end

#propagate_retract(fact) ⇒ Object



673
674
675
# File 'lib/core/nodes.rb', line 673

def propagate_retract(fact)
  propagate(:retract_left, fact)
end

#retract_resolve(match) ⇒ Object



677
678
679
# File 'lib/core/nodes.rb', line 677

def retract_resolve(match)
  propagate(:retract_resolve, match)
end