Success

data class Success<T : Theory>(val theory: T, val clauses: Iterable<Clause>) : RetractResult<T>

A successful "retract" operation result, carrying the new theory and removed clauses

Constructors

Link copied to clipboard
constructor(theory: T, clauses: Iterable<Clause>)

Properties

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

The clauses that were actually removed, in removal order; null if the operation isFailure.

Link copied to clipboard
open override val firstClause: Clause
Link copied to clipboard
open val isFailure: Boolean

Whether the retract operation removed no clause at all.

Link copied to clipboard
open override val isSuccess: Boolean

Whether the retract operation removed at least one clause.

Link copied to clipboard
open override val theory: T

The result always present value, is the clause database resulting from the operation execution