Uses of Class
org.projog.core.predicate.AbstractSingleResultPredicate
-
Packages that use AbstractSingleResultPredicate Package Description org.projog.core.predicate.builtin.bool Predicates to explicitly specify when a goal succeeds of fails.org.projog.core.predicate.builtin.classify Predicates for classifying terms.org.projog.core.predicate.builtin.clp Predicates to support constraint logic programming.org.projog.core.predicate.builtin.compare Predicates for comparing terms, including specific predicates for comparing numeric values.org.projog.core.predicate.builtin.compound Predicates for the construction of compound/complex sentences.org.projog.core.predicate.builtin.construct Predicates for inspecting the structure of terms.org.projog.core.predicate.builtin.db Predicates to support working with the recorded database.org.projog.core.predicate.builtin.debug Predicates to aid the debugging of Prolog programs.org.projog.core.predicate.builtin.flow Predicates for affecting the flow of goal evaluation on backtracking.org.projog.core.predicate.builtin.io Predicates for system input and output with the file system.org.projog.core.predicate.builtin.kb Predicates for inspecting, adding and retracting clauses.org.projog.core.predicate.builtin.list Predicates for working with list data structures.org.projog.core.predicate.builtin.reif org.projog.core.predicate.builtin.time Predicates to support working with dates and times. -
-
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.bool
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.bool Modifier and Type Class Description classFailfail- always fails.classTruetrue- always succeeds. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.classify
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.classify Modifier and Type Class Description classIsAtomatom(X)- checks that a term is an atom.classIsAtomicatomic(X)- checks that a term is atomic.classIsCompoundcompound(X)- checks that a term is a compound term.classIsFloatfloat(X)- checks that a term is a floating point number.classIsIntegerinteger(X)- checks that a term is an integer.classIsListis_list(X)- checks that a term is a list.classIsNonVarnonvar(X)- checks that a term is not an uninstantiated variable.classIsNumbernumber(X)- checks that a term is numeric.classIsVarvar(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.clp Modifier and Type Class Description classAddExpressionFactorypj_add_clp_expression(X,Y)- defines a Java class as an CLP expression.classDistinctall_different([X,Y,Z])- enforce that none of the given CLP variables share the same value.classInX in 1..4/[X,Y,Z] ins 1..4- restrict CLP variables to a range of values.classNumericConstraintPredicateCLP predicates for comparing numeric values. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compare
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compare Modifier and Type Class Description (package private) classAbstractNumericComparisonPredicateclassComparecompare(X,Y,Z)- compares arguments.classEqualX=Y- an equality test.classIsX is Y- evaluate arithmetic expression.private static classIs.PreprocessedIsprivate static classIs.UnifyclassNotStrictEqualityX\==Y- a strict equality test.classNotUnifiableX \= Y- checks whether two terms cannot be unified.classNumericEqualityX=:=Y- numeric equality test.classNumericGreaterThanX>Y- numeric "greater than" test.classNumericGreaterThanOrEqualX>=Y- numeric "greater than or equal" test.classNumericInequalityX=\=Y- numeric inequality test.classNumericLessThanX<Y- numeric "less than" test.classNumericLessThanOrEqualX=<Y- numeric "less than or equal" test.classPredSortpredsort(X,Y,Z)- sorts a list using the specified predicate.classStrictEqualityX==Y- a strict equality test.classTermGreaterThanX@>Y- term "greater than" test.classTermGreaterThanOrEqualX@>=Y- term "greater than or equal" test.classTermLessThanX@<Y- term "less than" test.classTermLessThanOrEqualX@=<Y- term "less than or equal" test.classUnifyWithOccursCheckunify_with_occurs_check(X, Y)- an equality test using sound unification. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compound
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.compound Modifier and Type Class Description private static classConjunction.OptimisedSingletonConjuctionclassFindAllfindall(X,P,L)- find all solutions that satisfy the goal.classNot\+ X- "not".private static classNot.OptimisedNotclassOnceonce(X)- calls the goal represented by a term.private static classOnce.OptimisedOnce -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.construct
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.construct Modifier and Type Class Description classArgarg(N,T,A)- allows access to an argument of a structure.classCopyTermcopy_term(X,Y)- makes a copy of a term.classFunctorfunctor(T,F,N)classNumberVarsnumbervars(Term,Start,End)- unifies free variables of a term.classTermSplitatom_chars/atom_codes/number_chars/number_codesclassUnivX=..L- "univ". -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.db
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.db Modifier and Type Class Description classEraseerase(X)- removes a record from the recorded database.classInsertRecordrecorda(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.debug Modifier and Type Class Description classAlterSpyPointspy(X)/nospy(X)- add or remove a spy point for a predicate.classDebuggingdebugging- lists current spy points.classNoDebugnodebug- removes all current spy points.classNoTracenotrace- disables exhaustive tracing.classTracetrace- enables exhaustive tracing. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.flow
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.flow Modifier and Type Class Description classThrowthrow(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.io Modifier and Type Class Description classCloseclose(X)- closes a stream.classCurrentInputcurrent_input(X)- match a term to the current input stream.classCurrentOutputcurrent_output(X)- match a term to the current output stream.classGetCharget_char(X)- reads the next character from the input stream.classGetCodeget_code(X)- reads the next character from the input stream.classNewLinenl- outputs a new line character.classOpop(X,Y,Z)classOpenopen(X,Y,Z)- opens a file.classPutCharput_char(X)- writes a character.classReadread(X)- reads a term from the input stream.classSeesee(X)- opens a file and sets it as the current input stream.classSeenseen- closes the current input stream.classSetInputset_input(X)- sets the current input.classSetOutputset_output(X)- sets the current output.classTabtab(X)- writesXnumber of spaces to the output stream.classTelltell(X)- opens a file and sets it as the current output stream.classToldtold- closes the current output stream.classWritewrite(X)- writes a term to the output stream.classWriteCanonicalwrite_canonical(X)- writes a term to the output stream.classWritefwritef(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.kb Modifier and Type Class Description classAddArithmeticOperatorpj_add_arithmetic_operator(X,Y)- defines a Java class as an arithmetic operator.classAddPredicateFactorypj_add_predicate(X,Y)- defines a Java class as a built-in predicate.classAddUserDefinedArithmeticOperatorarithmetic_function(X)- defines a predicate as an arithmetic function.classAssertasserta(X)/assertz(X)- adds a clause to the knowledge base.classConsultconsult(X)- reads clauses and goals from a file.classConsultListRead clauses and goals from a list of files.classDynamicdynamic/1- indicates that a user defined predicate is dynamic.classEnsureLoadedensure_loaded(X)- reads clauses and goals from a file.classFlagflag(X,Y,Z)- associates a key with a value.classListinglisting(X)- outputs current clauses.classRetractAllretractall(X)- remove clauses from the knowledge base. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.list
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.list Modifier and Type Class Description classAppendListOfListsappend(ListOfLists, List)- concatenates a list of lists.classAtomicListConcatatomic_list_concat(List,Separator,Atom)/atomic_list_concat(List,Atom)classDeletedelete(X,Y,Z)- remove all occurrences of a term from a list.classExtremumListmin_list/max_listclassFlattenflatten(X,Y)- flattens a nested list.classKeySortkeysort(X,Y)- sorts a list of key/value pairs.classMemberCheckmemberchk(E, L)- checks is a term is a member of a list.private static classMemberCheck.PreprocessedMemberCheckclassPairsElementspairs_keys(Pairs,Keys)/pairs_values(Pairs,Values)- get keys or values from list of Key-Value pairs.classSortmsort(X,Y)- sorts a list.classSortAsSetsort(X,Y)- sorts a list and removes duplicates.classSubListinclude(X,Y,Z)- filters a list by a goal.classSubsetsubset(X,Y)- checks if a set is a subset.classSubtractFromListsubtract(X,Y,Z)- removes elements from a list. -
Uses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.reif
Subclasses of AbstractSingleResultPredicate in org.projog.core.predicate.builtin.reif Modifier and Type Class Description classDifdif(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.time Modifier and Type Class Description classConvertTimeconvert_time(X,Y)- converts a timestamp to a textual representation.classGetTimeget_time(X)- gets the current system time.
-