Response

data class Response(    val solution: Solution,     val sideEffectManager: SideEffectManager? = null,     val sideEffects: List<SideEffect>) : Solve

Class representing a Response, from the Solver, to a Solve.Request

Constructors

Link copied to clipboard
fun Response(    solution: Solution,     sideEffectManager: SideEffectManager? = null,     sideEffects: Iterable<SideEffect>)
Link copied to clipboard
fun Response(    solution: Solution,     sideEffectManager: SideEffectManager? = null,     sideEffects: Sequence<SideEffect>)
Link copied to clipboard
fun Response(    solution: Solution,     sideEffectManager: SideEffectManager? = null,     vararg sideEffects: SideEffect)
Link copied to clipboard
fun Response(    solution: Solution,     sideEffectManager: SideEffectManager? = null,     sideEffects: List<SideEffect>)

Properties

Link copied to clipboard
val sideEffectManager: SideEffectManager? = null

The Prolog flow modification manager after request execution (use null in case nothing changed)

Link copied to clipboard
val sideEffects: List<SideEffect>

The (possibly empty) List of SideEffects to be applied to the execution context after a primitive has been executed

Link copied to clipboard
val solution: Solution

The solution attached to the response