org.deri.iris.graph
Class GraphFactory

java.lang.Object
  extended by org.deri.iris.graph.GraphFactory
All Implemented Interfaces:
IGraphFactory

public class GraphFactory
extends Object
implements IGraphFactory

A simple predicate graph implementation.

$Id$

Version:
$Revision$
Author:
Richard P??ttler (richard dot poettler at deri dot org)

Method Summary
 IPredicateGraph createPredicateGraph()
          Constructs a new empty predicate graph.
 IPredicateGraph createPredicateGraph(Collection<IRule> r)
          Constructs a new predicate graph initialized with a collection of rules.
static IGraphFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IGraphFactory getInstance()

createPredicateGraph

public IPredicateGraph createPredicateGraph()
Description copied from interface: IGraphFactory
Constructs a new empty predicate graph.

Specified by:
createPredicateGraph in interface IGraphFactory
Returns:
the constructed graph

createPredicateGraph

public IPredicateGraph createPredicateGraph(Collection<IRule> r)
Description copied from interface: IGraphFactory
Constructs a new predicate graph initialized with a collection of rules.

Specified by:
createPredicateGraph in interface IGraphFactory
Parameters:
r - the rules with which to initialize the graph
Returns:
the constructed graph