|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.CuiSuiAuiList
This class is used during the first phase of MetamorphoSys
subsetting, in which a list of cuis to be kept is built up.
The class is designed to minimize the memory impact of keeping
track of the cuis.
Constructor Summary | |
CuiSuiAuiList()
Instantiates an empty CuiSuiAuiList |
Method Summary | |
void |
addCui(String cui)
Enables a filter to specify a Cui should be added to the cui list. |
boolean |
addedByUserOnly(String cui)
Indicates that cui was added by the user and not just left through filtering process. |
void |
clear()
Clears all refereces to the cui_list components so CuiSuiAuiList
can be garbage collected. |
void |
clearAuiSet()
Clears all references to the aui_set so that it can be garbage collected. |
protected String |
dump()
Dumps size of the CuiSuiAuiList for debugging purposes. |
boolean |
inList(String cui)
Returns true if any part of the Concept is being kept. |
boolean |
inList(String cui,
String sui,
String aui)
Returns true if the cui,sui,aui combination is being kept. |
void |
removeCui(String cui)
Enables a filter to specify a Cui that should be removed from the cui list. |
void |
setFilteredConcept(Concept concept)
Set the final state of the Concept after filtering. |
void |
setUnfilteredConcept(Concept concept)
Set the initial state of the Concept before filtering. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CuiSuiAuiList()
CuiSuiAuiList
Method Detail |
public void setUnfilteredConcept(Concept concept)
Concept
before filtering.
This is for later comparison purposes.
concept
- an unfiltered Concept
public void setFilteredConcept(Concept concept)
Concept
after filtering.
Compare this against the unfiltered Concept
, and determine what
was removed, what was kept, and how to track that information
in the least memory-intensive way.
concept
- a filtered Concept
public boolean inList(String cui)
true
if any part of the Concept
is being kept.
inList
in interface CuiList
cui
- a String
cui value
true
if any part of the Concept
is being keptpublic boolean inList(String cui, String sui, String aui)
true
if the cui,sui,aui combination is being kept.
inList
in interface CuiList
cui
- a String
cui valuesui
- a String
sui valueaui
- a String
aui value
true
if the cui,sui,aui combination is being keptpublic void addCui(String cui)
addCui
in interface CuiList
cui
- String
public boolean addedByUserOnly(String cui)
addedByUserOnly
in interface CuiList
cui
- String
boolean
public void removeCui(String cui)
removeCui
in interface CuiList
cui
- String
public void clearAuiSet()
public void clear()
CuiSuiAuiList
can be garbage collected.
protected String dump()
CuiSuiAuiList
for debugging purposes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |