/// <summary> implementation uses the deftemplate for the HashMap key and the
 /// node for the value. If the node already exists in the HashMap,
 /// or the key already exists, the compiler will not Add it to the
 /// network.
 /// </summary>
 public virtual void addObjectTypeNode(ObjectTypeNode node)
 {
     if (!inputnodes.ContainsKey(node.Deftemplate))
     {
         inputnodes.Put(node.Deftemplate, node);
     }
     // if it is the objectTypeNode for InitialFact, we go ahead and create
     // the Left Input Adapter node for it
     if (node.Deftemplate is InitialFact)
     {
         try
         {
             IFLIANode lian = new IFLIANode(engine.nextNodeId());
             node.addSuccessorNode(lian, engine, engine.workingMem);
         }
         catch (AssertException e)
         {
         }
     }
 }
Example #2
0
 /// <summary> implementation uses the deftemplate for the HashMap key and the
 /// node for the value. If the node already exists in the HashMap,
 /// or the key already exists, the compiler will not Add it to the
 /// network.
 /// </summary>
 public virtual void addObjectTypeNode(ObjectTypeNode node)
 {
     if (!inputnodes.ContainsKey(node.Deftemplate))
     {
         inputnodes.Put(node.Deftemplate, node);
     }
     // if it is the objectTypeNode for InitialFact, we go ahead and create
     // the Left Input Adapter node for it
     if (node.Deftemplate is InitialFact)
     {
         try
         {
             IFLIANode lian = new IFLIANode(engine.nextNodeId());
             node.addSuccessorNode(lian, engine, engine.workingMem);
         }
         catch (AssertException e)
         {
         }
     }
 }