Uses of Class
org.projog.core.predicate.AbstractSingleResultPredicate
Packages that use AbstractSingleResultPredicate
Package
Description
Predicates for classifying terms.
Predicates to support constraint logic programming.
Predicates for comparing terms, including specific predicates for comparing numeric values.
Predicates for inspecting the structure of terms.
Predicates to support working with the recorded database.
Predicates to aid the debugging of Prolog programs.
Predicates for affecting the flow of goal evaluation on backtracking.
Predicates for system input and output with the file system.
Predicates for inspecting, adding and retracting clauses.
Predicates for working with list data structures.
Predicates that provide reification functionality.
Predicates to support working with dates and times.
-
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.classify
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.classifyModifier and TypeClassDescriptionfinal classatom(X)- checks that a term is an atom.final classatomic(X)- checks that a term is atomic.final classcompound(X)- checks that a term is a compound term.final classfloat(X)- checks that a term is a floating point number.final classinteger(X)- checks that a term is an integer.final classis_list(X)- checks that a term is a list.final classnonvar(X)- checks that a term is not an uninstantiated variable.final classnumber(X)- checks that a term is numeric.final classvar(X)- checks that a term is an uninstantiated variable. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.clp
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.clpModifier and TypeClassDescriptionfinal classpj_add_clp_expression(X,Y)- defines a Java class as an CLP expression.final classall_different([X,Y,Z])- enforce that none of the given CLP variables share the same value.final classX in 1..4/[X,Y,Z] ins 1..4- restrict CLP variables to a range of values.final classCLP predicates for comparing numeric values. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compare
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compareModifier and TypeClassDescriptionfinal classcompare(X,Y,Z)- compares arguments.final classX=Y- an equality test.final classX\==Y- a strict equality test.final classX \= Y- checks whether two terms cannot be unified.final classX=:=Y- numeric equality test.final classX>Y- numeric "greater than" test.final classX>=Y- numeric "greater than or equal" test.final classX=\=Y- numeric inequality test.final classX<Y- numeric "less than" test.final classX=<Y- numeric "less than or equal" test.final classX==Y- a strict equality test.final classX@>Y- term "greater than" test.final classX@>=Y- term "greater than or equal" test.final classX@<Y- term "less than" test.final classX@=<Y- term "less than or equal" test.final classunify_with_occurs_check(X, Y)- an equality test using sound unification. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.construct
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.constructModifier and TypeClassDescriptionfinal classarg(N,T,A)- allows access to an argument of a structure.final classcopy_term(X,Y)- makes a copy of a term.final classfunctor(T,F,N)final classnumbervars(Term,Start,End)- unifies free variables of a term.final classatom_chars/atom_codes/number_chars/number_codesatom_chars(A,L)compares the atomAto the list of charactersL.atom_codes(A,L)compares the atomAto the list of character codesL.number_chars(N,L)compares the numberNto the list of charactersL.number_codes(N,L)compares the numberNto the list of character codesL.final classX=..L- "univ". -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.db
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.dbModifier and TypeClassDescriptionfinal classerase(X)- removes a record from the recorded database.final classrecorda(X,Y,Z)/recordz(X,Y,Z)- associates a term with a key. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.debug
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.debugModifier and TypeClassDescriptionfinal classspy(X)/nospy(X)- add or remove a spy point for a predicate.final classdebugging- lists current spy points.final classnodebug- removes all current spy points.final classnotrace- disables exhaustive tracing.final classtrace- enables exhaustive tracing. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.flow
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.flowModifier and TypeClassDescriptionfinal classthrow(X)- throws an exception with the given message. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.io
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.ioModifier and TypeClassDescriptionfinal classclose(X)- closes a stream.final classcurrent_input(X)- match a term to the current input stream.final classcurrent_output(X)- match a term to the current output stream.final classget_char(X)- reads the next character from the input stream.final classget_code(X)- reads the next character from the input stream.final classnl- outputs a new line character.final classop(X,Y,Z)final classopen(X,Y,Z)- opens a file.final classput_char(X)- writes a character.final classread(X)- reads a term from the input stream.final classsee(X)- opens a file and sets it as the current input stream.final classseen- closes the current input stream.final classset_input(X)- sets the current input.final classset_output(X)- sets the current output.final classtab(X)- writesXnumber of spaces to the output stream.final classtell(X)- opens a file and sets it as the current output stream.final classtold- closes the current output stream.final classwrite(X)- writes a term to the output stream.final classwrite_canonical(X)- writes a term to the output stream.final classwritef(X,Y)- writes formatted text to the output stream. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.kb
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.kbModifier and TypeClassDescriptionfinal classpj_add_arithmetic_operator(X,Y)- defines a Java class as an arithmetic operator.final classpj_add_predicate(X,Y)- defines a Java class as a built-in predicate.final classarithmetic_function(X)- defines a predicate as an arithmetic function.final classasserta(X)/assertz(X)- adds a clause to the knowledge base.final classconsult(X)- reads clauses and goals from a file.final classRead clauses and goals from a list of files.final classdynamic/1- indicates that a user defined predicate is dynamic.final classensure_loaded(X)- reads clauses and goals from a file.final classflag(X,Y,Z)- associates a key with a value.final classlisting(X)- outputs current clauses.final classtable/1- defines a user defined predicate as using tabled execution. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.list
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.listModifier and TypeClassDescriptionfinal classappend(ListOfLists, List)- concatenates a list of lists.final classatomic_list_concat(List,Separator,Atom)/atomic_list_concat(List,Atom)final classdelete(X,Y,Z)- remove all occurrences of a term from a list.final classmin_list/max_listmin_list(Min, List)- True if Min is the smallest number in List.final classflatten(X,Y)- flattens a nested list.final classkeysort(X,Y)- sorts a list of key/value pairs.final classpairs_keys(Pairs,Keys)/pairs_values(Pairs,Values)- get keys or values from list of Key-Value pairs.final classrandom_permutation(X,Y)- produces a random permutation of a list.final classmsort(X,Y)- sorts a list.final classsort(X,Y)- sorts a list and removes duplicates.final classsubset(X,Y)- checks if a set is a subset.final classsubtract(X,Y,Z)- removes elements from a list.final classsum_list(X,Y)- sums the elements of a list. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.reif
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.reifModifier and TypeClassDescriptionfinal classdif(X,Y)- enforces restriction that the two given terms are never equal. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.time
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.timeModifier and TypeClassDescriptionfinal classconvert_time(X,Y)- converts a timestamp to a textual representation.final classget_time(X)- gets the current system time.