org.eclipse.palamedes.kif.core.knowledgebase
Class KnowledgeBase

java.lang.Object
  extended by org.eclipse.palamedes.kif.core.knowledgebase.KnowledgeBase
Direct Known Subclasses:
GDLKnowledgeBase

public class KnowledgeBase
extends java.lang.Object


Field Summary
protected  KIFForm description
           
protected  java.util.TreeMap<java.lang.String,KBEntry> entries
           
 
Constructor Summary
KnowledgeBase()
           
 
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
 

Field Detail

description

protected KIFForm description

entries

protected java.util.TreeMap<java.lang.String,KBEntry> entries
Constructor Detail

KnowledgeBase

public KnowledgeBase()
Method Detail

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