MutableTheory

interface MutableTheory : Theory

Types

Companion
Link copied to clipboard
object Companion

Functions

abolish
Link copied to clipboard
abstract override fun abolish(indicator: Indicator): MutableTheory
assertA
Link copied to clipboard
abstract override fun assertA(clause: Clause): MutableTheory
Adds given clause before all other clauses in this theory
open override fun assertA(struct: Struct): MutableTheory
Adds given clause before all other clauses in this theory
abstract override fun assertA(clauses: Iterable<Clause>): MutableTheory
Adds the given clauses before all other clauses in this theory
abstract override fun assertA(clauses: Sequence<Clause>): MutableTheory
Adds the given clauses before all other clauses in this theory
assertZ
Link copied to clipboard
abstract override fun assertZ(clause: Clause): MutableTheory
Adds given clause after all other clauses in this theory
open override fun assertZ(struct: Struct): MutableTheory
Adds given clause after all other clauses in this theory
abstract override fun assertZ(clauses: Iterable<Clause>): MutableTheory
Adds the given clauses after all other clauses in this theory
abstract override fun assertZ(clauses: Sequence<Clause>): MutableTheory
Adds the given clauses after all other clauses in this theory
clone
Link copied to clipboard
abstract override fun clone(): MutableTheory
contains
Link copied to clipboard
abstract operator fun contains(clause: Clause): Boolean
Checks if given clause is contained in this theory
abstract operator fun contains(indicator: Indicator): Boolean
Checks if clauses exists in this theory having the specified Indicator as head; this should be well-formed
abstract operator fun contains(head: Struct): Boolean
Checks if given clause is present in this theory
containsTag
Link copied to clipboard
open fun containsTag(name: String): Boolean
equals
Link copied to clipboard
abstract fun equals(other: Theory, useVarCompleteName: Boolean): Boolean
get
Link copied to clipboard
abstract operator fun get(clause: Clause): Sequence<Clause>
Retrieves matching clauses from this theory
abstract operator fun get(indicator: Indicator): Sequence<Rule>
Retrieves all rules in this theory having the specified Indicator as head; this should be well-formed
abstract operator fun get(head: Struct): Sequence<Rule>
Retrieves matching rules from this theory
getTag
Link copied to clipboard
open fun <T : Any> getTag(name: String): T?
iterator
Link copied to clipboard
abstract operator fun iterator(): Iterator<Clause>
plus
Link copied to clipboard
open operator override fun plus(clause: Clause): MutableTheory
Adds given Clause to this Theory
abstract operator override fun plus(theory: Theory): MutableTheory
Adds given Theory to this
replaceTags
Link copied to clipboard
abstract override fun replaceTags(tags: Map<String, Any>): MutableTheory
retract
Link copied to clipboard
abstract override fun retract(clause: Clause): RetractResult<MutableTheory>
Tries to delete a matching clause from this theory
open override fun retract(head: Struct): RetractResult<MutableTheory>
Tries to delete a matching clause from this theory
abstract override fun retract(clauses: Iterable<Clause>): RetractResult<MutableTheory>
Tries to delete the matching clauses from this theory
abstract override fun retract(clauses: Sequence<Clause>): RetractResult<MutableTheory>
Tries to delete the matching clauses from this theory
retractAll
Link copied to clipboard
abstract override fun retractAll(clause: Clause): RetractResult<MutableTheory>
Tries to delete all matching clauses from this theory
open override fun retractAll(head: Struct): RetractResult<MutableTheory>
Tries to delete all matching clauses from this theory
toImmutableTheory
Link copied to clipboard
abstract fun toImmutableTheory(): Theory
toMutableTheory
Link copied to clipboard
open override fun toMutableTheory(): MutableTheory
toString
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

clauses
Link copied to clipboard
abstract val clauses: Iterable<Clause>
All Clauses in this theory
directives
Link copied to clipboard
open val directives: Iterable<Directive>
Only clauses that are Directives
isMutable
Link copied to clipboard
open override val isMutable: Boolean
rules
Link copied to clipboard
open val rules: Iterable<Rule>
Only clauses that are Rules
size
Link copied to clipboard
abstract val size: Long
The amount of clauses in this Theory
tags
Link copied to clipboard
abstract val tags: Map<String, Any>