ReteTree

interface ReteTree

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun assertA(clause: <ERROR CLASS>)

Tries to insert the given Clause as the first occurrence of its own family

Link copied to clipboard
abstract fun assertZ(clause: <ERROR CLASS>)

Insert the given Clause as the first occurrence of its own family

Link copied to clipboard
open operator fun contains(clause: <ERROR CLASS>): Boolean

Tells if the given Clause is stored in this ReteTree

Link copied to clipboard
abstract fun deepCopy(): ReteTree

Produces a fully instantiated complete copy of this ReteTree

Link copied to clipboard
abstract fun get(clause: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Reads all the clauses matching the given Clause

Link copied to clipboard
abstract fun retractAll(clause: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Retracts all the matching clauses from this ReteTree

Link copied to clipboard
abstract fun retractFirst(clause: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Retract the first occurrence of the given Clause from this ReteTree. The meaning of "first" may vary between implementations

Link copied to clipboard
abstract fun retractOnly(clause: <ERROR CLASS>, limit: Int): Sequence<<ERROR CLASS>>

Retracts only the given number of matching clauses from this ReteTree

Properties

Link copied to clipboard
abstract val clauses: Sequence<<ERROR CLASS>>

Returns all the Clause this ReteTree is storing

Link copied to clipboard
abstract val isOrdered: Boolean

Checks if the values this ReteTree produces are to be considered as order-sensitive

Link copied to clipboard
open val size: Int

Returns the number of Clause stored in this tree