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 classes for constructing
Term objects from Prolog syntax.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 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
Fields in org.projog.api declared as TermModifier and TypeFieldDescriptionprivate final TermQueryPlan.parsedInputprivate final TermQueryStatement.parsedInputprivate final TermProjogStackTraceElement.termMethods 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.Constructors in org.projog.api with parameters of type TermModifierConstructorDescription(package private)ProjogStackTraceElement(PredicateKey key, Term term) (package private)QueryResult(PredicateFactory predicateFactory, Term query, Map<String, Variable> variables) Evaluates a query.(package private)QueryStatement(PredicateFactory predicateFactory, Term prologQuery) Creates a newQueryStatementrepresenting a query specified byprologQuery. -
Uses of Term in org.projog.core.event
Fields in org.projog.core.event declared as TermMethods 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[] args, 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.Constructors in org.projog.core.event with parameters of type TermModifierConstructorDescriptionprivateSpyPointEvent(PredicateKey key, Term[] args, Object source) privateSpyPointExitEvent(PredicateKey key, Term[] args, Object source, ClauseModel clauseModel) -
Uses of Term in org.projog.core.io
Fields in org.projog.core.io declared as TermModifier and TypeFieldDescriptionprivate TermFileHandles.currentInputHandleCurrent input used by get_char and readprivate TermFileHandles.currentOutputHandleCurrent output used by put_char, nl, write and write_canonicalMethods 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.private NumericintNumericTermComparator.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.private ArithmeticOperatorArithmeticOperators.getPreprocessedArithmeticOperator(PredicateKey key, Term argument) ArithmeticOperators.getPreprocessedArithmeticOperator(Term argument) final ArithmeticOperatorAbstractArithmeticOperator.preprocess(Term expression) PreprocessableArithmeticOperator.preprocess(Term arg) private ArithmeticOperatorAbstractArithmeticOperator.preprocessBinaryOperator(Term argument1, Term argument2) private ArithmeticOperatorAbstractArithmeticOperator.preprocessUnaryOperator(Term argument) -
Uses of Term in org.projog.core.parser
Methods in org.projog.core.parser that return TermModifier and TypeMethodDescriptionSentenceParser.parseSentence()private Termprivate TermSentenceParser.toStructureFromNamedBracket(Token token) private TermSentenceParser.toStructureFromOperandAndArguments(Token token) private TermMethods in org.projog.core.parser with parameters of type TermModifier and TypeMethodDescriptionprivate UserDefinedPredicateFactoryProjogSourceReader.createOrReturnUserDefinedPredicate(Term t) private voidProjogSourceReader.processQuestion(Term t) private voidProjogSourceReader.storeParsedTerm(Term parsedTerm) -
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 booleanfinal booleanprotected booleanprotected booleanprotected booleanprivate static StringPredicateKey.getInvalidTypeExceptionMessage(Term t) protected PredicateAbstractPredicateFactory.getPredicate(Term arg) final PredicateAbstractPredicateFactory.getPredicate(Term[] args) protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2) protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2, Term arg3) protected PredicateAbstractPredicateFactory.getPredicate(Term arg1, Term arg2, Term arg3, Term arg4) final PredicateAbstractSingleResultPredicate.getPredicate(Term[] args) PredicateFactory.getPredicate(Term[] args) Returns aPredicateto be used in the evaluation of a goal.Predicates.getPredicate(Term t) UnknownPredicate.getPredicate(Term[] args) Predicates.getPredicateFactory(Term term) Returns thePredicateFactoryassociated with the specifiedTerm.Predicates.getPreprocessedPredicateFactory(Term term) PreprocessablePredicateFactory.preprocess(Term arg) UnknownPredicate.preprocess(Term arg) -
Uses of Term in org.projog.core.predicate.builtin.classify
Fields in org.projog.core.predicate.builtin.classify declared as TermModifier and TypeFieldDescriptionprivate final TermCharType.CharTypePredicate.character(package private) final Term[]CharType.State.charactersprivate final TermCharType.CharTypePredicate.typeMethods in org.projog.core.predicate.builtin.classify that return TermMethods in org.projog.core.predicate.builtin.classify with parameters of type TermModifier and TypeMethodDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected PredicateCharType.getPredicate(Term character, Term type) (package private) booleanConstructors in org.projog.core.predicate.builtin.classify with parameters of type TermModifierConstructorDescriptionprivateCharTypePredicate(Term character, Term type, CharType.State state) (package private)State(Term[] characters, CharType.Type[] characterTypes) -
Uses of Term in org.projog.core.predicate.builtin.clp
Classes in org.projog.core.predicate.builtin.clp that implement TermModifier and TypeClassDescription(package private) final classATermthat could represent a number of possible numeric values.Methods in org.projog.core.predicate.builtin.clp that return TermModifier and TypeMethodDescriptionTerm[]ClpVariable.getArgs()ClpVariable.getArgument(int index) Methods in org.projog.core.predicate.builtin.clp with parameters of type TermModifier and TypeMethodDescriptionprivate voidIn.assertRange(Term t) org.projog.clp.ConstraintBooleanConstraintPredicate.createConstraint(Term[] args, Set<ClpVariable> vars) org.projog.clp.ConstraintConstraintFactory.createConstraint(Term[] args, Set<ClpVariable> vars) org.projog.clp.ConstraintNumericConstraintPredicate.createConstraint(Term[] args, Set<ClpVariable> vars) protected booleanbooleanbooleanbooleanprivate Set<ClpVariable> Resolve.getAllVariables(Term arg) find all variables in input argument, and all variables connected to them via constraintsprivate List<org.projog.clp.Expression> Distinct.getOrCreateVariables(Term arg) BooleanConstraintPredicate.getPredicate(Term[] args) Resolve.getPredicate(Term arg) private Set<ClpVariable> Resolve.getVariablesFromInputArgument(Term arg) find all variables in the input argument - input argument could be a single variable or a list of variablesprivate booleanprivate booleanprivate org.projog.clp.ConstraintBooleanConstraintPredicate.toConstraint(Term t, Set<ClpVariable> vars) org.projog.clp.ExpressionExpressionFactories.toExpression(Term t, Set<ClpVariable> vars) booleanprivate static booleanClpVariable.unifyClpVariable(ClpVariable a, Term b) private boolean -
Uses of Term in org.projog.core.predicate.builtin.compare
Classes in org.projog.core.predicate.builtin.compare that implement interfaces with type arguments of type TermFields in org.projog.core.predicate.builtin.compare declared as TermModifier and TypeFieldDescription(package private) final TermBetween.Retryable.middleprivate final TermPredSort.PredSortComparator.predicateNameprivate final TermPredSort.PreprocessedPredSort.predicateNameMethods in org.projog.core.predicate.builtin.compare with parameters of type TermModifier and TypeMethodDescriptionprotected intintprotected booleanprotected booleanprotected booleanbooleanbooleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprivate static booleanPredSort.evaluatePredSort(PredicateFactory pf, Term predicateName, Term input, Term sorted) protected PredicateBetween.getPredicate(Term low, Term high, Term middle) PredSort.PreprocessedPredSort.getPredicate(Term[] args) private booleanprivate booleanIs.preprocess(Term arg) PredSort.preprocess(Term term) Method parameters in org.projog.core.predicate.builtin.compare with type arguments of type TermModifier and TypeMethodDescriptionprivate booleanConstructors in org.projog.core.predicate.builtin.compare with parameters of type TermModifierConstructorDescriptionprivatePredSortComparator(PredicateFactory pf, Term predicateName) privatePreprocessedPredSort(PredicateFactory pf, Term predicateName) (package private) -
Uses of Term in org.projog.core.predicate.builtin.compound
Fields in org.projog.core.predicate.builtin.compound declared as TermModifier and TypeFieldDescriptionprivate final TermAbstractCollectionOf.bagprivate TermConjunction.ConjunctionPredicate.copySecondArgumentprivate final TermAbstractCollectionOf.goalprivate final TermDisjunction.DisjunctionPredicate.inputArg1private final TermDisjunction.DisjunctionPredicate.inputArg2private final TermConjunction.ConjunctionPredicate.originalSecondArgumentprivate final TermAbstractCollectionOf.templateFields in org.projog.core.predicate.builtin.compound with type parameters of type TermModifier and TypeFieldDescriptionprivate Iterator<Map.Entry<AbstractCollectionOf.Key, List<Term>>> AbstractCollectionOf.itrAbstractCollectionOf.Key.termsMethods in org.projog.core.predicate.builtin.compound that return TermModifier and TypeMethodDescriptionprivate static TermFindAll.createListOfAllSolutions(Term template, Predicate predicate) Methods in org.projog.core.predicate.builtin.compound with parameters of type TermModifier and TypeMethodDescriptionprotected abstract voidprotected void"bagof" returns all elements (including duplicates) in the order they were found.protected void"setof" excludes duplicates and orders elements usingTermComparator.private Disjunction.DisjunctionPredicateDisjunction.createDisjunction(Term firstArg, Term secondArg) private PredicateDisjunction.createIfThenElse(Term ifThenTerm, Term elseTerm) private static TermFindAll.createListOfAllSolutions(Term template, Predicate predicate) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprivate static booleanFindAll.evaluateFindAll(PredicateFactory pf, Term template, Term goal, Term output) private static booleanNot.evaluateNot(Term t, PredicateFactory pf) private static PredicateLimit.getLimitPredicate(PredicateFactory pf, Term maxAttempts, Term goal) protected PredicateBagOf.getPredicate(Term template, Term goal, Term bag) BagOf.PreprocessedBagOf.getPredicate(Term[] args) private PredicateCall.getPredicate(Term arg) Call.getPredicate(Term[] args) protected PredicateConjunction.getPredicate(Term arg1, Term arg2) protected PredicateConjunction.OptimisedRetryableConjuction.getPredicate(Term arg1, Term arg2) private PredicateDisjunction.DisjunctionPredicate.getPredicate(PredicateFactory pf, Term t) protected PredicateDisjunction.getPredicate(Term firstArg, Term secondArg) Disjunction.OptimisedDisjunction.getPredicate(Term[] args) Disjunction.OptimisedIfThenElse.getPredicate(Term[] args) FindAll.PreprocessedFindAll.getPredicate(Term[] args) protected PredicateIfThen.getPredicate(Term conditionTerm, Term thenTerm) IfThen.OptimisedIfThen.getPredicate(Term[] args) Limit.getPredicate(Term maxAttempts, Term goal) Limit.OptimisedLimit.getPredicate(Term[] args) protected PredicateSetOf.getPredicate(Term template, Term goal, Term bag) SetOf.PreprocessedSetOf.getPredicate(Term[] args) AbstractCollectionOf.getVariablesNotInTemplate(Term template, Term goal) private voidBagOf.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) Method parameters in org.projog.core.predicate.builtin.compound with type arguments of type TermModifier and TypeMethodDescriptionprotected abstract voidprotected void"bagof" returns all elements (including duplicates) in the order they were found.protected void"setof" excludes duplicates and orders elements usingTermComparator.Constructors in org.projog.core.predicate.builtin.compound with parameters of type TermModifierConstructorDescriptionprotectedAbstractCollectionOf(PredicateFactory pf, Term template, Term goal, Term bag) privateBagOfPredicate(PredicateFactory pf, Term template, Term goal, Term bag) privateConjunctionPredicate(Predicate firstPredicate, PredicateFactory secondPredicateFactory, Term secondArgument) privateDisjunctionPredicate(PredicateFactory pf1, PredicateFactory pf2, Term inputArg1, Term inputArg2) privateSetOfPredicate(PredicateFactory pf, Term template, Term goal, Term bag) -
Uses of Term in org.projog.core.predicate.builtin.construct
Fields in org.projog.core.predicate.builtin.construct declared as TermModifier and TypeFieldDescription(package private) final TermAtomConcat.Retryable.arg1(package private) final TermAtomConcat.Retryable.arg2Methods in org.projog.core.predicate.builtin.construct that return TermModifier and TypeMethodDescriptionprotected TermTermSplit.charToTerm(char c) private TermFunctor.createTerm(Term functor, Term arity) Creates a term using the given functor (name) and arity (number of arguments).private Termprivate TermUniv.toPredicate(Term t) private TermMethods in org.projog.core.predicate.builtin.construct with parameters of type TermModifier and TypeMethodDescriptionprivate voidTermSplit.appendListElementsToString(StringBuffer sb, Term t) private voidAtomConcat.assertAtomOrVariable(Term t) private TermFunctor.createTerm(Term functor, Term arity) Creates a term using the given functor (name) and arity (number of arguments).protected booleanprivate booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanbooleanprivate booleanTermSplit.evaluateWithConcreteFirstArgument(Term arg1, Term arg2) Convertsarg1to a list and attempts to unify it witharg2.private booleanTermSplit.evaluateWithVariableFirstArgument(Term arg1, Term arg2) Convertsarg2from a list to an atom and attempts to unify it witharg1.protected PredicateAtomConcat.getPredicate(Term prefix, Term suffix, Term combined) private booleanprivate booleanprivate voidTermSplit.isValidConcreteFirstArgument(Term arg) private longNumberVars.numberVars(Term term, long start) private Termprivate TermUniv.toPredicate(Term t) Constructors in org.projog.core.predicate.builtin.construct with parameters of type Term -
Uses of Term in org.projog.core.predicate.builtin.db
Fields in org.projog.core.predicate.builtin.db declared as TermModifier and TypeFieldDescriptionprivate final TermRecorded.RecordedPredicate.keyprivate final TermRecorded.RecordedPredicate.referenceprivate final TermRecord.valueprivate final TermRecorded.RecordedPredicate.value(package private) final TermRecordedDatabase.Link.valueMethods in org.projog.core.predicate.builtin.db that return TermModifier and TypeMethodDescription(package private) TermRecord.getKey()(package private) TermRecord.getValue()Methods in org.projog.core.predicate.builtin.db with parameters of type TermModifier and TypeMethodDescription(package private) IntegerNumberRecordedDatabase.add(PredicateKey key, Term value, boolean addLast) Associates a value with a key.private RecordedDatabase.LinkRecordedDatabase.createLink(RecordedDatabase.Chain chain, Term value, boolean addLast) protected booleanprotected booleanprotected booleanRecorded.getIterator(Term key, RecordedDatabase database) protected PredicateRecorded.getPredicate(Term key, Term value) protected PredicateRecorded.getPredicate(Term key, Term value, Term reference) private booleanConstructors in org.projog.core.predicate.builtin.db with parameters of type TermModifierConstructorDescription(package private)Link(RecordedDatabase.Chain chain, IntegerNumber reference, Term value) (package private)Record(PredicateKey key, IntegerNumber reference, Term value) private -
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 TypeMethodDescriptionbooleanprotected PredicateRepeatSetAmount.getPredicate(Term arg) -
Uses of Term in org.projog.core.predicate.builtin.io
Fields in org.projog.core.predicate.builtin.io with type parameters of type TermMethods in org.projog.core.predicate.builtin.io that return TermMethods in org.projog.core.predicate.builtin.io with parameters of type TermModifier and TypeMethodDescriptionprivate StringWritef.align(Writef.Formatter f, Term t) private voidSeen.close(FileHandles fileHandles, Term handle) private voidTold.close(FileHandles fileHandles, Term handle) private StringWritef.concat(Writef.Formatter f, Term t) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected boolean(package private) Stringprivate StringMethod parameters in org.projog.core.predicate.builtin.io with type arguments of type TermConstructor parameters in org.projog.core.predicate.builtin.io with type arguments of type TermModifierConstructorDescription(package private)Formatter(String text, List<Term> args, TermFormatter termFormatter) -
Uses of Term in org.projog.core.predicate.builtin.kb
Fields in org.projog.core.predicate.builtin.kb declared as TermModifier and TypeFieldDescriptionprivate final TermCurrentPredicate.Retryable.argprivate final TermInspect.InspectPredicate.clauseBodyprivate final TermInspect.InspectPredicate.clauseHeadMethods in org.projog.core.predicate.builtin.kb that return TermModifier and TypeMethodDescriptionprivate Term[]AddUserDefinedArithmeticOperator.UserDefinedArithmeticOperator.createArgumentsIncludingResult(Term[] args, Variable result) Methods in org.projog.core.predicate.builtin.kb with parameters of type TermModifier and TypeMethodDescriptionprivate voidprivate voidprivate Term[]AddUserDefinedArithmeticOperator.UserDefinedArithmeticOperator.createArgumentsIncludingResult(Term[] args, Variable result) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected PredicateCurrentPredicate.getPredicate(Term arg) protected PredicateInspect.getPredicate(Term clauseHead) protected PredicateInspect.getPredicate(Term clauseHead, Term clauseBody) private StringEnsureLoaded.getResourceName(Term arg) private voidFlag.put(PredicateKey pk, Term value) private booleanInspect.InspectPredicate.unifiable(Term clauseHead, Term clauseBody, ClauseModel clauseModel) Constructors in org.projog.core.predicate.builtin.kb with parameters of type TermModifierConstructorDescriptionprivateInspectPredicate(Term clauseHead, Term clauseBody, Iterator<ClauseModel> implications) privateRetryable(Term arg, Set<PredicateKey> keys) -
Uses of Term in org.projog.core.predicate.builtin.list
Fields in org.projog.core.predicate.builtin.list declared as TermModifier and TypeFieldDescription(package private) final TermFold.OptimisedFold.actionprivate final TermFold.Retryable.actionprivate final TermMapList.Retryable.action(package private) TermReverse.ReversePredicate.arg1(package private) TermReverse.ReversePredicate.arg2(package private) TermReverse.ReversePredicate.arg3(package private) TermReverse.ReversePredicate.arg4(package private) TermAppend.AppendPredicate.concatenatedprivate TermMember.MemberPredicate.currentListprivate final TermMember.MemberPredicate.element(package private) final TermNth.Retryable.element(package private) TermSelect.SelectPredicate.firstArg(package private) TermSelect.SelectPredicate.fourthArg(package private) final TermNth.Retryable.index(package private) TermLast.LastPredicate.last(package private) final TermLength.Retryable.length(package private) final TermLength.Retryable.list(package private) TermNth.Retryable.list(package private) TermLast.LastPredicate.newHeadprivate final TermMember.MemberPredicate.originalList(package private) TermAppend.AppendPredicate.prefixprivate final TermFold.Retryable.result(package private) TermSelect.SelectPredicate.secondArgprivate final TermFold.Retryable.start(package private) TermAppend.AppendPredicate.suffix(package private) TermLast.LastPredicate.tail(package private) TermLast.LastPredicate.termToUnifyLastElementWith(package private) final TermSelect.SelectPredicate.thirdArgFields in org.projog.core.predicate.builtin.list with type parameters of type TermModifier and TypeFieldDescriptionFold.Retryable.backtrack1Fold.Retryable.backtrack2MemberCheck.PreprocessedMemberCheck.javaListprivate static final Comparator<Term> KeySort.KEY_VALUE_PAIR_COMPARATORFold.Retryable.valuesMethods in org.projog.core.predicate.builtin.list that return TermModifier and TypeMethodDescriptionstatic Term[]PartialApplicationUtils.createArguments(Term partiallyAppliedFunction, Term... extraArguments) private TermMethods in org.projog.core.predicate.builtin.list that return types with arguments of type TermMethods in org.projog.core.predicate.builtin.list with parameters of type TermModifier and TypeMethodDescriptionstatic booleanPartialApplicationUtils.apply(PredicateFactory pf, Term[] args) private voidprivate Atomstatic Term[]PartialApplicationUtils.createArguments(Term partiallyAppliedFunction, Term... extraArguments) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprivate booleanbooleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprivate static booleanFold.evaluateFold(PredicateFactory pf, Term action, List<Term> values, Term start, Term result) private static booleanSubList.evaluateSubList(PredicateFactory pf, Term partiallyAppliedFunction, Term args, Term filteredOutput) Flatten.flattenList(Term input) static PredicateFactoryPartialApplicationUtils.getCurriedPredicateFactory(Predicates predicates, Term partiallyAppliedFunction) private static PredicateFold.getFoldPredicate(PredicateFactory pf, Term action, Term values, Term start, Term result) private static PredicateMapList.getMapListPredicate(PredicateFactory pf, Term[] input) static PredicateFactoryPartialApplicationUtils.getPartiallyAppliedPredicateFactory(Predicates predicates, Term partiallyAppliedFunction, int numberOfExtraArguments) protected PredicateAppend.getPredicate(Term prefix, Term suffix, Term concatenated) protected PredicateFold.getPredicate(Term atom, Term values, Term start, Term result) Fold.OptimisedFold.getPredicate(Term[] args) protected PredicateLast.getPredicate(Term list, Term termToUnifyLastElementWith) protected PredicateLength.getPredicate(Term list, Term expectedLength) MapList.getPredicate(Term[] input) MapList.PreprocessedMapList.getPredicate(Term[] args) protected PredicateMember.getPredicate(Term element, Term list) protected PredicateNth.getPredicate(Term index, Term list, Term element) static PredicatePartialApplicationUtils.getPredicate(PredicateFactory pf, Term action, Term... args) protected PredicateReverse.getPredicate(Term list1, Term list2) Select.getPredicate(Term element, Term inputList, Term outputList) SubList.PreprocessedSubList.getPredicate(Term[] args) static PredicateFactoryPartialApplicationUtils.getPreprocessedCurriedPredicateFactory(Predicates predicates, Term partiallyAppliedFunction) static PredicateFactoryPartialApplicationUtils.getPreprocessedPartiallyAppliedPredicateFactory(Predicates predicates, Term partiallyAppliedFunction, int extraArgs) static booleanPartialApplicationUtils.isAtomOrStructure(Term arg) (package private) static booleanPartialApplicationUtils.isKeyValuePair(Term t) static booleanprivate booleanprivate booleanSubList.isValidArguments(Term partiallyAppliedFunction, Term arg) Fold.preprocess(Term arg) MapList.preprocess(Term input) MemberCheck.preprocess(Term term) SubList.preprocess(Term term) private booleanSubtractFromList.shouldBeRemoved(Term item, List<Term> itemsToRemoveAsList) private TermMethod parameters in org.projog.core.predicate.builtin.list with type arguments of type TermModifier and TypeMethodDescriptionprivate booleanKeySort.assertKeyValuePairs(List<Term> elements) private static booleanFold.evaluateFold(PredicateFactory pf, Term action, List<Term> values, Term start, Term result) private voidSortAsSet.removeDuplicates(List<Term> elements) private booleanSubtractFromList.shouldBeRemoved(Term item, List<Term> itemsToRemoveAsList) Constructors in org.projog.core.predicate.builtin.list with parameters of type TermModifierConstructorDescription(package private)AppendPredicate(Term prefix, Term suffix, Term concatenated) (package private)LastPredicate(Term last, Term tail, Term termToUnifyLastElementWith) privateMemberPredicate(Term element, Term originalList) OptimisedFold(PredicateFactory pf, Term action) privateprivateprivateRetryable(PredicateFactory pf, Term action, List<Term>[] lists) (package private)(package private)ReversePredicate(Term list1, Term list2) (package private)SelectPredicate(Term firstArg, Term secondArg, Term thirdArg, Term fourthArg) Constructor parameters in org.projog.core.predicate.builtin.list with type arguments of type TermModifierConstructorDescription(package private)PreprocessedMemberCheck(List<Term> javaList) private -
Uses of Term in org.projog.core.predicate.builtin.reif
Methods in org.projog.core.predicate.builtin.reif that return TermMethods in org.projog.core.predicate.builtin.reif with parameters of type TermModifier and TypeMethodDescriptionprivate static voidDif.appendAttribute(Variable v, Term attributeElement) booleanbooleanMethod parameters in org.projog.core.predicate.builtin.reif with type arguments 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
Fields in org.projog.core.predicate.udp declared as TermModifier and TypeFieldDescriptionprivate final TermClauseModel.antecedentprivate final Term[]SingleRetryableRulePredicateFactory.RetryableRulePredicate.argsprivate final TermClauseModel.consequentprivate final Term[]InterpretedTailRecursivePredicate.currentQueryArgsprivate final Term[]InterpretedTailRecursivePredicate.firstClauseConsequentArgsprivate final Term[]InterpretedTailRecursivePredicateFactory.firstClauseConsequentArgsprivate final Term[]InterpretedTailRecursivePredicate.firstClauseOriginalTermsprivate final Term[]InterpretedTailRecursivePredicateFactory.firstClauseOriginalTermsprivate final TermClauseModel.originalprivate final Term[]InterpretedUserDefinedPredicate.queryArgsprivate final Term[]InterpretedTailRecursivePredicate.secondClauseConsequentArgsprivate final Term[]InterpretedTailRecursivePredicateFactory.secondClauseConsequentArgsprivate final Term[]InterpretedTailRecursivePredicate.secondClauseOriginalTermsprivate final Term[]InterpretedTailRecursivePredicateFactory.secondClauseOriginalTerms(package private) final TermKeyFactories.Key2.t1(package private) final TermKeyFactories.Key3.t1(package private) final TermKeyFactories.Key2.t2(package private) final TermKeyFactories.Key3.t2(package private) final TermKeyFactories.Key3.t3private static final TermClauseModel.TRUEFields in org.projog.core.predicate.udp with type parameters of type TermModifier and TypeFieldDescriptionDynamicUserDefinedPredicateFactory.indexprivate final LinkedHashMap<Term, ClauseAction> StaticUserDefinedPredicateFactory.LinkedHashMapPredicateFactory.mapMethods in org.projog.core.predicate.udp that return TermModifier and TypeMethodDescriptionprivate static TermDefiniteClauseGrammerConvertor.appendToEndOfList(Term list, Term newTail) (package private) static Termprivate static TermDefiniteClauseGrammerConvertor.convertConjunctionOfAtomsAntecedent(Term consequent, Term[] conjunctionOfAtoms) private static TermDefiniteClauseGrammerConvertor.convertSingleListTermAntecedent(Term consequent, Term antecedent) private static TermDefiniteClauseGrammerConvertor.createNewPredicate(Term original, Term previous, Term next) ClauseModel.getAntecedent()Returns the body of the clause.private static TermDefiniteClauseGrammerConvertor.getAntecedent(Term dcgTerm) ClauseModel.getConsequent()Returns the head of the clause.private static TermDefiniteClauseGrammerConvertor.getConsequent(Term dcgTerm) private TermTailRecursivePredicateMetaData.getFinalFunction(Term t) ClauseModel.getOriginal()Methods in org.projog.core.predicate.udp with parameters of type TermModifier and TypeMethodDescriptionprivate static TermDefiniteClauseGrammerConvertor.appendToEndOfList(Term list, Term newTail) (package private) static Termprivate static TermDefiniteClauseGrammerConvertor.convertConjunctionOfAtomsAntecedent(Term consequent, Term[] conjunctionOfAtoms) private static TermDefiniteClauseGrammerConvertor.convertSingleListTermAntecedent(Term consequent, Term antecedent) private static boolean[]Clauses.createArray(int numArgs, Term query) private intIndexes.createBitmask(Term[] args) static ClauseModelClauseModel.createClauseModel(Term original) (package private) static PredicatePredicateUtils.createFailurePredicate(SpyPoints.SpyPoint spyPoint, Term[] args) (package private) static ClausesClauses.createFromActions(KnowledgeBase kb, List<ClauseAction> actions, Term arg) private static TermDefiniteClauseGrammerConvertor.createNewPredicate(Term original, Term previous, Term next) private PredicateStaticUserDefinedPredicateFactory.createPredicate(Term[] args, ClauseAction[] clauses) (package private) static PredicatePredicateUtils.createSingleClausePredicate(ClauseAction clause, SpyPoints.SpyPoint spyPoint, Term[] args) (package private) static PredicateSingleNonRetryableRulePredicateFactory.evaluateClause(ClauseAction clause, SpyPoints.SpyPoint spyPoint, Term[] args) private static TermDefiniteClauseGrammerConvertor.getAntecedent(Term dcgTerm) private static TermDefiniteClauseGrammerConvertor.getConsequent(Term dcgTerm) private TermTailRecursivePredicateMetaData.getFinalFunction(Term t) (package private) ClauseAction[]Index.getMatches(Term[] args) ClauseAction.getPredicate(Term[] input) ClauseActionFactory.AlwaysMatchedFact.getPredicate(Term[] input) ClauseActionFactory.ImmutableConsequentRule.getPredicate(Term[] input) ClauseActionFactory.ImmutableFact.getPredicate(Term[] input) ClauseActionFactory.MutableFact.getPredicate(Term[] input) ClauseActionFactory.MutableRule.getPredicate(Term[] input) ClauseActionFactory.VariableAntecedantClauseAction.getPredicate(Term[] input) ClauseActionFactory.ZeroArgConsequentRule.getPredicate(Term[] input) DynamicUserDefinedPredicateFactory.getPredicate(Term[] args) InterpretedTailRecursivePredicateFactory.getPredicate(Term[] args) NeverSucceedsPredicateFactory.getPredicate(Term[] args) SingleNonRetryableRulePredicateFactory.getPredicate(Term[] args) SingleRetryableRulePredicateFactory.getPredicate(Term[] args) StaticUserDefinedPredicateFactory.getPredicate(Term[] args) StaticUserDefinedPredicateFactory.IndexablePredicateFactory.getPredicate(Term[] args) StaticUserDefinedPredicateFactory.LinkedHashMapPredicateFactory.getPredicate(Term[] args) StaticUserDefinedPredicateFactory.NotIndexablePredicateFactory.getPredicate(Term[] args) StaticUserDefinedPredicateFactory.SingleIndexPredicateFactory.getPredicate(Term[] args) private static booleanDefiniteClauseGrammerConvertor.hasSingleListWithSingleAtomElement(Term[] terms) (package private) ClauseAction[]private static booleanClauses.isAnonymousVariable(Term arg) (package private) static boolean(package private) static booleanClauseActionFactory.isMatch(ClauseAction clause, Term[] queryArgs) Returns true if the arguments unify with the consequent of the clause.private booleanInterpretedTailRecursivePredicateFactory.isRetryable(Term[] args) private static booleanprivate static List<ClauseAction> StaticUserDefinedPredicateFactory.optimisePredicateFactory(KnowledgeBase kb, ClauseAction[] data, Term arg) SingleNonRetryableRulePredicateFactory.preprocess(Term arg) SingleRetryableRulePredicateFactory.preprocess(Term arg) StaticUserDefinedPredicateFactory.IndexablePredicateFactory.preprocess(Term arg) StaticUserDefinedPredicateFactory.LinkedHashMapPredicateFactory.preprocess(Term arg) StaticUserDefinedPredicateFactory.NotIndexablePredicateFactory.preprocess(Term arg) StaticUserDefinedPredicateFactory.preprocess(Term arg) StaticUserDefinedPredicateFactory.SingleIndexPredicateFactory.preprocess(Term arg) static booleanUnifies the arguments in the head (consequent) of a clause with a query.Constructors in org.projog.core.predicate.udp with parameters of type TermModifierConstructorDescriptionprivateClauseModel(Term original, Term consequent, Term antecedent) (package private)InterpretedTailRecursivePredicate(SpyPoints.SpyPoint spyPoint, Term[] inputArgs, PredicateFactory[] firstClausePredicateFactories, Term[] firstClauseConsequentArgs, Term[] firstClauseOriginalTerms, PredicateFactory[] secondClausePredicateFactories, Term[] secondClauseConsequentArgs, Term[] secondClauseOriginalTerms, boolean isRetryable) InterpretedUserDefinedPredicate(Iterator<ClauseAction> clauseActions, SpyPoints.SpyPoint spyPoint, Term[] queryArgs) (package private)(package private)RetryableRulePredicate(ClauseAction clause, SpyPoints.SpyPoint spyPoint, Term[] queryArgs) -
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 classfinal 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 TypeFieldDescriptionprivate final Term[]Structure.argsstatic final Term[]TermUtils.EMPTY_ARRAYATermarray of length 0.private final TermList.headprivate final TermList.tailprivate TermVariable.valueTheTermthis object is currently instantiated with (ornullif it is currently uninstantiated)Fields in org.projog.core.term with type parameters of type TermModifier and TypeFieldDescriptionprivate final Map<VariableAttribute, Term> Variable.attributesA collection of attributes associated with the variable.Methods in org.projog.core.term that return TermModifier and TypeMethodDescriptionReturns 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 TermStructure.createStructure(String functor, Term[] args) Factory method for creatingStructureinstances.Term[]Atom.getArgs()Term[]DecimalFraction.getArgs()Term[]EmptyList.getArgs()Term[]IntegerNumber.getArgs()Term[]List.getArgs()Term[]Structure.getArgs()Term[]Term.getArgs()Returns an array of this terms's arguments.Term[]Variable.getArgs()CallsTerm.getArgs()on theTermthis variable is instantiated with.Atom.getArgument(int index) DecimalFraction.getArgument(int index) EmptyList.getArgument(int index) IntegerNumber.getArgument(int index) List.getArgument(int index) Structure.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()private static TermTerm.getTerm()Returns the current instantiated state of this term.Variable.getTerm()private TermVariable.getValue()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.private booleanTermFormatter.canBePreceededByEqualPriority(Term next) static NumericTermUtils.castToNumeric(Term t) intCompares the two arguments for order.private intTermComparator.compareStructures(Term t1, Term t2) 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 TermStructure.createStructure(String functor, Term[] args) Factory method for creatingStructureinstances.TermFormatter.formatTerm(Term t) Returns a string representation of the specifiedTerm.TermUtils.getAllVariablesInTerm(Term argument) Returns allVariables contained in the specified term.private static voidTermUtils.getAllVariablesInTerm(Term argument, Set<Variable> variables) static StringTermUtils.getAtomName(Term t) Variable.getAttributeOrDefault(VariableAttribute attributeKey, Term defaultValue) private static Termprivate intTermFormatter.getPriority(Term next) private static booleanStructure.isImmutable(Term[] args) private booleanTermFormatter.isInfixOperator(Term t) static booleanChecks is a term can be unified with at least one element of a list.private booleanTermFormatter.isPostfixOperator(Term t) private booleanTermFormatter.isPrefixOperator(Term t) booleanvoidVariable.putAttribute(VariableAttribute attributeKey, Term attributeValue) private booleanTermFormatter.shouldLeftArgumentBeBracketed(Term next, Term parentInfixTerm, int parentInfixPriority) private booleanTermFormatter.shouldRightArgumentBeBracketed(Term next, Term parentInfixTerm, int parentInfixPriority) 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.booleanbooleanbooleanbooleanbooleanbooleanbooleanAttempts to unify this term to the specified term.static booleanAttempts to unify all correspondingTerms in the specified arrays.booleanprivate voidTermFormatter.write(Term t, StringBuilder sb) private voidTermFormatter.writeInfixOperator(Term p, StringBuilder sb) private voidTermFormatter.writeList(Term p, StringBuilder sb) private voidTermFormatter.writeNonOperatorPredicate(Term p, StringBuilder sb) private voidTermFormatter.writePostfixOperator(Term p, StringBuilder sb) private voidTermFormatter.writePredicate(Term p, StringBuilder sb) private voidTermFormatter.writePrefixOperator(Term p, StringBuilder sb) Method parameters in org.projog.core.term with type arguments of type TermModifier and TypeMethodDescriptionstatic TermListFactory.createList(Collection<? extends Term> terms) Returns a newListwith the specified terms and a empty list as the final tail element.private ListList.traverse(UnaryOperator<Term> f) Used byList.getTerm()andList.copy(Map)to traverse a list without using recursion.Constructors in org.projog.core.term with parameters of type TermModifierConstructorDescriptionCreates a new list with the specified head and tail.privatePrivate constructor to force use ofStructure.createStructure(String, Term[])Constructor parameters in org.projog.core.term with type arguments of type TermModifierConstructorDescriptionprivateVariable(String id, Map<VariableAttribute, Term> attributes)