Uses of Interface
org.projog.core.kb.KnowledgeBaseConsumer
Packages that use KnowledgeBaseConsumer
Package
Description
Provides arithmetic operators.
Predicates for classifying terms.
Predicates to support constraint logic programming.
Predicates for comparing terms, including specific predicates for comparing numeric values.
Predicates for the construction of compound/complex sentences.
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 KnowledgeBaseConsumer in org.projog.core.math
Classes in org.projog.core.math that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionclassclassA template forArithmeticOperators that accept two arguments.classA template forArithmeticOperators that accept two arguments of typeTermType.INTEGER.classA template forArithmeticOperators that accept exactly one argument. -
Uses of KnowledgeBaseConsumer in org.projog.core.math.builtin
Classes in org.projog.core.math.builtin that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classabs- returns the absolute value of a numeric argument.final class+- performs addition.final class/\- performs bitwise addition.final class\/- bitwise 'or'.final classxor- bitwise 'exclusive or'.final class/- performs division.final class//- performs integer division.final classmax- finds the maximum of two numbers.final classmin- finds the minimum of two numbers.final class-- minus operator.final classmod- finds the remainder of division of one number by another.final class*- performs multiplication.final class**- calculates the result of the first argument raised to the power of the second argument.final classrandom(X)Evaluate to a random integer i for which 0 =< i < X.final classrem- finds the remainder of division of one number by another.final classinteger(X)- round X to the nearest integer value.final class<<- left shift bits.final class>>- right shift bits.final class-- performs subtraction. -
Uses of KnowledgeBaseConsumer in org.projog.core.predicate
Classes in org.projog.core.predicate that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionclassDeprecated.classSuperclass of "plug-in" predicates that are not re-evaluated as part of backtracking. -
Uses of KnowledgeBaseConsumer in org.projog.core.predicate.builtin.classify
Classes in org.projog.core.predicate.builtin.classify that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.clp
Classes in org.projog.core.predicate.builtin.clp that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classpj_add_clp_expression(X,Y)- defines a Java class as an CLP expression.final classCLP predicates for comparing boolean values.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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.compare
Classes in org.projog.core.predicate.builtin.compare that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.compound
Classes in org.projog.core.predicate.builtin.compound that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classcall(X)- calls the goal represented by a term. -
Uses of KnowledgeBaseConsumer in org.projog.core.predicate.builtin.construct
Classes in org.projog.core.predicate.builtin.construct that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.db
Classes in org.projog.core.predicate.builtin.db that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.debug
Classes in org.projog.core.predicate.builtin.debug that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.flow
Classes in org.projog.core.predicate.builtin.flow that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classthrow(X)- throws an exception with the given message. -
Uses of KnowledgeBaseConsumer in org.projog.core.predicate.builtin.io
Classes in org.projog.core.predicate.builtin.io that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.kb
Classes in org.projog.core.predicate.builtin.kb that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.list
Classes in org.projog.core.predicate.builtin.list that implement KnowledgeBaseConsumerModifier 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 KnowledgeBaseConsumer in org.projog.core.predicate.builtin.reif
Classes in org.projog.core.predicate.builtin.reif that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classdif(X,Y)- enforces restriction that the two given terms are never equal. -
Uses of KnowledgeBaseConsumer in org.projog.core.predicate.builtin.time
Classes in org.projog.core.predicate.builtin.time that implement KnowledgeBaseConsumerModifier and TypeClassDescriptionfinal classconvert_time(X,Y)- converts a timestamp to a textual representation.final classget_time(X)- gets the current system time.