MutableClauseCollection
A ClauseCollection that mutates itself in place: add/addAll/retrieve/retrieveAll change and return this, instead of building a fresh collection. Preferred over the immutable ClauseCollection when clauses are inserted/removed very frequently and the cost of copying (or of the underlying RETE tree's deepCopy) would otherwise dominate.
Properties
Only the clauses in this collection that are Directives.
Computes the size of the ClauseCollection
The Unificator used to match clauses against each other in this collection.
Functions
Adds the given Clause to this MutableClauseCollection.
Adds all the given Clause to this MutableClauseCollection
Tells if, for each of the given elements, the ClauseCollection contains a unifying clause
Tells if the ClauseCollection contains any Clause
Tells if the ClauseCollection contains at least one Clause; the negation of isEmpty.
Iterates over all the clauses in this collection, in an order that depends on the concrete implementation (e.g. insertion order for a ClauseQueue, unspecified for a ClauseMultiSet).
Retrieves the first occurrence of the given Clause from this MutableClauseCollection as a RetrieveResult
Retrieves all the occurrences of the given Clause from this MutableClauseCollection as a RetrieveResult