ExecutionContext

interface ExecutionContext : ExecutionContextAware

An interface representing the Solver execution context, containing important information that determines its behaviour

Functions

Link copied to clipboard
open fun apply(sideEffect: SideEffect): ExecutionContext
open fun apply(sideEffects: Iterable<SideEffect>): ExecutionContext
open fun apply(sideEffects: Sequence<SideEffect>): ExecutionContext
Link copied to clipboard
abstract fun createMutableSolver(    libraries: Libraries = this.libraries,     flags: FlagStore = this.flags,     staticKb: <ERROR CLASS> = this.staticKb,     dynamicKb: <ERROR CLASS> = this.dynamicKb,     inputChannels: InputStore = this.inputChannels,     outputChannels: OutputStore = this.outputChannels): MutableSolver
Link copied to clipboard
abstract fun createSolver(    libraries: Libraries = this.libraries,     flags: FlagStore = this.flags,     staticKb: <ERROR CLASS> = this.staticKb,     dynamicKb: <ERROR CLASS> = this.dynamicKb,     inputChannels: InputStore = this.inputChannels,     outputChannels: OutputStore = this.outputChannels): Solver
Link copied to clipboard
abstract fun update(    libraries: Libraries = this.libraries,     flags: FlagStore = this.flags,     staticKb: <ERROR CLASS> = this.staticKb,     dynamicKb: <ERROR CLASS> = this.dynamicKb,     operators: <ERROR CLASS> = this.operators,     inputChannels: InputStore = this.inputChannels,     outputChannels: OutputStore = this.outputChannels,     customData: CustomDataStore = this.customData): ExecutionContext

Properties

Link copied to clipboard
abstract val customData: CustomDataStore
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 logicStackTrace: List<<ERROR CLASS>>

The Prolog call stacktrace till this ExecutionContext

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
abstract val procedure: <ERROR CLASS>?

The current procedure being executed

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
abstract val substitution: <ERROR CLASS>

The set of current substitution till this context

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

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