|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.basics.BasicFactory
public class BasicFactory
Simple implementatiion of the basic factory.
$Id$
| 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 positive,
IPredicate p,
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)
|
static IBasicFactory |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public IAtom createAtom(IPredicate p,
ITuple tuple)
createAtom in interface IBasicFactory
public ILiteral createLiteral(boolean isPositive,
IAtom atom)
createLiteral in interface IBasicFactory
public ILiteral createLiteral(boolean positive,
IPredicate p,
ITuple tuple)
createLiteral in interface IBasicFactory
public IPredicate createPredicate(String symbol,
int arity)
createPredicate in interface IBasicFactorypublic IQuery createQuery(ILiteral... literals)
createQuery in interface IBasicFactorypublic IQuery createQuery(List<ILiteral> literals)
createQuery in interface IBasicFactory
public IRule createRule(List<ILiteral> head,
List<ILiteral> body)
IBasicFactory
createRule in interface IBasicFactoryhead - the head literalsbody - the body literalspublic ITuple createTuple(ITerm... terms)
createTuple in interface IBasicFactorypublic ITuple createTuple(List<ITerm> terms)
createTuple in interface IBasicFactorypublic IAtom createAtom(IAtom a)
IBasicFactory
createAtom in interface IBasicFactorya - the atom to copy
public ILiteral createLiteral(ILiteral l)
IBasicFactory
createLiteral in interface IBasicFactoryl - the tuple to copy
public static IBasicFactory getInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||