interface ReteTree: Any
Fields
Methods
get
abstract fun get(clause: Clause): Sequence
Parameters
Name | Description |
---|---|
clause: Clause
|
ReturnValue
Name | Description |
---|---|
Sequence
|
contains
open operator fun contains(clause: Clause): Boolean
Parameters
Name | Description |
---|---|
clause: Clause
|
ReturnValue
Name | Description |
---|---|
Boolean
|
assertA
abstract fun assertA(clause: Clause)
Tries to insert the given Clause as the first occurrence of its own family
Parameters
Name | Description |
---|---|
clause: Clause
|
ReturnValue
Name | Description |
---|---|
Unit
|
assertZ
abstract fun assertZ(clause: Clause)
Insert the given Clause as the first occurrence of its own family
Parameters
Name | Description |
---|---|
clause: Clause
|
ReturnValue
Name | Description |
---|---|
Unit
|
retractFirst
abstract fun retractFirst(clause: Clause): Sequence
Retract the first occurrence of the given Clause from this ReteTree. The meaning of "first" may vary between implementations
Parameters
Name | Description |
---|---|
clause: Clause
|
ReturnValue
Name | Description |
---|---|
Sequence
|
retractOnly
abstract fun retractOnly(clause: Clause, limit: Int): Sequence
Retracts only the given number of matching clauses from this ReteTree
Parameters
Name | Description |
---|---|
clause: Clause
|
|
limit: Int
|
ReturnValue
Name | Description |
---|---|
Sequence
|
CompanionObject
ReteTree
interface ReteTree: Any
Methods
emptyUnordered
fun emptyUnordered(): ReteTree
Creates an empty unordered ReteTree
ReturnValue
Name | Description |
---|---|
ReteTree
|
unordered
fun unordered(clauses: Iterable<Clause>): ReteTree
Creates an unordered ReteTree based on the given Iterable
Parameters
Name | Description |
---|---|
clauses: Iterable<Clause>
|
ReturnValue
Name | Description |
---|---|
ReteTree
|
unordered
fun unordered(vararg clauses: Clause): ReteTree
Creates an unordered ReteTree based on the given vararg
Parameters
Name | Description |
---|---|
vararg clauses: Clause
|
ReturnValue
Name | Description |
---|---|
ReteTree
|
emptyOrdered
fun emptyOrdered(): ReteTree
Creates an empty ordered ReteTree
ReturnValue
Name | Description |
---|---|
ReteTree
|
Reads all the clauses matching the given Clause