Uses of Interface
org.projog.core.term.Term
Packages that use Term
Package
Description
Provides a programming interface for Java applications to interact with Projog.
Provides a mechanism for objects to notify and be notified of events.
Provides arithmetic operators.
Provides classes for constructing
Term objects from Prolog syntax.Predicates to explicitly specify when a goal succeeds of fails.
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.
Provides functionality to evaluate user defined predicates defined using Prolog syntax.
Contains the building blocks used to construct Prolog programs and queries.
-
Uses of Term in org.projog.api
Methods in org.projog.api that return TermModifier and TypeMethodDescriptionQueryPlan.findFirstAsTerm()QueryStatement.findFirstAsTerm()Execute the query once and return theTermthe single query variable was unified with.ProjogStackTraceElement.getTerm()Represents the clause this stack trace element was generated for.Returns the term instantiated to the variable with the specified id.Methods in org.projog.api that return types with arguments of type TermModifier and TypeMethodDescriptionQueryPlan.findAllAsTerm()QueryStatement.findAllAsTerm()Find all solutions generated by the query and return theTermvalues the single query variable was unified with.QueryPlan.findFirstAsOptionalTerm()QueryStatement.findFirstAsOptionalTerm()Attempt to execute the query once and return aTermrepresentation of the term the single query variable was unified with.Methods in org.projog.api with parameters of type TermModifier and TypeMethodDescriptionProjog.formatTerm(Term t) Returns a string representation of the specifiedTerm.voidQueryStatement.setListOfTerms(String variableId, Term... terms) Attempts to unify the specifiedTermvalues as a Prolog list to the variable with the specified id.voidAttempts to unify the specified term to the variable with the specified id.Method parameters in org.projog.api with type arguments of type TermModifier and TypeMethodDescriptionvoidQueryStatement.setListOfTerms(String variableId, List<? extends Term> terms) Attempts to unify the specifiedTermvalues as a Prolog list to the variable with the specified id. -
Uses of Term in org.projog.core.event
Methods in org.projog.core.event with parameters of type TermModifier and TypeMethodDescriptionvoidNotifies listeners of a first attempt to evaluate a goal.voidDeprecated.voidSpyPoints.SpyPoint.logExit(Object source, Term term, ClauseModel clause) Notifies listeners of that an attempt to evaluate a goal has succeeded.voidNotifies listeners of that an attempt to evaluate a goal has failed.voidNotifies listeners of an attempt to re-evaluate a goal. -
Uses of Term in org.projog.core.io
Methods in org.projog.core.io that return TermModifier and TypeMethodDescriptionFileHandles.getCurrentInputHandle()Return theTermrepresenting the current input stream.FileHandles.getCurrentOutputHandle()Return theTermrepresenting the current output stream.Methods in org.projog.core.io with parameters of type TermModifier and TypeMethodDescriptionvoidCloses the stream represented by the specifiedTerm.voidSets the current input stream to the input stream represented by the specifiedTerm.voidSets the current output stream to the output stream represented by the specifiedTerm. -
Uses of Term in org.projog.core.kb
Methods in org.projog.core.kb that return TermMethods in org.projog.core.kb with parameters of type TermModifier and TypeMethodDescriptionstatic booleanKnowledgeBaseUtils.isConjunction(Term t) static booleanKnowledgeBaseUtils.isQuestionOrDirectiveFunctionCall(Term t) static booleanKnowledgeBaseUtils.isSingleAnswer(KnowledgeBase kb, Term term) Returnstrueif the predicate represented by the specifiedTermnever succeeds on re-evaluation.static Term[]KnowledgeBaseUtils.toArrayOfConjunctions(Term t) -
Uses of Term in org.projog.core.math
Subinterfaces of Term in org.projog.core.mathMethods in org.projog.core.math with parameters of type TermModifier and TypeMethodDescriptionfinal NumericReturns the result of the calculation using the specified arguments.intNumericTermComparator.compare(Term t1, Term t2, ArithmeticOperators operators) Compares the two arguments, representing arithmetic expressions, for order.ArithmeticOperators.getNumeric(Term t) Returns the result of evaluating the specified arithmetic expression.ArithmeticOperators.getPreprocessedArithmeticOperator(Term argument) final ArithmeticOperatorAbstractArithmeticOperator.preprocess(Term expression) PreprocessableArithmeticOperator.preprocess(Term arg) -
Uses of Term in org.projog.core.math.builtin
Methods in org.projog.core.math.builtin with parameters of type Term -
Uses of Term in org.projog.core.parser
Methods in org.projog.core.parser that return Term -
Uses of Term in org.projog.core.predicate
Methods in org.projog.core.predicate that return TermMethods in org.projog.core.predicate with parameters of type TermModifier and TypeMethodDescriptionstatic PredicateKeyPredicateKey.createForTerm(Term t) Returns aPredicateKeyfor the specified term.static PredicateKeyPredicateKey.createFromNameAndArity(Term t) protected booleanprotected booleanprotected booleanprotected booleanfinal PredicateAbstractPredicateFactory.getPredicate(Term term) Deprecated.protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2) Deprecated.protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2, Term arg3) Deprecated.protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2, Term arg3, Term arg4) Deprecated.final PredicateAbstractSingleResultPredicate.getPredicate(Term term) PredicateFactory.getPredicate(Term term) Returns aPredicateto be used in the evaluation of a goal.Predicates.getPredicate(Term t) UnknownPredicate.getPredicate(Term term) Predicates.getPredicateFactory(Term term) Returns thePredicateFactoryassociated with the specifiedTerm.protected PredicateAbstractPredicateFactory.getPredicateWithOneArgument(Term arg) Deprecated.Predicates.getPreprocessedPredicateFactory(Term term) default PredicateFactoryPredicateFactory.preprocess(Term term) UnknownPredicate.preprocess(Term term) -
Uses of Term in org.projog.core.predicate.builtin.bool
Methods in org.projog.core.predicate.builtin.bool with parameters of type Term -
Uses of Term in org.projog.core.predicate.builtin.classify
Methods in org.projog.core.predicate.builtin.classify with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanCharType.getPredicate(Term input) -
Uses of Term in org.projog.core.predicate.builtin.clp
Methods in org.projog.core.predicate.builtin.clp with parameters of type TermModifier and TypeMethodDescriptionorg.projog.clp.ConstraintBooleanConstraintPredicate.createConstraint(Term term, Set<org.projog.core.predicate.builtin.clp.ClpVariable> vars) org.projog.clp.ConstraintConstraintFactory.createConstraint(Term term, Set<org.projog.core.predicate.builtin.clp.ClpVariable> vars) org.projog.clp.ConstraintNumericConstraintPredicate.createConstraint(Term term, Set<org.projog.core.predicate.builtin.clp.ClpVariable> vars) protected booleanbooleanbooleanbooleanBooleanConstraintPredicate.getPredicate(Term term) Resolve.getPredicate(Term input) org.projog.clp.ExpressionExpressionFactories.toExpression(Term t, Set<org.projog.core.predicate.builtin.clp.ClpVariable> vars) -
Uses of Term in org.projog.core.predicate.builtin.compare
Methods in org.projog.core.predicate.builtin.compare with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanBetween.getPredicate(Term term) Is.getPredicate(Term term) PredSort.getPredicate(Term term) Is.preprocess(Term term) PredSort.preprocess(Term term) -
Uses of Term in org.projog.core.predicate.builtin.compound
Methods in org.projog.core.predicate.builtin.compound with parameters of type TermModifier and TypeMethodDescriptionBagOf.getPredicate(Term term) Call.getPredicate(Term term) Conjunction.getPredicate(Term term) Disjunction.getPredicate(Term term) FindAll.getPredicate(Term term) IfThen.getPredicate(Term term) Limit.getPredicate(Term term) Not.getPredicate(Term term) Once.getPredicate(Term t) SetOf.getPredicate(Term term) BagOf.preprocess(Term term) Conjunction.preprocess(Term term) Disjunction.preprocess(Term term) FindAll.preprocess(Term term) IfThen.preprocess(Term term) Limit.preprocess(Term term) Not.preprocess(Term term) Once.preprocess(Term term) SetOf.preprocess(Term term) -
Uses of Term in org.projog.core.predicate.builtin.construct
Methods in org.projog.core.predicate.builtin.construct that return TermMethods in org.projog.core.predicate.builtin.construct with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanbooleanAtomConcat.getPredicate(Term input) -
Uses of Term in org.projog.core.predicate.builtin.db
Methods in org.projog.core.predicate.builtin.db with parameters of type Term -
Uses of Term in org.projog.core.predicate.builtin.debug
Methods in org.projog.core.predicate.builtin.debug with parameters of type Term -
Uses of Term in org.projog.core.predicate.builtin.flow
Methods in org.projog.core.predicate.builtin.flow with parameters of type TermModifier and TypeMethodDescriptionbooleanCut.getPredicate(Term term) RepeatInfinitely.getPredicate(Term term) RepeatSetAmount.getPredicate(Term term) -
Uses of Term in org.projog.core.predicate.builtin.io
Methods in org.projog.core.predicate.builtin.io with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected boolean -
Uses of Term in org.projog.core.predicate.builtin.kb
Methods in org.projog.core.predicate.builtin.kb with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanCurrentPredicate.getPredicate(Term arg) Inspect.getPredicate(Term term) RetractAll.getPredicate(Term term) -
Uses of Term in org.projog.core.predicate.builtin.list
Methods in org.projog.core.predicate.builtin.list that return TermModifier and TypeMethodDescriptionstatic TermPartialApplicationUtils.createArguments(Term partiallyAppliedFunction, Term... extraArguments) Methods in org.projog.core.predicate.builtin.list with parameters of type TermModifier and TypeMethodDescriptionstatic booleanPartialApplicationUtils.apply(PredicateFactory pf, Term term) static TermPartialApplicationUtils.createArguments(Term partiallyAppliedFunction, Term... extraArguments) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanbooleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanAppend.getPredicate(Term term) Fold.getPredicate(Term term) Last.getPredicate(Term input) Length.getPredicate(Term input) MapList.getPredicate(Term term) Member.getPredicate(Term term) MemberCheck.getPredicate(Term term) Nth.getPredicate(Term input) static PredicatePartialApplicationUtils.getPredicate(PredicateFactory pf, Term action, Term... args) Reverse.getPredicate(Term term) Select.getPredicate(Term input) SubList.getPredicate(Term term) static PredicateFactoryPartialApplicationUtils.getPreprocessedPartiallyAppliedPredicateFactory(Predicates predicates, Term partiallyAppliedFunction, int extraArgs) static booleanPartialApplicationUtils.isAtomOrStructure(Term arg) static booleanFold.preprocess(Term term) MapList.preprocess(Term term) MemberCheck.preprocess(Term term) SubList.preprocess(Term term) -
Uses of Term in org.projog.core.predicate.builtin.reif
Methods in org.projog.core.predicate.builtin.reif with parameters of type Term -
Uses of Term in org.projog.core.predicate.builtin.time
Methods in org.projog.core.predicate.builtin.time with parameters of type Term -
Uses of Term in org.projog.core.predicate.udp
Methods in org.projog.core.predicate.udp that return TermModifier and TypeMethodDescriptionClauseModel.getAntecedent()Returns the body of the clause. i.e. the bit after the:-ClauseModel.getConsequent()Returns the head of the clause. i.e. the bit before the:-ClauseModel.getOriginal()Methods in org.projog.core.predicate.udp with parameters of type TermModifier and TypeMethodDescriptionstatic ClauseModelClauseModel.createClauseModel(Term original) ClauseAction.getPredicate(Term input) DynamicUserDefinedPredicateFactory.getPredicate(Term term) org.projog.core.predicate.udp.InterpretedTailRecursivePredicateInterpretedTailRecursivePredicateFactory.getPredicate(Term term) StaticUserDefinedPredicateFactory.getPredicate(Term term) TabledUserDefinedPredicateFactory.getPredicate(Term term) StaticUserDefinedPredicateFactory.preprocess(Term arg) Constructors in org.projog.core.predicate.udp with parameters of type TermModifierConstructorDescriptionInterpretedUserDefinedPredicate(Iterator<ClauseAction> clauseActions, SpyPoints.SpyPoint spyPoint, Term query) -
Uses of Term in org.projog.core.term
Classes in org.projog.core.term that implement TermModifier and TypeClassDescriptionfinal classRepresents a specific object or relationship.final classRepresents a value of the primitive typedoubleas aTerm.final classRepresents a data structure with noTerms.final classRepresents a value of the primitive typelongas aTerm.final classRepresents a data structure with twoTerms - a head and a tail.final classRepresents an unspecifiedTerm.Classes in org.projog.core.term that implement interfaces with type arguments of type TermModifier and TypeClassDescriptionfinal classAn implementation ofComparatorfor comparing instances ofTerm.Fields in org.projog.core.term declared as TermModifier and TypeFieldDescriptionstatic final Term[]TermUtils.EMPTY_ARRAYATermarray of length 0.Methods in org.projog.core.term that return TermModifier and TypeMethodDescriptiondefault TermTerm.copy()Returns a copy of this term.static Term[]Returns copies of the specified {link Term}sstatic TermListFactory.createList(Collection<? extends Term> terms) Returns a newListwith the specified terms and a empty list as the final tail element.static TermListFactory.createList(Term[] terms) Returns a newListwith the specified terms and a empty list as the final tail element.static TermListFactory.createList(Term[] terms, Term tail) Returns a newListwith the specified terms and the second parameter as the tail element.static TermListFactory.createListOfLength(int length) Returns a new list of the specified length where is each element is a variable.static TermStructureFactory.createStructure(String functor, Term argument) static TermStructureFactory.createStructure(String functor, Term[] args) static TermStructureFactory.createStructure(String functor, Term firstArgument, Term secondArgument) List.firstArgument()default TermTerm.firstArgument()default TermTerm.fourthArgument()Atom.getArgument(int index) DecimalFraction.getArgument(int index) EmptyList.getArgument(int index) IntegerNumber.getArgument(int index) List.getArgument(int index) Term.getArgument(int index) Returns the term at the specified position in this term's arguments.Variable.getArgument(int index) CallsTerm.getArgument(int)on theTermthis variable is instantiated with.Variable.getAttributeOrDefault(VariableAttribute attributeKey, Term defaultValue) default TermTerm.getBound()Returns the term this object is bound to.Variable.getBound()Term.getTerm()Returns the current instantiated state of this term.Variable.getTerm()List.secondArgument()default TermTerm.secondArgument()default TermTerm.thirdArgument()Methods in org.projog.core.term that return types with arguments of type TermModifier and TypeMethodDescriptionListUtils.toJavaUtilList(Term list) Returns a newjava.util.Listcontaining the contents of the specifiedorg.projog.core.term.List.ListUtils.toSortedJavaUtilList(Term unsorted) Returns a newjava.util.Listcontaining the sorted contents of the specifiedorg.projog.core.term.List.Methods in org.projog.core.term with parameters of type TermModifier and TypeMethodDescriptionstatic voidTermUtils.assertType(Term t, TermType type) static voidBacktracks allTerms in the specified array.static NumericTermUtils.castToNumeric(Term t) intCompares the two arguments for order.static Term[]Returns copies of the specified {link Term}sstatic TermListFactory.createList(Term[] terms) Returns a newListwith the specified terms and a empty list as the final tail element.static TermListFactory.createList(Term[] terms, Term tail) Returns a newListwith the specified terms and the second parameter as the tail element.static ListListFactory.createList(Term head, Term tail) Returns a newListwith specified head and tail.static TermStructureFactory.createStructure(String functor, Term argument) static TermStructureFactory.createStructure(String functor, Term[] args) static TermStructureFactory.createStructure(String functor, Term firstArgument, Term secondArgument) TermFormatter.formatTerm(Term t) Returns a string representation of the specifiedTerm.TermUtils.getAllVariablesInTerm(Term argument) Returns allVariables contained in the specified term.static StringTermUtils.getAtomName(Term t) Variable.getAttributeOrDefault(VariableAttribute attributeKey, Term defaultValue) static booleanChecks is a term can be unified with at least one element of a list.booleanvoidVariable.putAttribute(VariableAttribute attributeKey, Term attributeValue) static booleanTermUtils.termsEqual(Term a, Term b) static intListUtils.toJavaUtilList(Term list) Returns a newjava.util.Listcontaining the contents of the specifiedorg.projog.core.term.List.static longTermUtils.toLong(ArithmeticOperators operators, Term t) Return the long value represented by the specified term.ListUtils.toSortedJavaUtilList(Term unsorted) Returns a newjava.util.Listcontaining the sorted contents of the specifiedorg.projog.core.term.List.booleanbooleanbooleanbooleanbooleanbooleanAttempts to unify this term to the specified term.static booleanAttempts to unify all correspondingTerms in the specified arrays.booleanMethod parameters in org.projog.core.term with type arguments of type TermModifier and TypeMethodDescriptionReturns a copy of this term.static TermListFactory.createList(Collection<? extends Term> terms) Returns a newListwith the specified terms and a empty list as the final tail element.Constructors in org.projog.core.term with parameters of type Term