ReteTree

interface ReteTree

Types

Companion
Link copied to clipboard
object Companion

Functions

assertA
Link copied to clipboard
abstract fun assertA(clause: Clause)
Tries to insert the given Clause as the first occurrence of its own family
assertZ
Link copied to clipboard
abstract fun assertZ(clause: Clause)
Insert the given Clause as the first occurrence of its own family
contains
Link copied to clipboard
open operator fun contains(clause: Clause): Boolean
Tells if the given Clause is stored in this ReteTree
deepCopy
Link copied to clipboard
abstract fun deepCopy(): ReteTree
Produces a fully instantiated complete copy of this ReteTree
get
Link copied to clipboard
abstract fun get(clause: Clause): Sequence<Clause>
Reads all the clauses matching the given Clause
retractAll
Link copied to clipboard
abstract fun retractAll(clause: Clause): Sequence<Clause>
Retracts all the matching clauses from this ReteTree
retractFirst
Link copied to clipboard
abstract fun retractFirst(clause: Clause): Sequence<Clause>
Retract the first occurrence of the given Clause from this ReteTree.
retractOnly
Link copied to clipboard
abstract fun retractOnly(clause: Clause, limit: Int): Sequence<Clause>
Retracts only the given number of matching clauses from this ReteTree

Properties

clauses
Link copied to clipboard
abstract val clauses: Sequence<Clause>
Returns all the Clause this ReteTree is storing
isOrdered
Link copied to clipboard
abstract val isOrdered: Boolean
Checks if the values this ReteTree produces are to be considered as order-sensitive
size
Link copied to clipboard
open val size: Int
Returns the number of Clause stored in this tree