MutableSolver

interface MutableSolver : Solver

General type for mutable logic Solvers. MutableSolvers differ from Solvers in that they expose public methods for letting clients affect the state of the solver -- e.g. affecting the KB -- while no resolution process is ongoing.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun appendDynamicKb(theory: <ERROR CLASS>)
Link copied to clipboard
abstract fun appendStaticKb(theory: <ERROR CLASS>)
Link copied to clipboard
abstract fun assertA(clause: <ERROR CLASS>)
abstract fun assertA(fact: <ERROR CLASS>)
Link copied to clipboard
abstract fun assertZ(clause: <ERROR CLASS>)
abstract fun assertZ(fact: <ERROR CLASS>)
Link copied to clipboard
abstract override fun clone(): MutableSolver
Link copied to clipboard
abstract override fun copy(    libraries: Libraries,     flags: FlagStore,     staticKb: <ERROR CLASS>,     dynamicKb: <ERROR CLASS>,     stdIn: InputChannel<String>,     stdOut: OutputChannel<String>,     stdErr: OutputChannel<String>,     warnings: OutputChannel<Warning>): MutableSolver
Link copied to clipboard
open fun loadDynamicClauses(vararg clauses: <ERROR CLASS>)
open fun loadDynamicClauses(clauses: Iterable<<ERROR CLASS>>)
open fun loadDynamicClauses(clauses: Sequence<<ERROR CLASS>>)
Link copied to clipboard
abstract fun loadDynamicKb(theory: <ERROR CLASS>)
Link copied to clipboard
abstract fun loadLibrary(library: AliasedLibrary)
Link copied to clipboard
open fun loadStaticClauses(vararg clauses: <ERROR CLASS>)
open fun loadStaticClauses(clauses: Iterable<<ERROR CLASS>>)
open fun loadStaticClauses(clauses: Sequence<<ERROR CLASS>>)
Link copied to clipboard
abstract fun loadStaticKb(theory: <ERROR CLASS>)
Link copied to clipboard
abstract fun resetDynamicKb()
Link copied to clipboard
abstract fun resetStaticKb()
Link copied to clipboard
abstract fun retract(clause: <ERROR CLASS>): <ERROR CLASS><<ERROR CLASS>>
abstract fun retract(fact: <ERROR CLASS>): <ERROR CLASS><<ERROR CLASS>>
Link copied to clipboard
abstract fun retractAll(clause: <ERROR CLASS>): <ERROR CLASS><<ERROR CLASS>>
abstract fun retractAll(fact: <ERROR CLASS>): <ERROR CLASS><<ERROR CLASS>>
Link copied to clipboard
abstract fun setFlag(flag: NotableFlag)
abstract fun setFlag(flag: Pair<String, <ERROR CLASS>>)
abstract fun setFlag(name: String, value: <ERROR CLASS>)
Link copied to clipboard
abstract fun setLibraries(libraries: Libraries)
Link copied to clipboard
abstract fun setStandardError(stdErr: OutputChannel<String>)
Link copied to clipboard
abstract fun setStandardInput(stdIn: InputChannel<String>)
Link copied to clipboard
abstract fun setStandardOutput(stdOut: OutputChannel<String>)
Link copied to clipboard
abstract fun setWarnings(warnings: OutputChannel<Warning>)
Link copied to clipboard
open fun solve(goal: <ERROR CLASS>): Sequence<Solution>
abstract fun solve(goal: <ERROR CLASS>, options: SolveOptions): Sequence<Solution>
open fun solve(goal: <ERROR CLASS>, timeout: TimeDuration): Sequence<Solution>
Link copied to clipboard
open fun solveList(goal: <ERROR CLASS>): List<Solution>
open fun solveList(goal: <ERROR CLASS>, options: SolveOptions): List<Solution>
open fun solveList(goal: <ERROR CLASS>, timeout: TimeDuration): List<Solution>
Link copied to clipboard
open fun solveOnce(goal: <ERROR CLASS>): Solution
open fun solveOnce(goal: <ERROR CLASS>, options: SolveOptions): Solution
open fun solveOnce(goal: <ERROR CLASS>, timeout: TimeDuration): Solution
Link copied to clipboard
abstract fun unloadLibrary(library: AliasedLibrary)

Properties

Link copied to clipboard
abstract val dynamicKb: <ERROR CLASS>

Dynamic Knowledge-base, that is a KB that can change executing goals

Link copied to clipboard
abstract val flags: FlagStore

Enabled flags

Link copied to clipboard
abstract val inputChannels: InputStore

The currently open input channels

Link copied to clipboard
abstract val libraries: Libraries

Loaded libraries

Link copied to clipboard
abstract val operators: <ERROR CLASS>

Loaded operators

Link copied to clipboard
abstract val outputChannels: OutputStore

The currently open output channels

Link copied to clipboard
open val standardError: OutputChannel<String>

Shortcut for the standard error channel defined in outputChannels. Returns null if the channel is closed

Link copied to clipboard
open val standardInput: InputChannel<String>

Shortcut for the standard input channel defined in inputChannels. Returns null if the channel is closed

Link copied to clipboard
open val standardOutput: OutputChannel<String>

Shortcut for the standard output channel defined in outputChannels. Returns null if the channel is closed

Link copied to clipboard
abstract val staticKb: <ERROR CLASS>

Static Knowledge-base, that is a KB that can't change executing goals

Link copied to clipboard
open val warnings: OutputChannel<Warning>

Shortcut for the warnings channel defined in outputChannels. Returns null if the channel is closed