org.deri.iris
Class KnowledgeBaseFactory

java.lang.Object
  extended by org.deri.iris.KnowledgeBaseFactory

public class KnowledgeBaseFactory
extends Object

The factory for creating a knowledge-base.


Constructor Summary
KnowledgeBaseFactory()
           
 
Method Summary
static IKnowledgeBase createKnowledgeBase(Map<IPredicate,IRelation> facts, List<IRule> rules)
          Create a knowledge base with default configuration.
static IKnowledgeBase createKnowledgeBase(Map<IPredicate,IRelation> facts, List<IRule> rules, Configuration configuration)
          Create a knowledge base with a custom configuration.
static Configuration getDefaultConfiguration()
          Create a new default configuration and return it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KnowledgeBaseFactory

public KnowledgeBaseFactory()
Method Detail

createKnowledgeBase

public static IKnowledgeBase createKnowledgeBase(Map<IPredicate,IRelation> facts,
                                                 List<IRule> rules)
                                          throws EvaluationException
Create a knowledge base with default configuration.

Parameters:
facts - The starting facts.
rules - The rules to use.
Returns:
A new knowledge-base instance.
Throws:
EvaluationException

createKnowledgeBase

public static IKnowledgeBase createKnowledgeBase(Map<IPredicate,IRelation> facts,
                                                 List<IRule> rules,
                                                 Configuration configuration)
                                          throws EvaluationException
Create a knowledge base with a custom configuration.

Parameters:
facts - The starting facts.
rules - The rules to use.
configuration - The configuration to use for the new knowledge-base.
Returns:
A new knowledge-base instance.
Throws:
EvaluationException

getDefaultConfiguration

public static Configuration getDefaultConfiguration()
Create a new default configuration and return it.

Returns:
The new configuration.