IndexedTheoryFactory
A TheoryFactory that produces Theory/MutableTheory instances backed by an indexed data structure (see it.unibo.tuprolog.collections.rete.custom.ReteTree): clauses are discriminated by directive-vs-rule, functor, arity and first-argument shape, so retrieval only re-checks the (typically small) subset of clauses that could actually unify with a goal, at the cost of extra bookkeeping on every insertion/removal. This is the right choice for knowledge bases that are built once (or rarely changed) and queried many times — e.g. a solver's static knowledge base.
See also
Types
The default IndexedTheoryFactory, using Unificator.default.
Functions
Returns a factory equivalent to this one, but using the given unificator as its default.
Creates an empty MutableTheory using the given unificator.
Creates an empty MutableTheory using this factory's unificator.
Creates an empty Theory using the given unificator.
Creates an empty Theory using this factory's unificator.
Creates a MutableTheory containing the given clauses, using the given unificator.
Creates a MutableTheory containing the given clauses, using this factory's unificator.
Creates a Theory containing the given clauses, using the given unificator.
Creates a Theory containing the given clauses, using this factory's unificator.