|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.facts.Facts
public class Facts
A manager for all facts stored in a knowledge-base.
| Field Summary | |
|---|---|
protected Map<IPredicate,IRelation> |
mPredicateRelationMap
The map storing the predicate-relation relationship. |
protected IRelationFactory |
mRelationFactory
|
| Constructor Summary | |
|---|---|
Facts(IRelationFactory relationFactory)
Constructor. |
|
Facts(Map<IPredicate,IRelation> rawFacts,
IRelationFactory relationFactory)
Construct a Facts object from a predicate-relation map. |
|
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Map<IPredicate,IRelation> mPredicateRelationMap
protected final IRelationFactory mRelationFactory
| Constructor Detail |
|---|
public Facts(IRelationFactory relationFactory)
public Facts(Map<IPredicate,IRelation> rawFacts,
IRelationFactory relationFactory)
rawFacts - The facts to add.| Method Detail |
|---|
public IRelation get(IPredicate predicate)
IFacts
get in interface IFactspredicate - The predicate identifying the relation.
public Set<IPredicate> getPredicates()
IFacts
getPredicates in interface IFactspublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||