- Abs - Class in org.projog.core.math.builtin
-
abs
- returns the absolute value of a numeric argument.
- Abs() - Constructor for class org.projog.core.math.builtin.Abs
-
- absolute() - Static method in class org.projog.core.predicate.builtin.clp.CommonExpression
-
- AbstractArithmeticOperator - Class in org.projog.core.math
-
- AbstractArithmeticOperator() - Constructor for class org.projog.core.math.AbstractArithmeticOperator
-
- AbstractBinaryArithmeticOperator - Class in org.projog.core.math
-
A template for ArithmeticOperator
s that accept two arguments.
- AbstractBinaryArithmeticOperator() - Constructor for class org.projog.core.math.AbstractBinaryArithmeticOperator
-
- AbstractBinaryIntegerArithmeticOperator - Class in org.projog.core.math
-
A template for
ArithmeticOperator
s that accept two arguments of type
TermType.INTEGER
.
- AbstractBinaryIntegerArithmeticOperator() - Constructor for class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
-
- AbstractPredicateFactory - Class in org.projog.core.predicate
-
- AbstractPredicateFactory() - Constructor for class org.projog.core.predicate.AbstractPredicateFactory
-
- AbstractSingleResultPredicate - Class in org.projog.core.predicate
-
Superclass of "plug-in" predicates that are not re-evaluated as part of backtracking.
- AbstractSingleResultPredicate() - Constructor for class org.projog.core.predicate.AbstractSingleResultPredicate
-
- AbstractUnaryArithmeticOperator - Class in org.projog.core.math
-
A template for ArithmeticOperator
s that accept exactly one argument.
- AbstractUnaryArithmeticOperator() - Constructor for class org.projog.core.math.AbstractUnaryArithmeticOperator
-
- Add - Class in org.projog.core.math.builtin
-
+
- performs addition.
- Add() - Constructor for class org.projog.core.math.builtin.Add
-
- add() - Static method in class org.projog.core.predicate.builtin.clp.CommonExpression
-
- addArithmeticOperator(PredicateKey, ArithmeticOperator) - Method in class org.projog.api.Projog
-
- addArithmeticOperator(PredicateKey, ArithmeticOperator) - Method in class org.projog.core.math.ArithmeticOperators
-
- addArithmeticOperator(PredicateKey, String) - Method in class org.projog.core.math.ArithmeticOperators
-
- AddArithmeticOperator - Class in org.projog.core.predicate.builtin.kb
-
pj_add_arithmetic_operator(X,Y)
- defines a Java class as an arithmetic operator.
- AddArithmeticOperator() - Constructor for class org.projog.core.predicate.builtin.kb.AddArithmeticOperator
-
- addClause(ClauseModel) - Method in exception org.projog.core.ProjogException
-
- AddExpressionFactory - Class in org.projog.core.predicate.builtin.clp
-
pj_add_clp_expression(X,Y)
- defines a Java class as an CLP expression.
- AddExpressionFactory() - Constructor for class org.projog.core.predicate.builtin.clp.AddExpressionFactory
-
- addExpressionFactory(PredicateKey, String) - Method in class org.projog.core.predicate.builtin.clp.ExpressionFactories
-
- addFirst(ClauseModel) - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- addFirst(ClauseModel) - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
Not supported.
- addFirst(ClauseModel) - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Adds a clause to the beginning of the predicate's list of clauses.
- addInstance(Class<?>, Object) - Method in class org.projog.core.kb.KnowledgeBaseServiceLocator
-
Adds the specified instance
with the specified referenceType
as its key.
- addLast(ClauseModel) - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- addLast(ClauseModel) - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
Adds new clause to list of clauses for this predicate.
- addLast(ClauseModel) - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Adds a clause to the end of the predicate's list of clauses.
- addListener(ProjogListener) - Method in class org.projog.api.Projog
-
Registers an ProjogListener
to receive notifications of events generated during the evaluation of Prolog
goals.
- addListener(ProjogListener) - Method in class org.projog.core.event.ProjogListeners
-
Adds a listener to the set of listeners.
- addOperand(String, String, int) - Method in class org.projog.core.parser.Operands
-
Adds a new operator.
- addPredicateFactory(PredicateKey, PredicateFactory) - Method in class org.projog.api.Projog
-
- AddPredicateFactory - Class in org.projog.core.predicate.builtin.kb
-
pj_add_predicate(X,Y)
- defines a Java class as a built-in predicate.
- AddPredicateFactory(KnowledgeBase) - Constructor for class org.projog.core.predicate.builtin.kb.AddPredicateFactory
-
- addPredicateFactory(PredicateKey, String) - Method in class org.projog.core.predicate.Predicates
-
- addPredicateFactory(PredicateKey, PredicateFactory) - Method in class org.projog.core.predicate.Predicates
-
- AddUserDefinedArithmeticOperator - Class in org.projog.core.predicate.builtin.kb
-
arithmetic_function(X)
- defines a predicate as an arithmetic function.
- AddUserDefinedArithmeticOperator() - Constructor for class org.projog.core.predicate.builtin.kb.AddUserDefinedArithmeticOperator
-
- addUserDefinedPredicate(UserDefinedPredicateFactory) - Method in class org.projog.core.predicate.Predicates
-
Adds a user defined predicate to this object.
- AlterSpyPoint - Class in org.projog.core.predicate.builtin.debug
-
spy(X)
/ nospy(X)
- add or remove a spy point for a predicate.
- and() - Static method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- ANONYMOUS_VARIABLE_ID - Static variable in class org.projog.core.term.Variable
-
- Append - Class in org.projog.core.predicate.builtin.list
-
append(X,Y,Z)
- concatenates two lists.
- Append() - Constructor for class org.projog.core.predicate.builtin.list.Append
-
- AppendListOfLists - Class in org.projog.core.predicate.builtin.list
-
append(ListOfLists, List)
- concatenates a list of lists.
- AppendListOfLists() - Constructor for class org.projog.core.predicate.builtin.list.AppendListOfLists
-
- apply(PredicateFactory, Term[]) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- Arg - Class in org.projog.core.predicate.builtin.construct
-
arg(N,T,A)
- allows access to an argument of a structure.
- Arg() - Constructor for class org.projog.core.predicate.builtin.construct.Arg
-
- ArithmeticOperator - Interface in org.projog.core.math
-
Represents a function that returns a single numerical value.
- ArithmeticOperators - Class in org.projog.core.math
-
- ArithmeticOperators(KnowledgeBase) - Constructor for class org.projog.core.math.ArithmeticOperators
-
- Assert - Class in org.projog.core.predicate.builtin.kb
-
asserta(X)
/ assertz(X)
- adds a clause to the knowledge base.
- assertA() - Static method in class org.projog.core.predicate.builtin.kb.Assert
-
- assertType(Term, TermType) - Static method in class org.projog.core.term.TermUtils
-
- assertZ() - Static method in class org.projog.core.predicate.builtin.kb.Assert
-
- Atom - Class in org.projog.core.term
-
Represents a specific object or relationship.
- Atom(String) - Constructor for class org.projog.core.term.Atom
-
- atomChars() - Static method in class org.projog.core.predicate.builtin.construct.TermSplit
-
- atomCodes() - Static method in class org.projog.core.predicate.builtin.construct.TermSplit
-
- AtomConcat - Class in org.projog.core.predicate.builtin.construct
-
atom_concat(X, Y, Z)
- concatenates atom names.
- AtomConcat() - Constructor for class org.projog.core.predicate.builtin.construct.AtomConcat
-
- AtomicListConcat - Class in org.projog.core.predicate.builtin.list
-
atomic_list_concat(List,Separator,Atom)
/ atomic_list_concat(List,Atom)
- AtomicListConcat() - Constructor for class org.projog.core.predicate.builtin.list.AtomicListConcat
-
- calculate(Term[]) - Method in class org.projog.core.math.AbstractArithmeticOperator
-
- calculate(Numeric) - Method in class org.projog.core.math.AbstractArithmeticOperator
-
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.AbstractArithmeticOperator
-
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.AbstractBinaryArithmeticOperator
-
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
-
- calculate(Numeric) - Method in class org.projog.core.math.AbstractUnaryArithmeticOperator
-
- calculate(Term[]) - Method in interface org.projog.core.math.ArithmeticOperator
-
Returns the result of the calculation using the specified arguments.
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.builtin.Divide
-
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.builtin.Max
-
- calculate(Numeric, Numeric) - Method in class org.projog.core.math.builtin.Min
-
- calculate(Numeric) - Method in class org.projog.core.math.builtin.Random
-
- calculate(Numeric) - Method in class org.projog.core.math.builtin.Round
-
- calculate(Term[]) - Method in class org.projog.core.term.DecimalFraction
-
- calculate(Term[]) - Method in class org.projog.core.term.IntegerNumber
-
- calculateDouble(double, double) - Method in class org.projog.core.math.AbstractBinaryArithmeticOperator
-
Returns the result of evaluating an arithmetic expression using the two arguments
- calculateDouble(double) - Method in class org.projog.core.math.AbstractUnaryArithmeticOperator
-
Returns the result of evaluating an arithmetic expression using the specified argument
- calculateDouble(double) - Method in class org.projog.core.math.builtin.Abs
-
- calculateDouble(double, double) - Method in class org.projog.core.math.builtin.Add
-
Returns the sum of the two arguments
- calculateDouble(double) - Method in class org.projog.core.math.builtin.Minus
-
- calculateDouble(double, double) - Method in class org.projog.core.math.builtin.Multiply
-
Returns the product of the two arguments
- calculateDouble(double, double) - Method in class org.projog.core.math.builtin.Power
-
- calculateDouble(double, double) - Method in class org.projog.core.math.builtin.Subtract
-
Returns the difference of the two arguments
- calculateLong(long, long) - Method in class org.projog.core.math.AbstractBinaryArithmeticOperator
-
Returns the result of evaluating an arithmetic expression using the two arguments
- calculateLong(long, long) - Method in class org.projog.core.math.AbstractBinaryIntegerArithmeticOperator
-
Returns the result of evaluating an arithmetic expression using the two arguments
- calculateLong(long) - Method in class org.projog.core.math.AbstractUnaryArithmeticOperator
-
Returns the result of evaluating an arithmetic expression using the specified argument
- calculateLong(long) - Method in class org.projog.core.math.builtin.Abs
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Add
-
Returns the sum of the two arguments
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.BitwiseAnd
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.BitwiseOr
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.BitwiseXor
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.IntegerDivide
-
- calculateLong(long) - Method in class org.projog.core.math.builtin.Minus
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Modulo
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Multiply
-
Returns the product of the two arguments
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Power
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Remainder
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.ShiftLeft
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.ShiftRight
-
- calculateLong(long, long) - Method in class org.projog.core.math.builtin.Subtract
-
Returns the difference of the two arguments
- Call - Class in org.projog.core.predicate.builtin.compound
-
call(X)
- calls the goal represented by a term.
- Call() - Constructor for class org.projog.core.predicate.builtin.compound.Call
-
- castToNumeric(Term) - Static method in class org.projog.core.term.TermUtils
-
- charToTerm(char) - Method in class org.projog.core.predicate.builtin.construct.TermSplit
-
- CharType - Class in org.projog.core.predicate.builtin.classify
-
char_type(X,Y)
- classifies characters.
- CharType() - Constructor for class org.projog.core.predicate.builtin.classify.CharType
-
- ClauseAction - Interface in org.projog.core.predicate.udp
-
- ClauseModel - Class in org.projog.core.predicate.udp
-
Represents a clause.
- close(Term) - Method in class org.projog.core.io.FileHandles
-
Closes the stream represented by the specified Term
.
- Close - Class in org.projog.core.predicate.builtin.io
-
close(X)
- closes a stream.
- Close() - Constructor for class org.projog.core.predicate.builtin.io.Close
-
- CommonExpression - Class in org.projog.core.predicate.builtin.clp
-
- compare(Term, Term, ArithmeticOperators) - Method in class org.projog.core.math.NumericTermComparator
-
Compares the two arguments, representing arithmetic expressions, for order.
- compare(Numeric, Numeric) - Method in class org.projog.core.math.NumericTermComparator
-
Compares two arguments, representing
Numeric
terms, for order.
- Compare - Class in org.projog.core.predicate.builtin.compare
-
compare(X,Y,Z)
- compares arguments.
- Compare() - Constructor for class org.projog.core.predicate.builtin.compare.Compare
-
- compare(Term, Term) - Method in class org.projog.core.term.TermComparator
-
Compares the two arguments for order.
- compareTo(PredicateKey) - Method in class org.projog.core.predicate.PredicateKey
-
Ordered on name or, if names identical, number of arguments.
- compile() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- Conjunction - Class in org.projog.core.predicate.builtin.compound
-
X,Y
- conjunction.
- Conjunction() - Constructor for class org.projog.core.predicate.builtin.compound.Conjunction
-
- CONJUNCTION_PREDICATE_NAME - Static variable in class org.projog.core.kb.KnowledgeBaseUtils
-
The functor of structures representing conjunctions (,
).
- ConstraintFactory - Interface in org.projog.core.predicate.builtin.clp
-
- Consult - Class in org.projog.core.predicate.builtin.kb
-
consult(X)
- reads clauses and goals from a file.
- Consult() - Constructor for class org.projog.core.predicate.builtin.kb.Consult
-
- consultFile(File) - Method in class org.projog.api.Projog
-
Populates this objects KnowledgeBase
with clauses read from the specified file.
- ConsultList - Class in org.projog.core.predicate.builtin.kb
-
Read clauses and goals from a list of files.
- ConsultList() - Constructor for class org.projog.core.predicate.builtin.kb.ConsultList
-
- consultReader(Reader) - Method in class org.projog.api.Projog
-
Populates this objects KnowledgeBase
with clauses read from the specified Reader
.
- consultResource(String) - Method in class org.projog.api.Projog
-
Populates this objects KnowledgeBase
with clauses read from the specified resource.
- ConvertTime - Class in org.projog.core.predicate.builtin.time
-
convert_time(X,Y)
- converts a timestamp to a textual representation.
- ConvertTime() - Constructor for class org.projog.core.predicate.builtin.time.ConvertTime
-
- copy() - Method in class org.projog.core.predicate.udp.ClauseModel
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.Atom
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.DecimalFraction
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.EmptyList
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.IntegerNumber
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.List
-
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.Structure
-
- copy(Map<Variable, Variable>) - Method in interface org.projog.core.term.Term
-
Returns a copy of this term.
- copy(Term...) - Static method in class org.projog.core.term.TermUtils
-
Returns copies of the specified {link Term}s
- copy(Map<Variable, Variable>) - Method in class org.projog.core.term.Variable
-
- CopyTerm - Class in org.projog.core.predicate.builtin.construct
-
copy_term(X,Y)
- makes a copy of a term.
- CopyTerm() - Constructor for class org.projog.core.predicate.builtin.construct.CopyTerm
-
- couldReevaluationSucceed() - Method in interface org.projog.core.predicate.Predicate
-
Could the next re-evaluation of this instance succeed?
- couldReevaluationSucceed() - Method in class org.projog.core.predicate.SucceedsNeverPredicate
-
- couldReevaluationSucceed() - Method in class org.projog.core.predicate.SucceedsOncePredicate
-
- couldReevaluationSucceed() - Method in class org.projog.core.predicate.udp.InterpretedUserDefinedPredicate
-
- create(KnowledgeBase, List<ClauseModel>) - Static method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
Returns a new TailRecursivePredicateMetaData
representing the user defined predicate defined by the
specified clauses or null
if the predicate is not tail recursive.
- createArguments(Term, Term...) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- createClauseModel(Term) - Static method in class org.projog.core.predicate.udp.ClauseModel
-
- createConstraint(Term[], Set<ClpVariable>) - Method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- createConstraint(Term[], Set<ClpVariable>) - Method in interface org.projog.core.predicate.builtin.clp.ConstraintFactory
-
- createConstraint(Term[], Set<ClpVariable>) - Method in class org.projog.core.predicate.builtin.clp.NumericConstraintPredicate
-
- createExpression(Expression[]) - Method in class org.projog.core.predicate.builtin.clp.CommonExpression
-
- createExpression(Expression[]) - Method in interface org.projog.core.predicate.builtin.clp.ExpressionFactory
-
- createForTerm(Term) - Static method in class org.projog.core.predicate.PredicateKey
-
Returns a PredicateKey
for the specified term.
- createFromNameAndArity(Term) - Static method in class org.projog.core.predicate.PredicateKey
-
- createKnowledgeBase() - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
- createKnowledgeBase(ProjogProperties) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
- createList(Term, Term) - Static method in class org.projog.core.term.ListFactory
-
Returns a new
List
with specified head and tail.
- createList(Collection<? extends Term>) - Static method in class org.projog.core.term.ListFactory
-
Returns a new
List
with the specified terms and a empty list as the final tail element.
- createList(Term[]) - Static method in class org.projog.core.term.ListFactory
-
Returns a new
List
with the specified terms and a empty list as the final tail element.
- createList(Term[], Term) - Static method in class org.projog.core.term.ListFactory
-
Returns a new
List
with the specified terms and the second parameter as the tail element.
- createListOfLength(int) - Static method in class org.projog.core.term.ListFactory
-
Returns a new list of the specified length where is each element is a variable.
- createOrReturnUserDefinedPredicate(PredicateKey) - Method in class org.projog.core.predicate.Predicates
-
Returns the UserDefinedPredicateFactory
for the specified PredicateKey
.
- createPlan(String) - Method in class org.projog.api.Projog
-
Creates a
QueryPlan
for querying the Projog environment.
- createStatement(String) - Method in class org.projog.api.Projog
-
- createStatement() - Method in class org.projog.api.QueryPlan
-
Return a newly created
QueryStatement
for the query represented by this plan.
- createStructure(String, Term[]) - Static method in class org.projog.core.term.Structure
-
Factory method for creating Structure
instances.
- CurrentInput - Class in org.projog.core.predicate.builtin.io
-
current_input(X)
- match a term to the current input stream.
- CurrentInput() - Constructor for class org.projog.core.predicate.builtin.io.CurrentInput
-
- CurrentOutput - Class in org.projog.core.predicate.builtin.io
-
current_output(X)
- match a term to the current output stream.
- CurrentOutput() - Constructor for class org.projog.core.predicate.builtin.io.CurrentOutput
-
- CurrentPredicate - Class in org.projog.core.predicate.builtin.kb
-
current_predicate(X)
- unifies with defined predicates.
- CurrentPredicate() - Constructor for class org.projog.core.predicate.builtin.kb.CurrentPredicate
-
- Cut - Class in org.projog.core.predicate.builtin.flow
-
!
- the "cut".
- Cut() - Constructor for class org.projog.core.predicate.builtin.flow.Cut
-
- CUT_EXCEPTION - Static variable in exception org.projog.core.predicate.CutException
-
Singleton instance.
- CutException - Exception in org.projog.core.predicate
-
Exception thrown when the evaluation of a rule backtracks to a cut.
- Fail - Class in org.projog.core.predicate.builtin.bool
-
fail
- always fails.
- Fail() - Constructor for class org.projog.core.predicate.builtin.bool.Fail
-
- FALSE - Static variable in class org.projog.core.predicate.udp.PredicateUtils
-
- FileHandles - Class in org.projog.core.io
-
Collection of input and output streams.
- FileHandles() - Constructor for class org.projog.core.io.FileHandles
-
- FindAll - Class in org.projog.core.predicate.builtin.compound
-
findall(X,P,L)
- find all solutions that satisfy the goal.
- FindAll() - Constructor for class org.projog.core.predicate.builtin.compound.FindAll
-
- findAllAsAtomName() - Method in class org.projog.api.QueryPlan
-
- findAllAsAtomName() - Method in class org.projog.api.QueryStatement
-
Find all solutions generated by the query and return String representations of the atoms the single query variable
was unified with.
- findAllAsDouble() - Method in class org.projog.api.QueryPlan
-
- findAllAsDouble() - Method in class org.projog.api.QueryStatement
-
Find all solutions generated by the query and return the double
values the single query variable was
unified with.
- findAllAsLong() - Method in class org.projog.api.QueryPlan
-
- findAllAsLong() - Method in class org.projog.api.QueryStatement
-
Find all solutions generated by the query and return the long
values the single query variable was unified
with.
- findAllAsTerm() - Method in class org.projog.api.QueryPlan
-
- findAllAsTerm() - Method in class org.projog.api.QueryStatement
-
Find all solutions generated by the query and return the Term
values the single query variable was unified
with.
- findFirstAsAtomName() - Method in class org.projog.api.QueryPlan
-
- findFirstAsAtomName() - Method in class org.projog.api.QueryStatement
-
Execute the query once and return a String representation of the atom the single query variable was unified with.
- findFirstAsDouble() - Method in class org.projog.api.QueryPlan
-
- findFirstAsDouble() - Method in class org.projog.api.QueryStatement
-
Execute the query once and return a double
representation of the term the single query variable was
unified with.
- findFirstAsLong() - Method in class org.projog.api.QueryPlan
-
- findFirstAsLong() - Method in class org.projog.api.QueryStatement
-
Execute the query once and return a long
representation of the term the single query variable was unified
with.
- findFirstAsOptionalAtomName() - Method in class org.projog.api.QueryPlan
-
- findFirstAsOptionalAtomName() - Method in class org.projog.api.QueryStatement
-
Attempt to execute the query once and return a String representation of the atom the single query variable was
unified with.
- findFirstAsOptionalDouble() - Method in class org.projog.api.QueryPlan
-
- findFirstAsOptionalDouble() - Method in class org.projog.api.QueryStatement
-
Attempt to execute the query once and return a Double
representation of the term the single query variable
was unified with.
- findFirstAsOptionalLong() - Method in class org.projog.api.QueryPlan
-
- findFirstAsOptionalLong() - Method in class org.projog.api.QueryStatement
-
Attempt to execute the query once and return a Long
representation of the term the single query variable
was unified with.
- findFirstAsOptionalTerm() - Method in class org.projog.api.QueryPlan
-
- findFirstAsOptionalTerm() - Method in class org.projog.api.QueryStatement
-
Attempt to execute the query once and return a Term
representation of the term the single query variable
was unified with.
- findFirstAsTerm() - Method in class org.projog.api.QueryPlan
-
- findFirstAsTerm() - Method in class org.projog.api.QueryStatement
-
Execute the query once and return the Term
the single query variable was unified with.
- Flag - Class in org.projog.core.predicate.builtin.kb
-
flag(X,Y,Z)
- associates a key with a value.
- Flag() - Constructor for class org.projog.core.predicate.builtin.kb.Flag
-
- Flatten - Class in org.projog.core.predicate.builtin.list
-
flatten(X,Y)
- flattens a nested list.
- Flatten() - Constructor for class org.projog.core.predicate.builtin.list.Flatten
-
- Fold - Class in org.projog.core.predicate.builtin.list
-
foldl(PredicateName, Values, Start, Result)
- combines elements of a list into a single term.
- Fold() - Constructor for class org.projog.core.predicate.builtin.list.Fold
-
- formatTerm(Term) - Method in class org.projog.api.Projog
-
Returns a string representation of the specified Term
.
- formatTerm(Term) - Method in class org.projog.core.term.TermFormatter
-
Returns a string representation of the specified Term
.
- Functor - Class in org.projog.core.predicate.builtin.construct
-
functor(T,F,N)
- Functor() - Constructor for class org.projog.core.predicate.builtin.construct.Functor
-
- fx(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if op
represents a prefix operator with associativity of fx
, else
false
.
- fy(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if op
represents a prefix operator with associativity of fy
, else
false
.
- getActualPredicateFactory() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- getAllDefinedPredicateKeys() - Method in class org.projog.core.predicate.Predicates
-
Returns details of all predicates, both user-defined and built-in predicates.
- getAllVariablesInTerm(Term) - Static method in class org.projog.core.term.TermUtils
-
Returns all
Variable
s contained in the specified term.
- getAntecedent() - Method in class org.projog.core.predicate.udp.ClauseModel
-
Returns the body of the clause.
- getArgs() - Method in class org.projog.core.term.Atom
-
- getArgs() - Method in class org.projog.core.term.DecimalFraction
-
- getArgs() - Method in class org.projog.core.term.EmptyList
-
- getArgs() - Method in class org.projog.core.term.IntegerNumber
-
- getArgs() - Method in class org.projog.core.term.List
-
- getArgs() - Method in class org.projog.core.term.Structure
-
- getArgs() - Method in interface org.projog.core.term.Term
-
Returns an array of this terms's arguments.
- getArgs() - Method in class org.projog.core.term.Variable
-
- getArgument(int) - Method in class org.projog.core.term.Atom
-
- getArgument(int) - Method in class org.projog.core.term.DecimalFraction
-
- getArgument(int) - Method in class org.projog.core.term.EmptyList
-
- getArgument(int) - Method in class org.projog.core.term.IntegerNumber
-
- getArgument(int) - Method in class org.projog.core.term.List
-
- getArgument(int) - Method in class org.projog.core.term.Structure
-
- getArgument(int) - Method in interface org.projog.core.term.Term
-
Returns the term at the specified position in this term's arguments.
- getArgument(int) - Method in class org.projog.core.term.Variable
-
- getArithmeticOperator(PredicateKey) - Method in class org.projog.core.math.ArithmeticOperators
-
- getArithmeticOperators() - Method in class org.projog.core.kb.KnowledgeBase
-
- getArithmeticOperators() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getArithmeticOperators() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getAtomName(String) - Method in class org.projog.api.QueryResult
-
Returns the name of the atom instantiated to the variable with the specified id.
- getAtomName(Term) - Static method in class org.projog.core.term.TermUtils
-
Return the name of the
Atom
represented by the specified
Atom
.
- getAttributeOrDefault(VariableAttribute, Term) - Method in class org.projog.core.term.Variable
-
- getBootstrapScript() - Method in class org.projog.core.kb.ProjogDefaultProperties
-
- getBootstrapScript() - Method in interface org.projog.core.kb.ProjogProperties
-
- getBound() - Method in interface org.projog.core.term.Term
-
Returns the term this object is bound to.
- getBound() - Method in class org.projog.core.term.Variable
-
- GetChar - Class in org.projog.core.predicate.builtin.io
-
get_char(X)
- reads the next character from the input stream.
- GetChar() - Constructor for class org.projog.core.predicate.builtin.io.GetChar
-
- getClauseModel() - Method in class org.projog.core.event.SpyPoints.SpyPointExitEvent
-
- getClauseModel(int) - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- getClauseModel(int) - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- getClauseModel(int) - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Returns the clause at the specified position in this predicate's list of clauses.
- getClauses() - Method in exception org.projog.core.ProjogException
-
- GetCode - Class in org.projog.core.predicate.builtin.io
-
get_code(X)
- reads the next character from the input stream.
- GetCode() - Constructor for class org.projog.core.predicate.builtin.io.GetCode
-
- getColumnNumber() - Method in exception org.projog.core.parser.ParserException
-
Returns the index in the line being parsed of the character being parsed when the problem occurred.
- getConsequent() - Method in class org.projog.core.predicate.udp.ClauseModel
-
Returns the head of the clause.
- getCurrentInputHandle() - Method in class org.projog.core.io.FileHandles
-
Return the Term
representing the current input stream.
- getCurrentInputStream() - Method in class org.projog.core.io.FileHandles
-
Return the current input stream.
- getCurrentOutputHandle() - Method in class org.projog.core.io.FileHandles
-
Return the Term
representing the current output stream.
- getCurrentOutputStream() - Method in class org.projog.core.io.FileHandles
-
Return the current output stream.
- getCurriedPredicateFactory(Predicates, Term) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- getDescription(PrintStream) - Method in exception org.projog.core.parser.ParserException
-
Prints a description of this exception to the specified print stream.
- getDouble(String) - Method in class org.projog.api.QueryResult
-
Returns the double
value instantiated to the variable with the specified id.
- getDouble() - Method in interface org.projog.core.math.Numeric
-
Returns the value of this numeric as a double
.
- getDouble() - Method in class org.projog.core.term.DecimalFraction
-
- getDouble() - Method in class org.projog.core.term.IntegerNumber
-
- getFileHandles() - Method in class org.projog.core.kb.KnowledgeBase
-
- getFileHandles() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getFileHandles() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getFirstClause() - Method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
- getFormattedClause() - Method in class org.projog.core.event.SpyPoints.SpyPointExitEvent
-
- getFormattedTerm() - Method in class org.projog.core.event.SpyPoints.SpyPointEvent
-
- getId() - Method in class org.projog.core.term.Variable
-
- getImplications() - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
Returns an iterator over the clauses of this user defined predicate.
- getImplications() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
Returns an iterator over the clauses of this user defined predicate.
- getImplications() - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Returns an iterator over the clauses in the predicate in proper sequence.
- getInfixPriority(String) - Method in class org.projog.core.parser.Operands
-
Returns the priority (precedence/level) of the infix operator represented by op
.
- getInstance(Class<?>) - Method in class org.projog.core.kb.KnowledgeBaseServiceLocator
-
Returns the Object
associated the specified instanceType
.
- getInstance(Class<?>, Class<?>) - Method in class org.projog.core.kb.KnowledgeBaseServiceLocator
-
Returns the Object
associated the specified referenceType
.
- getInstance(String, Operands) - Static method in class org.projog.core.parser.SentenceParser
-
Returns a new SentenceParser
will parse the specified String
using the specified Operands
.
- getInstance(Reader, Operands) - Static method in class org.projog.core.parser.SentenceParser
-
Returns a new SentenceParser
that will parse Prolog syntax read from the specified Reader
using
the specified Operands
.
- getKnowledgeBase() - Method in class org.projog.api.Projog
-
- getKnowledgeBase() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getKnowledgeBase() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getLine() - Method in exception org.projog.core.parser.ParserException
-
Returns the contents of the line being parsed when the problem occurred.
- getLineNumber() - Method in exception org.projog.core.parser.ParserException
-
Returns the line number of the line being parsed when the problem occurred.
- getLong(String) - Method in class org.projog.api.QueryResult
-
Returns the long
value instantiated to the variable with the specified id.
- getLong() - Method in interface org.projog.core.math.Numeric
-
Returns the value of this numeric as a long
.
- getLong() - Method in class org.projog.core.term.DecimalFraction
-
- getLong() - Method in class org.projog.core.term.IntegerNumber
-
- getModel() - Method in interface org.projog.core.predicate.udp.ClauseAction
-
- getName() - Method in class org.projog.core.predicate.PredicateKey
-
- getName() - Method in class org.projog.core.term.Atom
-
Returns the value this Atom
represents.
- getName() - Method in class org.projog.core.term.DecimalFraction
-
Returns a String
representation of the double
this term represents.
- getName() - Method in class org.projog.core.term.EmptyList
-
- getName() - Method in class org.projog.core.term.IntegerNumber
-
Returns a String
representation of the long
this term represents.
- getName() - Method in class org.projog.core.term.List
-
- getName() - Method in class org.projog.core.term.Structure
-
Returns the functor of this structure.
- getName() - Method in interface org.projog.core.term.Term
-
Returns a string representation of this term.
- getName() - Method in class org.projog.core.term.Variable
-
- getName() - Method in interface org.projog.core.term.VariableAttribute
-
- getNumArgs() - Method in class org.projog.core.predicate.PredicateKey
-
- getNumberOfArguments() - Method in class org.projog.core.term.Atom
-
- getNumberOfArguments() - Method in class org.projog.core.term.DecimalFraction
-
- getNumberOfArguments() - Method in class org.projog.core.term.EmptyList
-
- getNumberOfArguments() - Method in class org.projog.core.term.IntegerNumber
-
- getNumberOfArguments() - Method in class org.projog.core.term.List
-
- getNumberOfArguments() - Method in class org.projog.core.term.Structure
-
- getNumberOfArguments() - Method in interface org.projog.core.term.Term
-
Returns the number of arguments in this term.
- getNumberOfArguments() - Method in class org.projog.core.term.Variable
-
- getNumeric(Term) - Method in class org.projog.core.math.ArithmeticOperators
-
Returns the result of evaluating the specified arithmetic expression.
- getOperands() - Method in class org.projog.core.kb.KnowledgeBase
-
- getOperands() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getOperands() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getOriginal() - Method in class org.projog.core.predicate.udp.ClauseModel
-
- getParsedTermVariables() - Method in class org.projog.core.parser.SentenceParser
-
Returns collection of
Variable
instances created by this
SentenceParser
.
- getPartiallyAppliedPredicateFactory(Predicates, Term, int) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- getPostfixPriority(String) - Method in class org.projog.core.parser.Operands
-
Returns the priority (precedence/level) of the postfix operator represented by op
.
- getPrecedence() - Method in enum org.projog.core.term.TermType
-
Used to consistently order
Term
s of different types.
- getPredicate(Term[]) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate(Term) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate(Term, Term, Term, Term) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.classify.CharType
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- getPredicate(Term) - Method in class org.projog.core.predicate.builtin.clp.Resolve
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.compare.Between
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.compound.BagOf
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.builtin.compound.Call
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.compound.Conjunction
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.compound.Disjunction
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.compound.IfThen
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.compound.Limit
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.compound.SetOf
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.construct.AtomConcat
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.db.Recorded
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.db.Recorded
-
- getPredicate() - Method in class org.projog.core.predicate.builtin.flow.Cut
-
- getPredicate() - Method in class org.projog.core.predicate.builtin.flow.RepeatInfinitely
-
- getPredicate(Term) - Method in class org.projog.core.predicate.builtin.flow.RepeatSetAmount
-
- getPredicate(Term) - Method in class org.projog.core.predicate.builtin.kb.CurrentPredicate
-
- getPredicate(Term) - Method in class org.projog.core.predicate.builtin.kb.Inspect
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.kb.Inspect
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.list.Append
-
- getPredicate(Term, Term, Term, Term) - Method in class org.projog.core.predicate.builtin.list.Fold
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.list.Last
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.list.Length
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.builtin.list.MapList
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.list.Member
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.list.Nth
-
- getPredicate(PredicateFactory, Term, Term...) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- getPredicate(Term, Term) - Method in class org.projog.core.predicate.builtin.list.Reverse
-
- getPredicate(Term, Term, Term) - Method in class org.projog.core.predicate.builtin.list.Select
-
- getPredicate(Term[]) - Method in interface org.projog.core.predicate.PredicateFactory
-
Returns a
Predicate
to be used in the evaluation of a goal.
- getPredicate(Term) - Method in class org.projog.core.predicate.Predicates
-
- getPredicate(Term[]) - Method in interface org.projog.core.predicate.udp.ClauseAction
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.udp.InterpretedTailRecursivePredicateFactory
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- getPredicate(Term[]) - Method in class org.projog.core.predicate.UnknownPredicate
-
- getPredicateFactory(Term) - Method in class org.projog.core.predicate.Predicates
-
Returns the PredicateFactory
associated with the specified Term
.
- getPredicateFactory(PredicateKey) - Method in class org.projog.core.predicate.Predicates
-
Returns the PredicateFactory
associated with the specified PredicateKey
.
- getPredicateKey() - Method in class org.projog.api.ProjogStackTraceElement
-
Represents the user defined predicate this stack trace element was generated for.
- getPredicateKey() - Method in class org.projog.core.event.SpyPoints.SpyPoint
-
- getPredicateKey() - Method in class org.projog.core.event.SpyPoints.SpyPointEvent
-
- getPredicateKey() - Method in class org.projog.core.predicate.udp.ClauseModel
-
- getPredicateKey() - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- getPredicateKey() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- getPredicateKey() - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Returns the key for the predicate this object represents
- getPredicateKeysByName(KnowledgeBase, String) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns list of all user defined predicates with the specified name.
- getPredicates() - Method in class org.projog.core.kb.KnowledgeBase
-
- getPredicates() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getPredicates() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getPrefixPriority(String) - Method in class org.projog.core.parser.Operands
-
Returns the priority (precedence/level) of the prefix operator represented by op
.
- getPreprocessedArithmeticOperator(Term) - Method in class org.projog.core.math.ArithmeticOperators
-
- getPreprocessedCurriedPredicateFactory(Predicates, Term) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- getPreprocessedPartiallyAppliedPredicateFactory(Predicates, Term, int) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- getPreprocessedPredicateFactory(Term) - Method in class org.projog.core.predicate.Predicates
-
- getProjogListeners() - Method in class org.projog.core.kb.KnowledgeBase
-
- getProjogListeners() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getProjogListeners() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getProjogProperties() - Method in class org.projog.core.kb.KnowledgeBase
-
- getSecondClause() - Method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
- getServiceLocator(KnowledgeBase) - Static method in class org.projog.core.kb.KnowledgeBaseServiceLocator
-
Returns the KnowledgeBaseServiceLocator
associated with the specified KnowledgeBase
.
- getSourceId() - Method in class org.projog.core.event.SpyPoints.SpyPointEvent
-
- getSpyPoint(PredicateKey) - Method in class org.projog.core.event.SpyPoints
-
- getSpyPoints() - Method in class org.projog.core.event.SpyPoints
-
- getSpyPoints() - Method in class org.projog.core.kb.KnowledgeBase
-
- getSpyPoints() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getSpyPoints() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- getStackTrace(Throwable) - Method in class org.projog.api.Projog
-
- getTerm() - Method in class org.projog.api.ProjogStackTraceElement
-
Represents the clause this stack trace element was generated for.
- getTerm(String) - Method in class org.projog.api.QueryResult
-
Returns the term instantiated to the variable with the specified id.
- getTerm() - Method in class org.projog.core.term.Atom
-
- getTerm() - Method in class org.projog.core.term.DecimalFraction
-
- getTerm() - Method in class org.projog.core.term.EmptyList
-
- getTerm() - Method in class org.projog.core.term.IntegerNumber
-
- getTerm() - Method in class org.projog.core.term.List
-
- getTerm() - Method in class org.projog.core.term.Structure
-
- getTerm() - Method in interface org.projog.core.term.Term
-
Returns the current instantiated state of this term.
- getTerm() - Method in class org.projog.core.term.Variable
-
- getTermFormatter() - Method in class org.projog.core.kb.KnowledgeBase
-
- getTermFormatter() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- getTermFormatter() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- GetTime - Class in org.projog.core.predicate.builtin.time
-
get_time(X)
- gets the current system time.
- GetTime() - Constructor for class org.projog.core.predicate.builtin.time.GetTime
-
- getType() - Method in class org.projog.core.term.Atom
-
- getType() - Method in class org.projog.core.term.DecimalFraction
-
- getType() - Method in class org.projog.core.term.EmptyList
-
- getType() - Method in class org.projog.core.term.IntegerNumber
-
- getType() - Method in class org.projog.core.term.List
-
- getType() - Method in class org.projog.core.term.Structure
-
- getType() - Method in interface org.projog.core.term.Term
-
Returns the
TermType
represented by this term.
- getType() - Method in class org.projog.core.term.Variable
-
- getUserDefinedPredicates() - Method in class org.projog.core.predicate.Predicates
-
Returns details of all the user define predicates of this object.
- getVariableIds() - Method in class org.projog.api.QueryResult
-
Returns id's of all variables defined in the query this object represents.
- greaterThan() - Static method in class org.projog.core.predicate.builtin.clp.NumericConstraintPredicate
-
- greaterThanOrEqualTo() - Static method in class org.projog.core.predicate.builtin.clp.NumericConstraintPredicate
-
- IfThen - Class in org.projog.core.predicate.builtin.compound
-
X->Y
- if X
succeeds then Y
is evaluated.
- IfThen() - Constructor for class org.projog.core.predicate.builtin.compound.IfThen
-
- IMPLICATION_PREDICATE_NAME - Static variable in class org.projog.core.kb.KnowledgeBaseUtils
-
The functor of structures representing implications (:-
).
- In - Class in org.projog.core.predicate.builtin.clp
-
X in 1..4
/ [X,Y,Z] ins 1..4
- restrict CLP variables to a range of values.
- In() - Constructor for class org.projog.core.predicate.builtin.clp.In
-
- infix(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if op
represents an infix operator, else false
.
- init() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- init() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- init() - Method in class org.projog.core.predicate.builtin.clp.AddExpressionFactory
-
- init() - Method in class org.projog.core.predicate.builtin.clp.NumericConstraintPredicate
-
- init() - Method in class org.projog.core.predicate.builtin.db.Erase
-
- init() - Method in class org.projog.core.predicate.builtin.db.InsertRecord
-
- init() - Method in class org.projog.core.predicate.builtin.kb.RetractAll
-
- InsertRecord - Class in org.projog.core.predicate.builtin.db
-
recorda(X,Y,Z)
/ recordz(X,Y,Z)
- associates a term with a key.
- Inspect - Class in org.projog.core.predicate.builtin.kb
-
clause(X,Y)
/ retract(X)
- matches terms to existing clauses.
- inspectClause() - Static method in class org.projog.core.predicate.builtin.kb.Inspect
-
- instantiate(KnowledgeBase, String) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns a new object created using reflection.
- IntegerDivide - Class in org.projog.core.math.builtin
-
//
- performs integer division.
- IntegerDivide() - Constructor for class org.projog.core.math.builtin.IntegerDivide
-
- IntegerNumber - Class in org.projog.core.term
-
Represents a value of the primitive type
long
as a
Term
.
- IntegerNumber(long) - Constructor for class org.projog.core.term.IntegerNumber
-
- IntegerNumberCache - Class in org.projog.core.term
-
- InterpretedTailRecursivePredicateFactory - Class in org.projog.core.predicate.udp
-
Creates "tail recursion optimised" versions of user defined predicates.
- InterpretedTailRecursivePredicateFactory(KnowledgeBase, TailRecursivePredicateMetaData) - Constructor for class org.projog.core.predicate.udp.InterpretedTailRecursivePredicateFactory
-
- InterpretedUserDefinedPredicate - Class in org.projog.core.predicate.udp
-
Represents a user defined predicate.
- InterpretedUserDefinedPredicate(Iterator<ClauseAction>, SpyPoints.SpyPoint, Term[]) - Constructor for class org.projog.core.predicate.udp.InterpretedUserDefinedPredicate
-
- Is - Class in org.projog.core.predicate.builtin.compare
-
X is Y
- evaluate arithmetic expression.
- Is() - Constructor for class org.projog.core.predicate.builtin.compare.Is
-
- isAlwaysCutOnBacktrack() - Method in class org.projog.core.predicate.builtin.flow.Cut
-
- isAlwaysCutOnBacktrack() - Method in interface org.projog.core.predicate.PredicateFactory
-
Will attempting to re-evaluate this implementation always result in a cut?
- isAlwaysCutOnBacktrack() - Method in interface org.projog.core.predicate.udp.ClauseAction
-
- isAnonymous() - Method in class org.projog.core.term.Variable
-
- IsAtom - Class in org.projog.core.predicate.builtin.classify
-
atom(X)
- checks that a term is an atom.
- IsAtom() - Constructor for class org.projog.core.predicate.builtin.classify.IsAtom
-
- IsAtomic - Class in org.projog.core.predicate.builtin.classify
-
atomic(X)
- checks that a term is atomic.
- IsAtomic() - Constructor for class org.projog.core.predicate.builtin.classify.IsAtomic
-
- isAtomOrStructure(Term) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- IsCompound - Class in org.projog.core.predicate.builtin.classify
-
compound(X)
- checks that a term is a compound term.
- IsCompound() - Constructor for class org.projog.core.predicate.builtin.classify.IsCompound
-
- isConjunction(Term) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns
true
if the specified
Term
represent a conjunction, else
false
.
- isDefined(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if commandName
represents any known operator, else false
.
- isDynamic() - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- isDynamic() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- isDynamic() - Method in interface org.projog.core.predicate.udp.UserDefinedPredicateFactory
-
Returns true
is this predicate is dynamic.
- isEnabled() - Method in class org.projog.core.event.SpyPoints.SpyPoint
-
- isExhausted() - Method in class org.projog.api.QueryResult
-
Returns true
if it is known that all possible solutions have been found, else false
.
- isFact() - Method in class org.projog.core.predicate.udp.ClauseModel
-
- IsFloat - Class in org.projog.core.predicate.builtin.classify
-
float(X)
- checks that a term is a floating point number.
- IsFloat() - Constructor for class org.projog.core.predicate.builtin.classify.IsFloat
-
- isHandle(String) - Method in class org.projog.core.io.FileHandles
-
- isImmutable() - Method in class org.projog.core.term.Atom
-
- isImmutable() - Method in class org.projog.core.term.DecimalFraction
-
- isImmutable() - Method in class org.projog.core.term.EmptyList
-
- isImmutable() - Method in class org.projog.core.term.IntegerNumber
-
- isImmutable() - Method in class org.projog.core.term.List
-
- isImmutable() - Method in class org.projog.core.term.Structure
-
- isImmutable() - Method in interface org.projog.core.term.Term
-
Returns true
is this term is immutable.
- isImmutable() - Method in class org.projog.core.term.Variable
-
Always returns
false
even if instantiated with an immutable
Term
.
- IsInteger - Class in org.projog.core.predicate.builtin.classify
-
integer(X)
- checks that a term is an integer.
- IsInteger() - Constructor for class org.projog.core.predicate.builtin.classify.IsInteger
-
- IsList - Class in org.projog.core.predicate.builtin.classify
-
is_list(X)
- checks that a term is a list.
- IsList() - Constructor for class org.projog.core.predicate.builtin.classify.IsList
-
- isList(Term) - Static method in class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- isMember(Term, Term) - Static method in class org.projog.core.term.ListUtils
-
Checks is a term can be unified with at least one element of a list.
- IsNonVar - Class in org.projog.core.predicate.builtin.classify
-
nonvar(X)
- checks that a term is not an uninstantiated variable.
- IsNonVar() - Constructor for class org.projog.core.predicate.builtin.classify.IsNonVar
-
- IsNumber - Class in org.projog.core.predicate.builtin.classify
-
number(X)
- checks that a term is numeric.
- IsNumber() - Constructor for class org.projog.core.predicate.builtin.classify.IsNumber
-
- isNumeric() - Method in enum org.projog.core.term.TermType
-
- isPotentialSingleResult() - Method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
- isPure() - Method in class org.projog.core.math.AbstractArithmeticOperator
-
Indicates if this operator is pure and so can be preprocessed.
- isPure() - Method in class org.projog.core.math.builtin.Random
-
Random is not pure.
- isQuestionOrDirectiveFunctionCall(Term) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns
true
if the specified
Term
represents a question or directive, else
false
.
- isRetryable() - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- isRetryable() - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- isRetryable() - Method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- isRetryable() - Method in class org.projog.core.predicate.builtin.compound.Call
-
- isRetryable() - Method in class org.projog.core.predicate.builtin.list.Last
-
- isRetryable() - Method in class org.projog.core.predicate.builtin.list.MapList
-
- isRetryable() - Method in interface org.projog.core.predicate.PredicateFactory
-
Should instances of this implementation be re-evaluated when backtracking?
- isRetryable() - Method in interface org.projog.core.predicate.udp.ClauseAction
-
- isRetryable() - Method in class org.projog.core.predicate.udp.DynamicUserDefinedPredicateFactory
-
- isRetryable() - Method in class org.projog.core.predicate.udp.InterpretedTailRecursivePredicateFactory
-
- isRetryable() - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- isRetryable() - Method in class org.projog.core.predicate.UnknownPredicate
-
- isSet() - Method in class org.projog.core.event.SpyPoints.SpyPoint
-
- isSingleAnswer(KnowledgeBase, Term) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns
true
if the predicate represented by the specified
Term
never succeeds on re-evaluation.
- isSingleResultIfArgumentImmutable(int) - Method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
- isStructure() - Method in enum org.projog.core.term.TermType
-
- isTailRecursiveArgument(int) - Method in class org.projog.core.predicate.udp.TailRecursivePredicateMetaData
-
- IsVar - Class in org.projog.core.predicate.builtin.classify
-
var(X)
- checks that a term is an uninstantiated variable.
- IsVar() - Constructor for class org.projog.core.predicate.builtin.classify.IsVar
-
- isVariable() - Method in enum org.projog.core.term.TermType
-
- NewLine - Class in org.projog.core.predicate.builtin.io
-
nl
- outputs a new line character.
- NewLine() - Constructor for class org.projog.core.predicate.builtin.io.NewLine
-
- next() - Method in class org.projog.api.QueryResult
-
Attempts to evaluate the query this object represents.
- NoDebug - Class in org.projog.core.predicate.builtin.debug
-
nodebug
- removes all current spy points.
- NoDebug() - Constructor for class org.projog.core.predicate.builtin.debug.NoDebug
-
- noSpy() - Static method in class org.projog.core.predicate.builtin.debug.AlterSpyPoint
-
- not() - Static method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- Not - Class in org.projog.core.predicate.builtin.compound
-
\+ X
- "not".
- Not() - Constructor for class org.projog.core.predicate.builtin.compound.Not
-
- notEqualTo() - Static method in class org.projog.core.predicate.builtin.clp.NumericConstraintPredicate
-
- notifyCall(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners of a first attempt to evaluate a goal.
- notifyExit(SpyPoints.SpyPointExitEvent) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners when an attempt to evaluate a goal succeeds.
- notifyFail(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners when an attempt to evaluate a goal fails.
- notifyInfo(String) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners of a general information event.
- notifyRedo(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners of an attempt to re-evaluate a goal.
- notifyWarn(String) - Method in class org.projog.core.event.ProjogListeners
-
Notify all listeners of a warning.
- NoTrace - Class in org.projog.core.predicate.builtin.debug
-
notrace
- disables exhaustive tracing.
- NoTrace() - Constructor for class org.projog.core.predicate.builtin.debug.NoTrace
-
- NotStrictEquality - Class in org.projog.core.predicate.builtin.compare
-
X\==Y
- a strict equality test.
- NotStrictEquality() - Constructor for class org.projog.core.predicate.builtin.compare.NotStrictEquality
-
- NotUnifiable - Class in org.projog.core.predicate.builtin.compare
-
X \= Y
- checks whether two terms cannot be unified.
- NotUnifiable() - Constructor for class org.projog.core.predicate.builtin.compare.NotUnifiable
-
- Nth - Class in org.projog.core.predicate.builtin.list
-
nth0(X,Y,Z)
/ nth1(X,Y,Z)
- examines an element of a list.
- nth0() - Static method in class org.projog.core.predicate.builtin.list.Nth
-
- nth1() - Static method in class org.projog.core.predicate.builtin.list.Nth
-
- numberChars() - Static method in class org.projog.core.predicate.builtin.construct.TermSplit
-
- numberCodes() - Static method in class org.projog.core.predicate.builtin.construct.TermSplit
-
- NumberVars - Class in org.projog.core.predicate.builtin.construct
-
numbervars(Term,Start,End)
- unifies free variables of a term.
- NumberVars() - Constructor for class org.projog.core.predicate.builtin.construct.NumberVars
-
- Numeric - Interface in org.projog.core.math
-
A
Term
that has a numerical value.
- NUMERIC_TERM_COMPARATOR - Static variable in class org.projog.core.math.NumericTermComparator
-
Singleton instance
- NumericConstraintPredicate - Class in org.projog.core.predicate.builtin.clp
-
CLP predicates for comparing numeric values.
- NumericEquality - Class in org.projog.core.predicate.builtin.compare
-
X=:=Y
- numeric equality test.
- NumericEquality() - Constructor for class org.projog.core.predicate.builtin.compare.NumericEquality
-
- NumericGreaterThan - Class in org.projog.core.predicate.builtin.compare
-
X>Y
- numeric "greater than" test.
- NumericGreaterThan() - Constructor for class org.projog.core.predicate.builtin.compare.NumericGreaterThan
-
- NumericGreaterThanOrEqual - Class in org.projog.core.predicate.builtin.compare
-
X>=Y
- numeric "greater than or equal" test.
- NumericGreaterThanOrEqual() - Constructor for class org.projog.core.predicate.builtin.compare.NumericGreaterThanOrEqual
-
- NumericInequality - Class in org.projog.core.predicate.builtin.compare
-
X=\=Y
- numeric inequality test.
- NumericInequality() - Constructor for class org.projog.core.predicate.builtin.compare.NumericInequality
-
- NumericLessThan - Class in org.projog.core.predicate.builtin.compare
-
X<Y
- numeric "less than" test.
- NumericLessThan() - Constructor for class org.projog.core.predicate.builtin.compare.NumericLessThan
-
- NumericLessThanOrEqual - Class in org.projog.core.predicate.builtin.compare
-
X=<Y
- numeric "less than or equal" test.
- NumericLessThanOrEqual() - Constructor for class org.projog.core.predicate.builtin.compare.NumericLessThanOrEqual
-
- NumericTermComparator - Class in org.projog.core.math
-
Provides methods for comparing instances of
Numeric
.
- onCall(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.LoggingProjogListener
-
- onCall(SpyPoints.SpyPointEvent) - Method in interface org.projog.core.event.ProjogListener
-
The event generated when an attempt is first made to evaluate a goal.
- Once - Class in org.projog.core.predicate.builtin.compound
-
once(X)
- calls the goal represented by a term.
- Once() - Constructor for class org.projog.core.predicate.builtin.compound.Once
-
- onExit(SpyPoints.SpyPointExitEvent) - Method in class org.projog.core.event.LoggingProjogListener
-
- onExit(SpyPoints.SpyPointExitEvent) - Method in interface org.projog.core.event.ProjogListener
-
The event generated when an attempt to evaluate a goal succeeds.
- onFail(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.LoggingProjogListener
-
- onFail(SpyPoints.SpyPointEvent) - Method in interface org.projog.core.event.ProjogListener
-
The event generated when all attempts to evaluate a goal have failed.
- onInfo(String) - Method in class org.projog.core.event.LoggingProjogListener
-
- onInfo(String) - Method in interface org.projog.core.event.ProjogListener
-
The event generated to inform clients of an event.
- onRedo(SpyPoints.SpyPointEvent) - Method in class org.projog.core.event.LoggingProjogListener
-
- onRedo(SpyPoints.SpyPointEvent) - Method in interface org.projog.core.event.ProjogListener
-
The event generated when an attempt is made to re-evaluate a goal.
- onWarn(String) - Method in class org.projog.core.event.LoggingProjogListener
-
- onWarn(String) - Method in interface org.projog.core.event.ProjogListener
-
The event generated to warn clients of an event.
- Op - Class in org.projog.core.predicate.builtin.io
-
op(X,Y,Z)
- Op() - Constructor for class org.projog.core.predicate.builtin.io.Op
-
- Open - Class in org.projog.core.predicate.builtin.io
-
open(X,Y,Z)
- opens a file.
- Open() - Constructor for class org.projog.core.predicate.builtin.io.Open
-
- openInput(String) - Method in class org.projog.core.io.FileHandles
-
Creates an intput file stream to read from the file with the specified name
- openOutput(String) - Method in class org.projog.core.io.FileHandles
-
Creates an output file stream to write to the file with the specified name
- Operands - Class in org.projog.core.parser
-
Collection of operands.
- Operands() - Constructor for class org.projog.core.parser.Operands
-
- or() - Static method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- org.projog.api - package org.projog.api
-
Provides a programming interface for Java applications to interact with Projog.
- org.projog.core - package org.projog.core
-
Provides a Java based implementation of the Prolog logic programming language.
- org.projog.core.event - package org.projog.core.event
-
Provides a mechanism for objects to notify and be notified of events.
- org.projog.core.io - package org.projog.core.io
-
- org.projog.core.kb - package org.projog.core.kb
-
- org.projog.core.math - package org.projog.core.math
-
- org.projog.core.math.builtin - package org.projog.core.math.builtin
-
Provides arithmetic operators.
- org.projog.core.parser - package org.projog.core.parser
-
Provides classes for constructing
Term
objects from Prolog syntax.
- org.projog.core.predicate - package org.projog.core.predicate
-
- org.projog.core.predicate.builtin - package org.projog.core.predicate.builtin
-
Provides built-in predicates to provide functionality not possible in pure Prolog.
- org.projog.core.predicate.builtin.bool - package org.projog.core.predicate.builtin.bool
-
Predicates to explicitly specify when a goal succeeds of fails.
- org.projog.core.predicate.builtin.classify - package org.projog.core.predicate.builtin.classify
-
Predicates for classifying terms.
- org.projog.core.predicate.builtin.clp - package org.projog.core.predicate.builtin.clp
-
Predicates to support constraint logic programming.
- org.projog.core.predicate.builtin.compare - package org.projog.core.predicate.builtin.compare
-
Predicates for comparing terms, including specific predicates for comparing numeric values.
- org.projog.core.predicate.builtin.compound - package org.projog.core.predicate.builtin.compound
-
Predicates for the construction of compound/complex sentences.
- org.projog.core.predicate.builtin.construct - package org.projog.core.predicate.builtin.construct
-
Predicates for inspecting the structure of terms.
- org.projog.core.predicate.builtin.db - package org.projog.core.predicate.builtin.db
-
Predicates to support working with the recorded database.
- org.projog.core.predicate.builtin.debug - package org.projog.core.predicate.builtin.debug
-
Predicates to aid the debugging of Prolog programs.
- org.projog.core.predicate.builtin.flow - package org.projog.core.predicate.builtin.flow
-
Predicates for affecting the flow of goal evaluation on backtracking.
- org.projog.core.predicate.builtin.io - package org.projog.core.predicate.builtin.io
-
Predicates for system input and output with the file system.
- org.projog.core.predicate.builtin.kb - package org.projog.core.predicate.builtin.kb
-
Predicates for inspecting, adding and retracting clauses.
- org.projog.core.predicate.builtin.list - package org.projog.core.predicate.builtin.list
-
Predicates for working with list data structures.
- org.projog.core.predicate.builtin.reif - package org.projog.core.predicate.builtin.reif
-
Predicates that provide reification functionality.
- org.projog.core.predicate.builtin.time - package org.projog.core.predicate.builtin.time
-
Predicates to support working with dates and times.
- org.projog.core.predicate.udp - package org.projog.core.predicate.udp
-
Provides functionality to evaluate user defined predicates defined using Prolog syntax.
- org.projog.core.term - package org.projog.core.term
-
Contains the building blocks used to construct Prolog programs and queries.
- org.projog.tools - package org.projog.tools
-
Provides entry points for accessing the core functionality of Projog.
- PairsElements - Class in org.projog.core.predicate.builtin.list
-
pairs_keys(Pairs,Keys)
/ pairs_values(Pairs,Values)
- get keys or values from list of Key-Value pairs.
- parseFile(KnowledgeBase, File) - Static method in class org.projog.core.parser.ProjogSourceReader
-
Populates the KnowledgeBase with clauses defined in the file.
- parseReader(KnowledgeBase, Reader) - Static method in class org.projog.core.parser.ProjogSourceReader
-
Populates the KnowledgeBase with clauses read from the Reader.
- parseResource(KnowledgeBase, String) - Static method in class org.projog.core.parser.ProjogSourceReader
-
Populates the KnowledgeBase with clauses defined in the specified resource.
- ParserException - Exception in org.projog.core.parser
-
Signals a failure to successfully parse Prolog syntax.
- parseSentence() - Method in class org.projog.core.parser.SentenceParser
-
Creates a
Term
from Prolog syntax, terminated by a
.
, read from this object's
CharacterParser
.
- PartialApplicationUtils - Class in org.projog.core.predicate.builtin.list
-
- PartialApplicationUtils() - Constructor for class org.projog.core.predicate.builtin.list.PartialApplicationUtils
-
- postfix(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if op
represents a postfix operator, else false
.
- postUnify(Variable, Term) - Method in interface org.projog.core.term.VariableAttribute
-
- Power - Class in org.projog.core.math.builtin
-
**
- calculates the result of the first argument raised to the power of the second argument.
- Power() - Constructor for class org.projog.core.math.builtin.Power
-
- Predicate - Interface in org.projog.core.predicate
-
Represents a goal.
- PredicateFactory - Interface in org.projog.core.predicate
-
Returns specialised implementations of
Predicate
.
- PredicateKey - Class in org.projog.core.predicate
-
Represents the structure of a
Term
.
- PredicateKey(String, int) - Constructor for class org.projog.core.predicate.PredicateKey
-
- Predicates - Class in org.projog.core.predicate
-
Acts as a repository of rules and facts.
- Predicates(KnowledgeBase) - Constructor for class org.projog.core.predicate.Predicates
-
- PredicateUtils - Class in org.projog.core.predicate.udp
-
- PredSort - Class in org.projog.core.predicate.builtin.compare
-
predsort(X,Y,Z)
- sorts a list using the specified predicate.
- PredSort() - Constructor for class org.projog.core.predicate.builtin.compare.PredSort
-
- prefix(String) - Method in class org.projog.core.parser.Operands
-
Returns true
if op
represents a prefix operator, else false
.
- preprocess(Term) - Method in class org.projog.core.math.AbstractArithmeticOperator
-
- preprocess(Term) - Method in interface org.projog.core.math.PreprocessableArithmeticOperator
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compare.Is
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compare.PredSort
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.BagOf
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.Conjunction
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.Disjunction
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.FindAll
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.IfThen
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.Limit
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.Not
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.Once
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.compound.SetOf
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.list.Fold
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.list.MapList
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.list.MemberCheck
-
- preprocess(Term) - Method in class org.projog.core.predicate.builtin.list.SubList
-
- preprocess(Term) - Method in interface org.projog.core.predicate.PreprocessablePredicateFactory
-
- preprocess(Term) - Method in class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- preprocess(Term) - Method in class org.projog.core.predicate.UnknownPredicate
-
- PreprocessableArithmeticOperator - Interface in org.projog.core.math
-
- PreprocessablePredicateFactory - Interface in org.projog.core.predicate
-
- printProjogStackTrace(Throwable) - Method in class org.projog.api.Projog
-
Prints the all clauses contained in the specified throwable's stack trace to the standard error stream.
- printProjogStackTrace(Throwable, PrintStream) - Method in class org.projog.api.Projog
-
Prints the all clauses contained in the specified throwable's stack trace to the specified print stream.
- Projog - Class in org.projog.api
-
Provides an entry point for other Java code to interact with Projog.
- Projog(ProjogListener...) - Constructor for class org.projog.api.Projog
-
- Projog(ProjogProperties, ProjogListener...) - Constructor for class org.projog.api.Projog
-
Constructs a new Projog
object with the specified ProjogProperties
and ProjogListener
s.
- ProjogConsole - Class in org.projog.tools
-
Command line interface to Prolog.
- ProjogDefaultProperties - Class in org.projog.core.kb
-
- ProjogDefaultProperties() - Constructor for class org.projog.core.kb.ProjogDefaultProperties
-
- ProjogException - Exception in org.projog.core
-
An exception that provides information on an error within the Projog environment.
- ProjogException(String) - Constructor for exception org.projog.core.ProjogException
-
- ProjogException(String, Throwable) - Constructor for exception org.projog.core.ProjogException
-
- ProjogListener - Interface in org.projog.core.event
-
- ProjogListeners - Class in org.projog.core.event
-
Controls the registering and notification of listeners of a
KnowledgeBase
.
- ProjogListeners() - Constructor for class org.projog.core.event.ProjogListeners
-
- ProjogProperties - Interface in org.projog.core.kb
-
Collection of configuration properties.
- ProjogSourceReader - Class in org.projog.core.parser
-
Populates a
KnowledgeBase
with clauses parsed from Prolog syntax.
- ProjogStackTraceElement - Class in org.projog.api
-
- putAttribute(VariableAttribute, Term) - Method in class org.projog.core.term.Variable
-
- PutChar - Class in org.projog.core.predicate.builtin.io
-
put_char(X)
- writes a character.
- PutChar() - Constructor for class org.projog.core.predicate.builtin.io.PutChar
-
- See - Class in org.projog.core.predicate.builtin.io
-
see(X)
- opens a file and sets it as the current input stream.
- See() - Constructor for class org.projog.core.predicate.builtin.io.See
-
- Seen - Class in org.projog.core.predicate.builtin.io
-
seen
- closes the current input stream.
- Seen() - Constructor for class org.projog.core.predicate.builtin.io.Seen
-
- Select - Class in org.projog.core.predicate.builtin.list
-
select(X,Y,Z)
- removes an element from a list.
- Select() - Constructor for class org.projog.core.predicate.builtin.list.Select
-
- SentenceParser - Class in org.projog.core.parser
-
Parses Prolog syntax representing rules including operators.
- setAtomName(String, String) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified
String
value as an
Atom
to the variable with the specified id.
- setDouble(String, double) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified
double
as a
DecimalFraction
to the variable with the specified id.
- setInput(Term) - Method in class org.projog.core.io.FileHandles
-
Sets the current input stream to the input stream represented by the specified Term
.
- SetInput - Class in org.projog.core.predicate.builtin.io
-
set_input(X)
- sets the current input.
- SetInput() - Constructor for class org.projog.core.predicate.builtin.io.SetInput
-
- setKnowledgeBase(KnowledgeBase) - Method in interface org.projog.core.kb.KnowledgeBaseConsumer
-
Provides a reference to a KnowledgeBase
.
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.math.AbstractArithmeticOperator
-
Provides a reference to a KnowledgeBase
.
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.predicate.AbstractPredicateFactory
-
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.predicate.AbstractSingleResultPredicate
-
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.predicate.builtin.clp.BooleanConstraintPredicate
-
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.predicate.builtin.compound.Call
-
- setKnowledgeBase(KnowledgeBase) - Method in class org.projog.core.predicate.builtin.list.MapList
-
- setListOfAtomNames(String, String...) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified String
values as a Prolog list of atoms to the variable with the specified
id.
- setListOfAtomNames(String, List<String>) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified String
values as a Prolog list of atoms to the variable with the specified
id.
- setListOfDoubles(String, double...) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified double
values as a Prolog list to the variable with the specified id.
- setListOfDoubles(String, List<Double>) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified Double
values as a Prolog list to the variable with the specified id.
- setListOfLongs(String, long...) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified long
values as a Prolog list to the variable with the specified id.
- setListOfLongs(String, List<Long>) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified Long
values as a Prolog list to the variable with the specified id.
- setListOfTerms(String, Term...) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified Term
values as a Prolog list to the variable with the specified id.
- setListOfTerms(String, List<? extends Term>) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified Term
values as a Prolog list to the variable with the specified id.
- setLong(String, long) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified
long
as a
IntegerNumber
to the variable with the specified id.
- SetOf - Class in org.projog.core.predicate.builtin.compound
-
setof(X,P,L)
- find all solutions that satisfy the goal.
- SetOf() - Constructor for class org.projog.core.predicate.builtin.compound.SetOf
-
- setOutput(Term) - Method in class org.projog.core.io.FileHandles
-
Sets the current output stream to the output stream represented by the specified Term
.
- SetOutput - Class in org.projog.core.predicate.builtin.io
-
set_output(X)
- sets the current output.
- SetOutput() - Constructor for class org.projog.core.predicate.builtin.io.SetOutput
-
- setSpyPoint(PredicateKey, boolean) - Method in class org.projog.core.event.SpyPoints
-
- setTerm(String, Term) - Method in class org.projog.api.QueryStatement
-
Attempts to unify the specified term to the variable with the specified id.
- setTraceEnabled(boolean) - Method in class org.projog.core.event.SpyPoints
-
- setUserInput(InputStream) - Method in class org.projog.api.Projog
-
Reassigns the "standard" input stream.
- setUserInput(InputStream) - Method in class org.projog.core.io.FileHandles
-
Reassigns the "standard" input stream.
- setUserOutput(PrintStream) - Method in class org.projog.api.Projog
-
Reassigns the "standard" output stream.
- setUserOutput(PrintStream) - Method in class org.projog.core.io.FileHandles
-
Reassigns the "standard" output stream.
- ShiftLeft - Class in org.projog.core.math.builtin
-
<<
- left shift bits.
- ShiftLeft() - Constructor for class org.projog.core.math.builtin.ShiftLeft
-
- ShiftRight - Class in org.projog.core.math.builtin
-
>>
- right shift bits.
- ShiftRight() - Constructor for class org.projog.core.math.builtin.ShiftRight
-
- SINGLETON - Static variable in class org.projog.core.predicate.SucceedsNeverPredicate
-
- SINGLETON - Static variable in class org.projog.core.predicate.SucceedsOncePredicate
-
- Sort - Class in org.projog.core.predicate.builtin.list
-
msort(X,Y)
- sorts a list.
- Sort() - Constructor for class org.projog.core.predicate.builtin.list.Sort
-
- SortAsSet - Class in org.projog.core.predicate.builtin.list
-
sort(X,Y)
- sorts a list and removes duplicates.
- SortAsSet() - Constructor for class org.projog.core.predicate.builtin.list.SortAsSet
-
- spy() - Static method in class org.projog.core.predicate.builtin.debug.AlterSpyPoint
-
- SpyPoints - Class in org.projog.core.event
-
Collection of spy points.
- SpyPoints(KnowledgeBase) - Constructor for class org.projog.core.event.SpyPoints
-
- SpyPoints(ProjogListeners, TermFormatter) - Constructor for class org.projog.core.event.SpyPoints
-
- SpyPoints.SpyPoint - Class in org.projog.core.event
-
- SpyPoints.SpyPointEvent - Class in org.projog.core.event
-
- SpyPoints.SpyPointExitEvent - Class in org.projog.core.event
-
- StaticUserDefinedPredicateFactory - Class in org.projog.core.predicate.udp
-
Maintains a record of the clauses that represents a "static" user defined predicate.
- StaticUserDefinedPredicateFactory(KnowledgeBase, PredicateKey) - Constructor for class org.projog.core.predicate.udp.StaticUserDefinedPredicateFactory
-
- StrictEquality - Class in org.projog.core.predicate.builtin.compare
-
X==Y
- a strict equality test.
- StrictEquality() - Constructor for class org.projog.core.predicate.builtin.compare.StrictEquality
-
- Structure - Class in org.projog.core.term
-
A
Term
consisting of a functor (name) and a number of other
Term
arguments.
- SubList - Class in org.projog.core.predicate.builtin.list
-
include(X,Y,Z)
- filters a list by a goal.
- SubList() - Constructor for class org.projog.core.predicate.builtin.list.SubList
-
- Subset - Class in org.projog.core.predicate.builtin.list
-
subset(X,Y)
- checks if a set is a subset.
- Subset() - Constructor for class org.projog.core.predicate.builtin.list.Subset
-
- Subtract - Class in org.projog.core.math.builtin
-
-
- performs subtraction.
- Subtract() - Constructor for class org.projog.core.math.builtin.Subtract
-
- subtract() - Static method in class org.projog.core.predicate.builtin.clp.CommonExpression
-
- SubtractFromList - Class in org.projog.core.predicate.builtin.list
-
subtract(X,Y,Z)
- removes elements from a list.
- SubtractFromList() - Constructor for class org.projog.core.predicate.builtin.list.SubtractFromList
-
- SucceedsNeverPredicate - Class in org.projog.core.predicate
-
- SucceedsOncePredicate - Class in org.projog.core.predicate
-
- Tab - Class in org.projog.core.predicate.builtin.io
-
tab(X)
- writes X
number of spaces to the output stream.
- Tab() - Constructor for class org.projog.core.predicate.builtin.io.Tab
-
- TailRecursivePredicate - Class in org.projog.core.predicate.udp
-
A template for implementations of Predicate
that are tail recursive.
- TailRecursivePredicate() - Constructor for class org.projog.core.predicate.udp.TailRecursivePredicate
-
- TailRecursivePredicateMetaData - Class in org.projog.core.predicate.udp
-
Defines the characteristics of a tail recursive user defined predicate.
- Tell - Class in org.projog.core.predicate.builtin.io
-
tell(X)
- opens a file and sets it as the current output stream.
- Tell() - Constructor for class org.projog.core.predicate.builtin.io.Tell
-
- Term - Interface in org.projog.core.term
-
The building blocks used to construct Prolog programs and queries.
- TERM_COMPARATOR - Static variable in class org.projog.core.term.TermComparator
-
Singleton instance
- TermComparator - Class in org.projog.core.term
-
An implementation of
Comparator
for comparing instances of
Term
.
- TermFormatter - Class in org.projog.core.term
-
Produces
String
representations of
Term
instances.
- TermFormatter(Operands) - Constructor for class org.projog.core.term.TermFormatter
-
- TermGreaterThan - Class in org.projog.core.predicate.builtin.compare
-
X@>Y
- term "greater than" test.
- TermGreaterThan() - Constructor for class org.projog.core.predicate.builtin.compare.TermGreaterThan
-
- TermGreaterThanOrEqual - Class in org.projog.core.predicate.builtin.compare
-
X@>=Y
- term "greater than or equal" test.
- TermGreaterThanOrEqual() - Constructor for class org.projog.core.predicate.builtin.compare.TermGreaterThanOrEqual
-
- TermLessThan - Class in org.projog.core.predicate.builtin.compare
-
X@<Y
- term "less than" test.
- TermLessThan() - Constructor for class org.projog.core.predicate.builtin.compare.TermLessThan
-
- TermLessThanOrEqual - Class in org.projog.core.predicate.builtin.compare
-
X@=<Y
- term "less than or equal" test.
- TermLessThanOrEqual() - Constructor for class org.projog.core.predicate.builtin.compare.TermLessThanOrEqual
-
- termsEqual(Term, Term) - Static method in class org.projog.core.term.TermUtils
-
- TermSplit - Class in org.projog.core.predicate.builtin.construct
-
atom_chars
/ atom_codes
/ number_chars
/ number_codes
- TermType - Enum in org.projog.core.term
-
Defines the type of terms supported by Projog.
- TermUtils - Class in org.projog.core.term
-
Helper methods for performing common tasks on
Term
instances.
- Throw - Class in org.projog.core.predicate.builtin.flow
-
throw(X)
- throws an exception with the given message.
- Throw() - Constructor for class org.projog.core.predicate.builtin.flow.Throw
-
- toArrayOfConjunctions(Term) - Static method in class org.projog.core.kb.KnowledgeBaseUtils
-
Returns an array of all
Term
s that make up the conjunction represented by the specified
Term
.
- toExpression(Term, Set<ClpVariable>) - Method in class org.projog.core.predicate.builtin.clp.ExpressionFactories
-
- toInt(Term) - Static method in class org.projog.core.term.TermUtils
-
Returns the integer value of the
Numeric
represented by the specified
Term
.
- toJavaUtilList(Term) - Static method in class org.projog.core.term.ListUtils
-
Returns a new java.util.List
containing the contents of the specified org.projog.core.term.List
.
- Told - Class in org.projog.core.predicate.builtin.io
-
told
- closes the current output stream.
- Told() - Constructor for class org.projog.core.predicate.builtin.io.Told
-
- toLong(ArithmeticOperators, Term) - Static method in class org.projog.core.term.TermUtils
-
Return the long value represented by the specified term.
- toPredicate(boolean) - Static method in class org.projog.core.predicate.udp.PredicateUtils
-
- toSortedJavaUtilList(Term) - Static method in class org.projog.core.term.ListUtils
-
Returns a new java.util.List
containing the sorted contents of the specified
org.projog.core.term.List
.
- toString() - Method in class org.projog.core.event.SpyPoints.SpyPointEvent
-
- toString() - Method in class org.projog.core.predicate.PredicateKey
-
- toString() - Method in class org.projog.core.predicate.udp.ClauseModel
-
- toString() - Method in class org.projog.core.term.Atom
-
- toString() - Method in class org.projog.core.term.DecimalFraction
-
- toString() - Method in class org.projog.core.term.EmptyList
-
- toString() - Method in class org.projog.core.term.IntegerNumber
-
- toString() - Method in class org.projog.core.term.List
-
- toString() - Method in class org.projog.core.term.Structure
-
Returns a String
representation of this term.
- toString() - Method in class org.projog.core.term.Variable
-
- toTerm() - Method in class org.projog.core.predicate.PredicateKey
-
- Trace - Class in org.projog.core.predicate.builtin.debug
-
trace
- enables exhaustive tracing.
- Trace() - Constructor for class org.projog.core.predicate.builtin.debug.Trace
-
- True - Class in org.projog.core.predicate.builtin.bool
-
true
- always succeeds.
- True() - Constructor for class org.projog.core.predicate.builtin.bool.True
-
- TRUE - Static variable in class org.projog.core.predicate.udp.PredicateUtils
-