Class DefaultPredicateFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultPredicateFactory
- All Implemented Interfaces:
PredicateFactory
Default singleton implementation of
PredicateFactory.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates the predicate factory singleton. -
Method Summary
Modifier and TypeMethodDescriptionCreates an integraal predicate.fr.lirmm.graphik.graal.api.core.PredicateCreates a graal predicate.static DefaultPredicateFactoryinstance()Returns the shared predicate factory instance.
-
Constructor Details
-
DefaultPredicateFactory
protected DefaultPredicateFactory()Creates the predicate factory singleton.
-
-
Method Details
-
instance
Returns the shared predicate factory instance.- Returns:
- the shared instance
-
create
Description copied from interface:PredicateFactoryCreates an integraal predicate.- Specified by:
createin interfacePredicateFactory- Parameters:
identifier- the predicate identifierarity- the predicate arity- Returns:
- the created predicate
-
create2
Description copied from interface:PredicateFactoryCreates a graal predicate.- Specified by:
create2in interfacePredicateFactory- Parameters:
identifier- the predicate identifierarity- the predicate arity- Returns:
- the created predicate
-