Beispiel #1
0
        private IMatchedFactStorage GetMatchingFactStorageTable(Atom atom)
        {
            IMatchedFactStorage mfs = (IMatchedFactStorage)matchedFactStorageTable[atom.Signature];

            if (mfs == null)
            {
                if (IEImpl.FactBaseStorageType == FactBaseStorageTypes.DataTable)
                {
                    mfs = new DataTableMatchedFactStorage(atom);
                }
                else
                {
                    mfs = new HashtableMatchedFactStorage(atom);
                }

                matchedFactStorageTable.Add(atom.Signature, mfs);
            }

            return(mfs);
        }
Beispiel #2
0
        private IMatchedFactStorage GetMatchingFactStorageTable(Atom atom)
        {
            IMatchedFactStorage mfs = (IMatchedFactStorage)matchedFactStorageTable[atom.Signature];

            if (mfs == null) {
                if (IEImpl.FactBaseStorageType == FactBaseStorageTypes.DataTable) mfs = new DataTableMatchedFactStorage(atom);
                else mfs = new HashtableMatchedFactStorage(atom);

                matchedFactStorageTable.Add(atom.Signature, mfs);
            }

            return mfs;
        }