ClauseQueue
A ClauseCollection that preserves insertion order and exposes it through addFirst/addLast and FIFO/LIFO-ordered retrieval (getFifoOrdered/getLifoOrdered). This is the shape Theory uses to store its clauses, since Prolog's SLD resolution requires clauses to be tried in the order they were asserted; the ordering is what the isOrdered flag of the underlying it.unibo.tuprolog.collections.rete.custom.ReteTree controls.
See also
Inheritors
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
Gives a freshly produced ClauseQueue including the given Clause and the content of this one. Analogous to addFirst
Gives a freshly produced ClauseQueue including all the given Clause and the content of this one
Gives a freshly produced ClauseQueue including the given Clause in the first position and the content of this one
Gives a freshly produced ClauseQueue including the given Clause in the last position and the content of this one
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).
Retrieve the first Clause unifying the given one. Analogous to retrieveFirst
Retrieve all the Clause unifying the given one
Retrieve the first Clause unifying the given one, searching from the first position