Theory

interface Theory : Iterable<<ERROR CLASS>>

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun abolish(indicator: <ERROR CLASS>): Theory
Link copied to clipboard
abstract fun assertA(clause: <ERROR CLASS>): Theory
open fun assertA(struct: <ERROR CLASS>): Theory

Adds given clause before all other clauses in this theory

abstract fun assertA(clauses: Iterable<<ERROR CLASS>>): Theory
abstract fun assertA(clauses: Sequence<<ERROR CLASS>>): Theory

Adds the given clauses before all other clauses in this theory

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

Adds given clause after all other clauses in this theory

abstract fun assertZ(clauses: Iterable<<ERROR CLASS>>): Theory
abstract fun assertZ(clauses: Sequence<<ERROR CLASS>>): Theory

Adds the given clauses after all other clauses in this theory

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

Checks if given clause is contained in this theory

abstract operator fun contains(indicator: <ERROR CLASS>): Boolean

Checks if clauses exists in this theory having the specified Indicator as head; this should be Indicator.isWellFormed

abstract operator fun contains(head: <ERROR CLASS>): Boolean

Checks if given clause is present in this theory

Link copied to clipboard
abstract fun equals(other: Theory, useVarCompleteName: Boolean): Boolean
Link copied to clipboard
abstract operator fun get(clause: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Retrieves matching clauses from this theory

abstract operator fun get(indicator: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Retrieves all rules in this theory having the specified Indicator as head; this should be Indicator.isWellFormed

abstract operator fun get(head: <ERROR CLASS>): Sequence<<ERROR CLASS>>

Retrieves matching rules from this theory

Link copied to clipboard
abstract operator fun iterator(): Iterator<<ERROR CLASS>>
Link copied to clipboard
open operator fun plus(clause: <ERROR CLASS>): Theory

Adds given Clause to this Theory

abstract operator fun plus(theory: Theory): Theory

Adds given Theory to this

Link copied to clipboard
abstract fun retract(clause: <ERROR CLASS>): RetractResult<Theory>
open fun retract(head: <ERROR CLASS>): RetractResult<Theory>

Tries to delete a matching clause from this theory

abstract fun retract(clauses: Iterable<<ERROR CLASS>>): RetractResult<Theory>
abstract fun retract(clauses: Sequence<<ERROR CLASS>>): RetractResult<Theory>

Tries to delete the matching clauses from this theory

Link copied to clipboard
abstract fun retractAll(clause: <ERROR CLASS>): RetractResult<Theory>
open fun retractAll(head: <ERROR CLASS>): RetractResult<Theory>

Tries to delete all matching clauses from this theory

Link copied to clipboard
abstract fun toImmutableTheory(): Theory
Link copied to clipboard
abstract fun toMutableTheory(): MutableTheory
Link copied to clipboard
abstract fun toString(asPrologText: Boolean): String

An enhanced toString that prints the theory in a Prolog program format, if asPrologText is true

Properties

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

All Clauses in this theory

Link copied to clipboard
open val directives: Iterable<<ERROR CLASS>>

Only clauses that are Directives

Link copied to clipboard
open val isMutable: Boolean
Link copied to clipboard
open val rules: Iterable<<ERROR CLASS>>

Only clauses that are Rules

Link copied to clipboard
abstract val size: Long

The amount of clauses in this Theory

Inheritors

Link copied to clipboard