AddStaticClauses

data class AddStaticClauses(val clauses: Iterable<Clause>, val onTop: Boolean = false) : SideEffect.AddClausesToKb

Adds clauses to the static knowledge base, at the front if onTop, at the back otherwise.

Constructors

Link copied to clipboard
constructor(clauses: Iterable<Clause>, onTop: Boolean = false)
constructor(vararg clauses: Clause, onTop: Boolean = false)
constructor(clauses: Sequence<Clause>, onTop: Boolean = false)

Properties

Link copied to clipboard
open override val clauses: Iterable<Clause>
Link copied to clipboard
open override val onTop: Boolean

Functions

Link copied to clipboard
open override fun applyTo(context: ExecutionContext): ExecutionContext

Produces the ExecutionContext resulting from applying this side effect to context.

Link copied to clipboard

clauses as a MutableTheory, converting it if necessary.

Link copied to clipboard

clauses as a Theory, reusing it as-is if it already is one.