|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBasicFactory
An interface that can be used to create set of basic logical entities such as predicates, atoms, rules, queries etc.
$Id: IBasicFactory.java,v 1.19 2007-10-30 09:15:07 bazbishop237 Exp $
| Method Summary | |
|---|---|
IAtom |
createAtom(IAtom a)
Creates a deep copy of an atom. |
IAtom |
createAtom(IPredicate p,
ITuple tuple)
|
ILiteral |
createLiteral(boolean isPositive,
IAtom atom)
|
ILiteral |
createLiteral(boolean isPositive,
IPredicate predicate,
ITuple tuple)
|
ILiteral |
createLiteral(ILiteral l)
Creates a deep copy of a literal. |
IPredicate |
createPredicate(String symbol,
int arity)
|
IQuery |
createQuery(ILiteral... literals)
|
IQuery |
createQuery(List<ILiteral> literals)
|
IRule |
createRule(List<ILiteral> head,
List<ILiteral> body)
Creates a rule out of a list of head and a list of body literals. |
ITuple |
createTuple(ITerm... terms)
|
ITuple |
createTuple(List<ITerm> terms)
|
| Method Detail |
|---|
IAtom createAtom(IPredicate p,
ITuple tuple)
IAtom createAtom(IAtom a)
a - the atom to copy
NullPointerException - if the atom is null
IllegalArgumentException - if the atom is a builtin one.
ILiteral createLiteral(boolean isPositive,
IAtom atom)
ILiteral createLiteral(boolean isPositive,
IPredicate predicate,
ITuple tuple)
ILiteral createLiteral(ILiteral l)
l - the tuple to copy
NullPointerException - if the literal is null
IllegalArgumentException - if the underlying atom is a builtin one.
IPredicate createPredicate(String symbol,
int arity)
IQuery createQuery(ILiteral... literals)
IQuery createQuery(List<ILiteral> literals)
IRule createRule(List<ILiteral> head,
List<ILiteral> body)
head - the head literalsbody - the body literalsITuple createTuple(ITerm... terms)
ITuple createTuple(List<ITerm> terms)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||