Primitive

interface Primitive: Any

Methods

solve

abstract fun solve(request: Request<ExecutionContext>): Sequence<Response>

Parameters

Name Description
request: Request<ExecutionContext>

ReturnValue

Name Description
Sequence<Response>

CompanionObject

Primitive

interface Primitive: Any

Methods

of

fun of(function: (Request<ExecutionContext>)->Sequence<Response>): Primitive

Parameters

Name Description
function: (Request<ExecutionContext>)->Sequence<Response>

ReturnValue

Name Description
Primitive

enforcingSignature

fun <C : ExecutionContext> enforcingSignature(supportedSignature: Signature, uncheckedPrimitive: (Request<C>)->Sequence<Response>): Primitive

Creates a new Primitive, behaving exactly as given uncheckedPrimitive, but accepting only provided supportedSignature as Solve.Request signature, throwing IllegalArgumentException otherwise

Parameters

Name Description
supportedSignature: Signature
uncheckedPrimitive: (Request<C>)->Sequence<Response>

ReturnValue

Name Description
Primitive

enforcingSignature

fun enforcingSignature(supportedSignature: Signature, uncheckedPrimitive: Primitive): Primitive

Parameters

Name Description
supportedSignature: Signature
uncheckedPrimitive: Primitive

ReturnValue

Name Description
Primitive