Ejemplo n.º 1
0
        public virtual void assertFact(IFact fact)
        {
            Deffact f = (Deffact)fact;

            if (!containsFact(f))
            {
                deffactMap.Put(fact.equalityIndex(), f);
                f.setFactId = engine;
                if (profileAssert_Renamed_Field)
                {
                    assertFactWProfile(f);
                }
                else
                {
                    if (watchFact_Renamed_Field)
                    {
                        engine.writeMessage("==> " + fact.toFactString() + Constants.LINEBREAK, "t");
                    }
                    root.assertObject(f, engine, this);
                }
            }
            else
            {
                f.resetID((Deffact)deffactMap.Get(fact.equalityIndex()));
            }
        }
Ejemplo n.º 2
0
 public virtual void assertFact(IFact fact)
 {
     Deffact f = (Deffact) fact;
     if (!containsFact(f))
     {
         deffactMap.Put(fact.equalityIndex(), f);
         f.setFactId = engine;
         if (profileAssert_Renamed_Field)
         {
             assertFactWProfile(f);
         }
         else
         {
             if (watchFact_Renamed_Field)
             {
                 engine.writeMessage("==> " + fact.toFactString() + Constants.LINEBREAK, "t");
             }
             root.assertObject(f, engine, this);
         }
     }
     else
     {
         f.resetID((Deffact) deffactMap.Get(fact.equalityIndex()));
     }
 }