Add addPredicateFactory(PredicateKey, PredicateFactory) and addArithmeticOperator(PredicateKey, ArithmeticOperator) methods to org.projog.api.Projog.
This will allow users of the API to plug-in their own Java versions of predicates and arithmetic operators which can then be called from Prolog. Adding methods to Projog will provide a convenient alternative to using the pj_add_predicate/2 and pj_add_arithmetic_operator/2 predicates.
Add
addPredicateFactory(PredicateKey, PredicateFactory)
andaddArithmeticOperator(PredicateKey, ArithmeticOperator)
methods toorg.projog.api.Projog
.This will allow users of the API to plug-in their own Java versions of predicates and arithmetic operators which can then be called from Prolog. Adding methods to
Projog
will provide a convenient alternative to using thepj_add_predicate/2
andpj_add_arithmetic_operator/2
predicates.