Class: Wongi::Engine::FakeToken

Inherits:
Token
  • Object
show all
Defined in:
lib/wongi-engine/token.rb

Instance Attribute Summary

Attributes inherited from Token

#children, #generated_wmes, #ncc_results, #neg_join_results, #node, #opt_join_results, #owner, #parent, #wme

Instance Method Summary collapse

Methods inherited from Token

#[], #assignments, #delete, #delete_children, #subst, #to_s, #wmes

Methods included from CoreExt

included

Constructor Details

#initialize(token, wme, assignments) ⇒ FakeToken

Returns a new instance of FakeToken.



102
103
104
105
106
107
108
109
# File 'lib/wongi-engine/token.rb', line 102

def initialize token, wme, assignments
  @parent, @wme, @assignments = token, wme, assignments
  @children = []
  @neg_join_results = []
  @opt_join_results = []
  @ncc_results = []
  @generated_wmes = []
end