Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Substitution.type
Types
A mapping from Variables to Terms
A mapping from Variables to Terms
Attributes
Value members
Concrete methods
Returns true if the provided goal admits at least one solution. If not specified the default solver that will be used is the TuPrologClassicSolver.
Returns true if the provided goal admits at least one solution. If not specified the default solver that will be used is the TuPrologClassicSolver.
Value parameters
- goal
-
the program to satisfy.
- solver
-
the solver that should be used.
Attributes
Returns true if the program admits at least one solution. If not specified the default solver that will be used is the TuPrologClassicSolver.
Returns true if the program admits at least one solution. If not specified the default solver that will be used is the TuPrologClassicSolver.
Value parameters
- program
-
the program to solve.
- solver
-
the solver that should be used.
Attributes
Solves the goal on program with an empty theory using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Solves the goal on program with an empty theory using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Value parameters
- query
-
the goal to be solved.
- solver
-
the solver that should be used.
Attributes
- Returns
-
a lazy list of the program's Solutions.
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Value parameters
- prologProgram
-
the program to solve.
- solver
-
the solver that should be used.
Attributes
- Returns
-
a lazy list of the program's Solutions.
Solves the goal on program with an empty theory using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Solves the goal on program with an empty theory using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Value parameters
- query
-
the goal to be solved.
- solver
-
the solver that should be used.
Attributes
- Returns
-
an iterator over the program's Solutions.
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Value parameters
- prologProgram
-
the program to solve.
- solver
-
the solver that should be used.
Attributes
- Returns
-
a list of the program's Solutions.
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Solves a program using a solver that is either provided as a context parameter, found as a given instance or by using the default one (TuPrologClassicSolver).
Value parameters
- prologProgram
-
the program to solve.
- solver
-
the solver that should be used.
Attributes
- Returns
-
an iterator over the Solutions of the program.
Returns a Solver that leverages on the tuProlog engine.
Returns a Solver that leverages on the tuProlog engine.
Attributes
Extensions
Extensions
Returns an option filled with the substitution term for the provided variable. The option will be empty if the solution is No or Halt or the provided variable is not in the Substitution.
Returns an option filled with the substitution term for the provided variable. The option will be empty if the solution is No or Halt or the provided variable is not in the Substitution.
Attributes
Returns an option filled with the application of the substitution to the query, if the the solution is Solution.Yes, None otherwise.
Returns an option filled with the application of the substitution to the query, if the the solution is Solution.Yes, None otherwise.
Attributes
Returns true if the solution is a Halt.
Returns true if the solution is a Halt.
Attributes
Returns true if the solution is a No.
Returns true if the solution is a No.
Attributes
Returns true if the solution is a Yes.
Returns true if the solution is a Yes.