NullaryMathFunction

abstract class NullaryMathFunction: MathFunction

Base class to implement nullary math functions (with no arguments)

Constructors

<init>

constructor(name: String)

Base class to implement nullary math functions (with no arguments)

Parameters

Name Description
name: String

the no arguments function name

Methods

uncheckedImplementation

protected open fun uncheckedImplementation(request: Request<ExecutionContext>): Response

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

Parameters

Name Description
request: Request<ExecutionContext>

ReturnValue

Name Description
Response

mathFunction

protected abstract fun mathFunction(context: ExecutionContext): Numeric

The actual function implementation

Parameters

Name Description
context: ExecutionContext

ReturnValue

Name Description
Numeric