| Package | Description |
|---|---|
| edu.nyu.jet.concepts |
The Concepts package provides the classes for organizing and
editing a hierarchy of concepts, and associating the concepts with individual
words..
|
| Modifier and Type | Method and Description |
|---|---|
Concept |
ConceptHierarchy.getConceptByName(String conceptName)
Returns the
Concept named conceptName or
null if no Concept has conceptName. |
Concept |
ConceptHierarchy.getConceptByNameIgnoreCase(String conceptName)
Returns the
Concept named conceptName (ignoring case)
or null if no Concept has conceptName. |
Concept |
ConceptHierarchy.getConceptFor(String word)
Returns the
Concept of the word word or
null if no Concept has word. |
Concept |
Concept.getSubconceptAt(int index)
Returns the subconcept at the specified index in this
Concept's subconcept array. |
| Modifier and Type | Method and Description |
|---|---|
void |
Concept.addConcept(Concept newConcept)
Adds a new
Concept to this Concept. |
boolean |
ConceptHierarchy.addConcept(Concept newConcept,
Concept parent)
Adds a new
Concept to this ConceptHierarchy as
a child of the node parent. |
boolean |
ConceptHierarchy.addWord(Word newWord,
Concept parent)
Adds a new
Word to this ConceptHierarchy as a
child of the node parent.All the Words of Concept parent are listed before
all the Concepts that isa parent. |
static boolean |
ConceptHierarchy.isa(Concept concept1,
Concept concept2)
Returns true if
concept1 isa concept2,
i.e. concept2 is the parent of concept1
in the concept hierarchy. |
static boolean |
ConceptHierarchy.isaStar(Concept concept1,
Concept concept2)
Returns true if
concept1 isa* concept2,
i.e. concept2 is concept1 itself or
an ancestor of concept1 in the concept hierarchy. |
boolean |
ConceptHierarchy.isDuplicateConcept(Concept concept)
Checks if
concept is already in the hierarchy, if so,
pop up an error message. |
void |
ConceptHierarchy.newConcept(Concept selectedConcept)
Makes a new
Concept and adds it to selectedConcept
in the hierarchy. |
void |
ConceptHierarchy.newWord(Concept selectedConcept)
Makes a new
Word and adds it to selectedConcept
in the hierarchy. |
void |
ConceptHierarchy.removeConcept(Concept oldConcept)
Removes a
Concept from the hierarchy with all its children. |
void |
Concept.removeConcept(Concept oldConcept)
Removes a subconcept with its children from this
Concept. |
Copyright © 2016 New York University. All rights reserved.