RetractResult

sealed class RetractResult<out T : Theory>

A result given after a "retract" operation

Types

Link copied to clipboard
data class Failure<T : Theory>(val theory: T) : RetractResult<T>

A failed "retract" operation result, carrying the unchanged theory

Link copied to clipboard
data class Success<T : Theory>(val theory: T, val clauses: Iterable<<ERROR CLASS>>) : RetractResult<T>

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

Properties

Link copied to clipboard
abstract val clauses: Iterable<<ERROR CLASS>>?
Link copied to clipboard
abstract val firstClause: <ERROR CLASS>?

Gets the first successfully retracted clause

Link copied to clipboard
open val isFailure: Boolean
Link copied to clipboard
open val isSuccess: Boolean
Link copied to clipboard
abstract val theory: T

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

Inheritors

Link copied to clipboard
Link copied to clipboard