org.eclipse.palamedes.kif.core.knowledgebase
Class KnowledgeBase
java.lang.Object
org.eclipse.palamedes.kif.core.knowledgebase.KnowledgeBase
- Direct Known Subclasses:
- GDLKnowledgeBase
public class KnowledgeBase
- extends java.lang.Object
Method Summary |
java.util.List<KBEntry> |
filter(IKBFilter filter)
Returns a list of KBEntry objects that are satisfying the constrains
given by filter. |
KBEntry |
get(java.lang.String name)
Returns the KBEntry object given by name. |
java.util.List<KBEntry> |
getEntries()
Returns all KBEntry objects in a list. |
void |
setDescription(KIFForm gdl)
The setDescription method resets the knowledge base and sets the new
GDL description. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
description
protected KIFForm description
entries
protected java.util.TreeMap<java.lang.String,KBEntry> entries
KnowledgeBase
public KnowledgeBase()
setDescription
public void setDescription(KIFForm gdl)
- The setDescription method resets the knowledge base and sets the new
GDL description.
- Parameters:
gdl
-
get
public KBEntry get(java.lang.String name)
- Returns the KBEntry object given by name.
getEntries
public java.util.List<KBEntry> getEntries()
- Returns all KBEntry objects in a list.
filter
public java.util.List<KBEntry> filter(IKBFilter filter)
- Returns a list of KBEntry objects that are satisfying the constrains
given by filter.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object