Class DefaultPredicateFactory

java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultPredicateFactory
All Implemented Interfaces:
PredicateFactory

public final class DefaultPredicateFactory extends Object implements PredicateFactory
Default singleton implementation of PredicateFactory.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Constructor Details

    • DefaultPredicateFactory

      protected DefaultPredicateFactory()
      Creates the predicate factory singleton.
  • Method Details

    • instance

      public static DefaultPredicateFactory instance()
      Returns the shared predicate factory instance.
      Returns:
      the shared instance
    • create

      public Predicate create(Object identifier, int arity)
      Description copied from interface: PredicateFactory
      Creates an integraal predicate.
      Specified by:
      create in interface PredicateFactory
      Parameters:
      identifier - the predicate identifier
      arity - the predicate arity
      Returns:
      the created predicate
    • create2

      public fr.lirmm.graphik.graal.api.core.Predicate create2(Object identifier, int arity)
      Description copied from interface: PredicateFactory
      Creates a graal predicate.
      Specified by:
      create2 in interface PredicateFactory
      Parameters:
      identifier - the predicate identifier
      arity - the predicate arity
      Returns:
      the created predicate