Unknown

The ISO Prolog unknown flag, controlling what happens when a goal's predicate does not exist in the current knowledge base/libraries at all: raise an it.unibo.tuprolog.solve.exception.error.ExistenceError (ERROR, the default), just report a it.unibo.tuprolog.solve.exception.warning.MissingPredicate warning (WARNING), or silently fail the goal (FAIL).

Properties

Link copied to clipboard
open override val admissibleValues: Sequence<Term>

Every legal value this flag may take.

Link copied to clipboard
open override val defaultValue: Term

The value this flag takes unless explicitly set otherwise.

Link copied to clipboard
Link copied to clipboard

Silently fail the goal for missing predicates.

Link copied to clipboard

Whether this flag's value can be changed at all (false for e.g. MaxArity).

Link copied to clipboard
open override val name: String

This flag's name, as it appears as the key in a FlagStore (e.g. "unknown", "double_quotes").

Link copied to clipboard

Warn (via it.unibo.tuprolog.solve.exception.warning.MissingPredicate) about missing predicates instead of raising an error.

Functions

Link copied to clipboard
open fun isAdmissibleValue(value: Term): Boolean

Whether value is one of admissibleValues.

Link copied to clipboard
open infix fun to(value: Term): Pair<String, Term>

This flag's name paired with value, ready to be inserted into a FlagStore.

Link copied to clipboard
open fun toPair(): Pair<String, Term>

This flag's name paired with its defaultValue, ready to be inserted into a FlagStore.