SolverSession

interface SolverSession

A live solver instance backing one page, built by a SolverSessionFactory from a SolverProfile.

Inheritors

Properties

Link copied to clipboard

What this particular session supports (may narrow its profile's declared capabilities).

Link copied to clipboard
abstract val id: SolverSessionId

Uniquely identifies this session while it's alive.

Link copied to clipboard

The current inspectable state (operators, flags, libraries, knowledge base) of the underlying solver.

Functions

Link copied to clipboard
abstract suspend fun close()

Releases whatever resources this session holds; the session is unusable afterwards.

Link copied to clipboard
abstract suspend fun openResolution(request: ResolutionRequest): ResolutionCursor

Starts resolving request's query, returning a cursor to step through its solutions.

Link copied to clipboard
abstract suspend fun reset(): SolverInspectionSnapshot

Restores a pristine solver state. Implementations may rebuild internally.