TuPrologFactoryMethods

io.github.kelvindev15.prolog.solver.tuprolog.TuPrologFactoryMethods

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def ktAtomOf(value: String): Atom

Returns a tuProlog KAtom.

Returns a tuProlog KAtom.

Value parameters

value

the value of the atom.

Attributes

def ktConsOf(head: KTerm, tail: KTerm): Cons

Returns a tuProlog KCons.

Returns a tuProlog KCons.

Value parameters

head

the head of the list.

tail

the tail of the list.

Attributes

def ktDirectiveOf(body1: KTerm, bodies: KTerm*): Directive

Returns a tuProlog KDirective.

Returns a tuProlog KDirective.

Value parameters

bodies

other arguments of the directive

body1

first argument of the directive

Attributes

def ktEmptyList: EmptyList

Returns a tuProlog KEmptyList.

Returns a tuProlog KEmptyList.

Attributes

def ktEmptyScope: Scope

Returns an empty tuProlog KScope.

Returns an empty tuProlog KScope.

Attributes

def ktFactOf(head: Struct): Fact

Returns a tuProlog KFact (A rule with no body).

Returns a tuProlog KFact (A rule with no body).

Value parameters

head

the head of the rule.

Attributes

def ktNumOf(value: Int): Numeric

Returns a tuProlog KNumeric from an int value.

Returns a tuProlog KNumeric from an int value.

Value parameters

value

the int value of the numeric constant.

Attributes

def ktNumOf(value: Double): Numeric

Returns a tuProlog KNumeric from a double value.

Returns a tuProlog KNumeric from a double value.

Value parameters

value

the double value of the numeric constant.

Attributes

def ktRuleOf(head: Struct, body: KTerm*): Rule

Returns a tuProlog KRule.

Returns a tuProlog KRule.

Value parameters

body

the body of the rule.

head

the head of the rule.

Attributes

def ktStructOf(functor: String, terms: KTerm*): Struct

Returns a tuProlog KStruct.

Returns a tuProlog KStruct.

Value parameters

functor

the struct functor's name.

terms

the arguments of the struct.

Attributes

def ktTheoryOf(clauses: KClause*): Theory

Returns a tuProlog KTheory of the provided KClauses.

Returns a tuProlog KTheory of the provided KClauses.

Value parameters

clauses

the clauses forming the theory.

Attributes

def ktVarOf(name: String): Var

Returns a tuProlog KVar.

Returns a tuProlog KVar.

Value parameters

name

the name of the variable.

Attributes

Exports

Defined exports

final type KClause = Clause
Exported from core
final type KTerm = Term
Exported from core