Class DefaultAtomFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultAtomFactory
- All Implemented Interfaces:
AtomFactory
Default singleton implementation of
AtomFactory.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptionCreates a copy of the specified atom.Creates an atom with the specified predicate and no term.Creates an atom with the specified predicate and term array.Creates an atom with the specified predicate and term list.createEquality(Term t1, Term t2) Creates an equality atom between two terms.Returns the distinguished bottom atom.getTop()Returns the distinguished top atom.static DefaultAtomFactoryinstance()Returns the shared atom factory instance.
-
Method Details
-
instance
Returns the shared atom factory instance.- Returns:
- the shared instance
-
createEquality
Description copied from interface:AtomFactoryCreates an equality atom between two terms.- Specified by:
createEqualityin interfaceAtomFactory- Parameters:
t1- the left-hand termt2- the right-hand term- Returns:
- the created equality atom
-
create
Description copied from interface:AtomFactoryCreates an atom with the specified predicate and no term.- Specified by:
createin interfaceAtomFactory- Parameters:
predicate- the atom predicate- Returns:
- the created atom
-
create
Description copied from interface:AtomFactoryCreates an atom with the specified predicate and term list.- Specified by:
createin interfaceAtomFactory- Parameters:
predicate- the atom predicateterms- the atom terms- Returns:
- the created atom
-
create
Description copied from interface:AtomFactoryCreates an atom with the specified predicate and term array.- Specified by:
createin interfaceAtomFactory- Parameters:
predicate- the atom predicateterms- the atom terms- Returns:
- the created atom
-
create
Description copied from interface:AtomFactoryCreates a copy of the specified atom.- Specified by:
createin interfaceAtomFactory- Parameters:
atom- the atom to copy- Returns:
- the copied atom
-
getTop
Description copied from interface:AtomFactoryReturns the distinguished top atom.- Specified by:
getTopin interfaceAtomFactory- Returns:
- the top atom
-
getBottom
Description copied from interface:AtomFactoryReturns the distinguished bottom atom.- Specified by:
getBottomin interfaceAtomFactory- Returns:
- the bottom atom
-