AbstractSolver

abstract class AbstractSolver<E : ExecutionContext>(    libraries: Libraries = Libraries.empty(),     flags: FlagStore = FlagStore.empty(),     initialStaticKb: <ERROR CLASS> = Theory.empty(),     initialDynamicKb: <ERROR CLASS> = MutableTheory.empty(),     inputChannels: InputStore = InputStore.fromStandard(),     outputChannels: OutputStore = OutputStore.fromStandard(),     trustKb: Boolean = false) : Solver

Constructors

Link copied to clipboard
fun AbstractSolver(    libraries: Libraries = Libraries.empty(),     flags: FlagStore = FlagStore.empty(),     initialStaticKb: <ERROR CLASS> = Theory.empty(),     initialDynamicKb: <ERROR CLASS> = MutableTheory.empty(),     inputChannels: InputStore = InputStore.fromStandard(),     outputChannels: OutputStore = OutputStore.fromStandard(),     trustKb: Boolean = false)

Functions

Link copied to clipboard
abstract override fun clone(): AbstractSolver<E>
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>): AbstractSolver<E>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun solve(goal: <ERROR CLASS>): Sequence<Solution>
override 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
open override fun toString(): String

Properties

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

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

Link copied to clipboard
override val flags: FlagStore

Enabled flags

Link copied to clipboard
override val inputChannels: InputStore

The currently open input channels

Link copied to clipboard
override val libraries: Libraries

Loaded libraries

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

Loaded operators

Link copied to clipboard
override 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
override 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