Function

sealed class Function : Term(source)

Represents a Term function.

Author

Jan Müller

Parameters

name

The name of this function.

Inheritors

Types

Link copied to clipboard
class Constant(val name: String) : Function

Represents a Term constant.

Link copied to clipboard
class Unary(val name: String, val operand: Term) : Function

Represents an unary Term.

Properties

Link copied to clipboard

The name of the entity.

Functions

Link copied to clipboard
abstract fun evaluate(symbolTable: SymbolTable, variableAssignments: Map<String, Node>): Node

Evaluates this term to a Node.

Link copied to clipboard
abstract fun getRawString(variableAssignments: Map<String, Node>): String

Returns a raw String representation of an FOLEntity. This method should not be called directly, as it does not include brackets and dots.

Link copied to clipboard
override fun toString(): String

Returns a String representation with no variable assignments and no brackets or dot at root level.

fun toString(variableAssignments: Map<String, Node>, wrap: Boolean): String

Returns a String representation with no variable assignments and optional brackets or dot at root level.