public class KnowledgeManager
extends Object
KnowledgeSource
,
ConceptManager
,
AbstractMatchGroupMetrics
Modifier and Type | Field and Description |
---|---|
private int |
graphCount |
private int |
gridCount |
private ArrayList |
knowledgeSources |
Action |
summarizeKnowledgeAction
The summarize action that can be re-used in other places
|
Constructor and Description |
---|
KnowledgeManager() |
Modifier and Type | Method and Description |
---|---|
void |
addKnowledgeSource(KnowledgeSource s)
Tells the Knowledge Manager that it's supposed to manage this particular
knowledge source.
|
AbstractTupleMatcher |
createCurrentTupleMatcher()
Uses Hub.matchingStrategy to determine which class to use for an instance
of a tuple matcher.
|
Graph[] |
findGraphsWithTypeHierarchy()
Locate any graphs that have type labels.
|
AbstractTypeDescriptor[] |
findTypeDescriptor(String term,
boolean includeDuplicates)
Get all the type descriptors from any known knowledge sources that
correspond to a term.
|
void |
forgetKnowledgeSource(KnowledgeSource s) |
Graph[] |
getAllGraphs() |
TrackedRepertoryGrid[] |
getAllGrids() |
void |
performKnowledgeSummary(JFrame owner)
Invokes Reporter's "displaySummary" for all the existing knowledge.
|
static AbstractTypeDescriptor[] |
removeDuplicateDescriptors(AbstractTypeDescriptor[] ts) |
private ArrayList knowledgeSources
private int graphCount
private int gridCount
public Action summarizeKnowledgeAction
public void performKnowledgeSummary(JFrame owner)
public void addKnowledgeSource(KnowledgeSource s)
s
- A knowledge source to be managed.KnowledgeSource
public void forgetKnowledgeSource(KnowledgeSource s)
public AbstractTypeDescriptor[] findTypeDescriptor(String term, boolean includeDuplicates)
term
- The term to look for.includeDuplicates
- Whether to include duplicates if they are found.
A duplicate is defined to be any type descriptor that "equals" another
one.charger.obj.TypeDescriptor#equals
public static AbstractTypeDescriptor[] removeDuplicateDescriptors(AbstractTypeDescriptor[] ts)
public Graph[] getAllGraphs()
public TrackedRepertoryGrid[] getAllGrids()
public Graph[] findGraphsWithTypeHierarchy()
public AbstractTupleMatcher createCurrentTupleMatcher()