MutableTheory

interface MutableTheory : Theory

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract override fun abolish(indicator: <ERROR CLASS>): MutableTheory
Link copied to clipboard
abstract override fun assertA(clause: <ERROR CLASS>): MutableTheory
open override fun assertA(struct: <ERROR CLASS>): MutableTheory
abstract override fun assertA(clauses: Iterable<<ERROR CLASS>>): MutableTheory
abstract override fun assertA(clauses: Sequence<<ERROR CLASS>>): MutableTheory

Adds given clause before all other clauses in this theory

Link copied to clipboard
abstract override fun assertZ(clause: <ERROR CLASS>): MutableTheory
open override fun assertZ(struct: <ERROR CLASS>): MutableTheory
abstract override fun assertZ(clauses: Iterable<<ERROR CLASS>>): MutableTheory
abstract override fun assertZ(clauses: Sequence<<ERROR CLASS>>): MutableTheory

Adds given clause after all other clauses in this theory

Link copied to clipboard
abstract override fun clone(): MutableTheory
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 override fun plus(clause: <ERROR CLASS>): MutableTheory
abstract operator override fun plus(theory: Theory): MutableTheory

Adds given Theory to this

Link copied to clipboard
abstract fun replaceTags(tags: Map<String, Any>): MutableTheory
Link copied to clipboard
abstract override fun retract(clause: <ERROR CLASS>): RetractResult<MutableTheory>
open override fun retract(head: <ERROR CLASS>): RetractResult<MutableTheory>
abstract override fun retract(clauses: Iterable<<ERROR CLASS>>): RetractResult<MutableTheory>
abstract override fun retract(clauses: Sequence<<ERROR CLASS>>): RetractResult<MutableTheory>

Tries to delete a matching clause from this theory

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

Tries to delete all matching clauses from this theory

Link copied to clipboard
abstract fun toImmutableTheory(): Theory
Link copied to clipboard
open override 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 override 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