org.deri.iris.facts
Class FactsWithExternalData

java.lang.Object
  extended by org.deri.iris.facts.FactsWithExternalData
All Implemented Interfaces:
IFacts

public class FactsWithExternalData
extends Object
implements IFacts


Constructor Summary
FactsWithExternalData(IFacts facts, List<IDataSource> externalDataSources)
          Constructor.
 
Method Summary
 IRelation get(IPredicate predicate)
          Get the relation associated with the given predicate and create one if one does not already exist.
 Set<IPredicate> getPredicates()
          Get the set of predicate identifying all relations known to this facts object.
 String toString()
          Return all facts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactsWithExternalData

public FactsWithExternalData(IFacts facts,
                             List<IDataSource> externalDataSources)
Constructor.

Method Detail

get

public IRelation get(IPredicate predicate)
Description copied from interface: IFacts
Get the relation associated with the given predicate and create one if one does not already exist.

Specified by:
get in interface IFacts
Parameters:
predicate - The predicate identifying the relation.
Returns:
The relation associated with the given predicate.

getPredicates

public Set<IPredicate> getPredicates()
Description copied from interface: IFacts
Get the set of predicate identifying all relations known to this facts object.

Specified by:
getPredicates in interface IFacts
Returns:

toString

public String toString()
Return all facts. The format of the resulting string is parse-able.

Overrides:
toString in class Object
Returns:
a parse-able string containing all facts