Binary

class Binary(val name: String, val firstTerm: Term, val secondTerm: Term, val isInfix: Boolean) : Relation(source)

Represents a binary FOL relation.

Author

Jan Müller

Parameters

name

The name of this binary relation.

Constructors

Link copied to clipboard
constructor(name: String, firstTerm: Term, secondTerm: Term, isInfix: Boolean)

Creates an Binary relation with the given name.

Properties

Link copied to clipboard

The first/left Term of this binary relation.

Link copied to clipboard

Indicates that this binary relation has infix-notation.

Link copied to clipboard

The name of the entity.

Link copied to clipboard

The second/right Term of this binary relation.

Functions

Link copied to clipboard
open override fun fullCheck(graph: Graph, symbolTable: SymbolTable, variableAssignments: Map<String, Node>, shouldBeModel: Boolean): ModelCheckerTrace

Checks if the Nodes which firstTerm and secondTerm evaluate to are part of this Relation.

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

Returns raw String representation of binary relation.

Link copied to clipboard
open override fun partialCheck(graph: Graph, symbolTable: SymbolTable, variableAssignments: Map<String, Node>, shouldBeModel: Boolean): ModelCheckerTrace

Checks if the Nodes which firstTerm and secondTerm evaluate to are part of this Relation.

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.