BinaryRelation

abstract class BinaryRelation<E : ExecutionContext> : PrimitiveWrapper<E>

Base class to implement primitives that relate two Terms and provide a single response

Constructors

<init>

constructor(operator: String)

Base class to implement primitives that relate two Terms and provide a single response

Parameters

Name Description
operator: String

Methods

computeAll

protected abstract fun Request<E>.computeAll(first: Term, second: Term): Sequence<Response>

Template method aimed at computing the application of this relation to three Terms

Receiver

Name Description
Request<E>

Parameters

Name Description
first: Term
second: Term

ReturnValue

Name Description
Sequence<Response>

uncheckedImplementation

protected fun uncheckedImplementation(request: Request<E>): Sequence<Response>

The function expressing the implementation of the primitive, without any check for application to correct signature

Parameters

Name Description
request: Request<E>

ReturnValue

Name Description
Sequence<Response>