opennlp.grok.knowledge
Class ISA
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--opennlp.grok.knowledge.ISA
- All Implemented Interfaces:
- java.lang.Cloneable, opennlp.common.structure.Hierarchy, java.util.Map, java.io.Serializable, javax.swing.tree.TreeModel
- public class ISA
- extends java.util.HashMap
- implements opennlp.common.structure.Hierarchy
An ISA hierarchy. The ISA class itself contains a HashMap which
gives constant time access to ISA_nodes, while the Hashtable
'hierarchy' encodes the hierarchy itself via the string names of
the ISA_nodes.
- Version:
- $Revision: 1.1.1.1 $, $Date: 2001/10/23 15:17:51 $
- Author:
- Jason Baldridge
- See Also:
- Serialized Form
| Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
|
Field Summary |
opennlp.common.discourse.Kind |
root
|
|
Constructor Summary |
ISA()
|
|
Method Summary |
void |
addNew(opennlp.common.discourse.Kind node)
|
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
|
void |
connect(opennlp.common.discourse.Kind child,
opennlp.common.discourse.Kind parent)
|
java.lang.Object |
getChild(java.lang.Object parent,
int index)
|
int |
getChildCount(java.lang.Object parent)
|
boolean |
getFromHigherKnowledge(opennlp.common.synsem.Abstraction c)
|
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
|
opennlp.common.discourse.Kind |
getNode(opennlp.common.synsem.Abstraction c)
|
java.lang.Object |
getRoot()
|
javax.swing.event.TreeModelEvent |
getTreeModelEvent(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
|
opennlp.common.discourse.Kind |
inject(opennlp.common.discourse.Kind node)
|
boolean |
isLeaf(java.lang.Object node)
|
void |
removeChild(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child)
|
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
|
void |
reportTreeNodesInserted(opennlp.common.discourse.Kind parent)
|
void |
reportTreeNodesInserted(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
|
void |
reportTreeNodesRemoved(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
|
void |
setHigherKnowledge(opennlp.common.structure.Hierarchy isa)
|
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
|
| Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
root
public opennlp.common.discourse.Kind root
ISA
public ISA()
setHigherKnowledge
public void setHigherKnowledge(opennlp.common.structure.Hierarchy isa)
- Specified by:
setHigherKnowledge in interface opennlp.common.structure.Hierarchy
inject
public opennlp.common.discourse.Kind inject(opennlp.common.discourse.Kind node)
getFromHigherKnowledge
public boolean getFromHigherKnowledge(opennlp.common.synsem.Abstraction c)
getNode
public opennlp.common.discourse.Kind getNode(opennlp.common.synsem.Abstraction c)
- Specified by:
getNode in interface opennlp.common.structure.Hierarchy
removeChild
public void removeChild(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child)
addNew
public void addNew(opennlp.common.discourse.Kind node)
- Specified by:
addNew in interface opennlp.common.structure.Hierarchy
connect
public void connect(opennlp.common.discourse.Kind child,
opennlp.common.discourse.Kind parent)
- Specified by:
connect in interface opennlp.common.structure.Hierarchy
getTreeModelEvent
public javax.swing.event.TreeModelEvent getTreeModelEvent(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
reportTreeNodesInserted
public void reportTreeNodesInserted(opennlp.common.discourse.Kind parent)
reportTreeNodesInserted
public void reportTreeNodesInserted(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
reportTreeNodesRemoved
public void reportTreeNodesRemoved(opennlp.common.discourse.Kind parent,
opennlp.common.discourse.Kind child,
int childIndex)
addTreeModelListener
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
addTreeModelListener in interface javax.swing.tree.TreeModel
removeTreeModelListener
public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
- Specified by:
removeTreeModelListener in interface javax.swing.tree.TreeModel
getChild
public java.lang.Object getChild(java.lang.Object parent,
int index)
- Specified by:
getChild in interface javax.swing.tree.TreeModel
getChildCount
public int getChildCount(java.lang.Object parent)
- Specified by:
getChildCount in interface javax.swing.tree.TreeModel
getIndexOfChild
public int getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
- Specified by:
getIndexOfChild in interface javax.swing.tree.TreeModel
getRoot
public java.lang.Object getRoot()
- Specified by:
getRoot in interface javax.swing.tree.TreeModel
isLeaf
public boolean isLeaf(java.lang.Object node)
- Specified by:
isLeaf in interface javax.swing.tree.TreeModel
valueForPathChanged
public void valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
- Specified by:
valueForPathChanged in interface javax.swing.tree.TreeModel
Copyright © 2001 Jason Baldridge and Gann Bierner. All Rights Reserved.