GroundQueriesHaveBooleanSolution

An implementation-specific flag controlling how a yes solution to a ground query (e.g. 2 is 1 + 1, with no variables at all) is presented to the user by a SolutionFormatter/UI. Defaults to OFF (unaffected, standard behaviour: the solved query is still shown, e.g. yes: 2 is 1 + 1); set to ON to present it simply as yes., since the solved-query term would equal the query verbatim and carries no extra information.

This only affects presentation -- the underlying it.unibo.tuprolog.solve.Solution is unchanged either way.

Properties

Link copied to clipboard

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
open override val help: String

Markdown documentation exposed through help(flag(Name), Help).

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

A ground query's yes solution is presented with its solved query, as usual.

Link copied to clipboard

A ground query's yes solution is presented simply as yes..

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.