|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.filters.AbstractFilter
gov.nih.nlm.mms.filters.SourcesToRemoveFilter
This Filter removes all CUIs that are from sources chosen to be excluded from the subset.
Field Summary |
Fields inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
default_configuration, init_cui, subset_content, user_configuration |
Constructor Summary | |
SourcesToRemoveFilter()
Instantiates an empty SourcesToRemoveFilter . |
Method Summary | |
void |
addSelectedSource(Source source)
This method adds a Source to the data structure that holds the list
of selected sources. |
void |
applySelections(Concept concept)
Method which determines if a given Concept or its components will
be removed from the release. |
void |
clearSelectedSources()
This method clears the data structure that holds the list of selected sources. |
void |
clearSourceDependencies()
Clears data structure that holds Dependency (s). |
boolean |
enforceDependentSourceSelection()
This method indicates whether the Enforce Dependent Source Selection option has been chosen on the Advanced Source List Options dialog box. |
boolean |
enforceFamilySelection()
This method indicates whether or not the Enforce Family Selection option has been chosen in the Advanced Source List Options dialog box. |
boolean |
getAutomaticSelection()
This method returns whether or not the automatic_selection option has been chosen on the MetamorphoSys Options dialog box. |
Color |
getColor()
Method indicates the Color that should be used to display the name. |
ApplicationConfiguration |
getConfiguration()
Method returns the default ApplicationConfiguration . |
String |
getConfigurationDetails()
Method returns a list of the sources to be excluded and sources to be kept for display in the configuration file. |
List |
getDefaultSourcesToRemove()
This method returns a List of all Source s to be excluded. |
Set |
getDefaultSourcesToRemoveAsSet()
This method returns a Set containing the default list of all
Source s to be excluded. |
List |
getDependentSources(Source source)
Method gets all dependent sources for a given Source . |
Set |
getDependentSourcesAsSet(Source source)
Method gets all dependent sources for a given Source . |
JPanel |
getHelpPanel()
Method provides a JPanel that will be added to the main GUI help
menu to allow the user to consult a help window that is particular to this
filter. |
String |
getName()
Returns the name. |
JPanel |
getPanel()
Method provides the GUI panel that will display the filter's screen as one of the tabs on the main GUI window. |
Properties |
getProperties()
Method returns all properties specific to the filter. |
List |
getSelectedSources()
This method returns the List containing all Source s
selected. |
Set |
getSelectedSourcesAsSet()
This method returns the Set containing all Source s
selected. |
List |
getSelectedSourcesInverse()
This method returns the List of Source s that are not
selected. |
Set |
getSelectedSourcesInverseAsSet()
This method returns the Set of Source s that are not
selected. |
List |
getSourceDependencies()
Method returns a List of Dependency (s). |
Set |
getSourceDependenciesAsSet()
Method returns a Set of Dependency (s). |
List |
getSources()
Returns the list of Source s from the default configuration. |
List |
getSourcesToRemove()
This method is used by the SourcesToRemoveListener
to determine which sources should be removed from the other Filter 's
displays. |
String |
getTabDescription()
Method provides the description of the filter's screen and includes instructions on use. |
boolean |
hasAdvancedOptions()
Indicates whether or not an options menu item should be supplied for advanced configuration options. |
boolean |
hasDependentSource(Source source)
Returns if given Source has a dependent source. |
void |
initialize()
Set initial values for filter specific variables from user config file. |
boolean |
isEfficientEnabled()
Indicates if Filter can use the efficient mode during the
"Initialize Cuis" phase of the subsetting process. |
boolean |
isSourceToRemove(Source s)
This method returns a boolean depending on whether or not
the Source is excluded from the subset. |
void |
removeSelectedSource(Source source)
This method removes a Source from the data structure that holds the
list of selected sources. |
boolean |
removeSelectedSources()
This method indicates whether the selections represent sources to be excluded or sources to be kept. |
void |
resetToDefaults()
Method allows the user to reset the filter's settings to defaults. |
void |
setConfiguration(ApplicationConfiguration c)
Method provides the filter with values from the default properties file. |
void |
setConfiguration(UserConfiguration c)
Method provides the filter with values from the user configuration file. |
void |
setEnforceDependentSourceSelection(boolean b)
This method sets whether or not the Enforce Dependent Source Selection option will be executed on the gui. |
void |
setEnforceFamilySelection(boolean b)
This method sets whether or not the Enforce Family Selection option will be executed on the gui. |
void |
setPanelSelections()
Method makes selections on the filter's table |
void |
setProperties(Properties p)
Method provides the filter with all properties specific to the filter. |
void |
setRemoveSelectedSources(boolean b)
This method sets whether or not the selections represent sources to be excluded or sources to be kept. |
void |
setSelectedSources(List str)
This method replaces the selected_sources list with the one provided. |
void |
setSelectedSources(Set str)
This method replaces the selected_sources list with the one provided. |
void |
setSourceDependencies(List source_dependencies)
Replaces the struction that holds Dependency (s) with the one
given. |
void |
showOptions()
Presents an advanced options GUI to the user. |
Methods inherited from class gov.nih.nlm.mms.filters.AbstractFilter |
addDataChangeListener, applyFilter, beginInitializeCuiList, beginSubsetContent, compareTo, endInitializeCuiList, endSubsetContent, fireDataChanged, fireNotUndoableDataChanged, getGUIConfigurableForValidationFailure, getValidateMessage, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setCuiList, setDataChanged, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface gov.nih.nlm.mms.filters.Filter |
applyFilter |
Methods inherited from interface gov.nih.nlm.mms.GUIConfigurable |
addDataChangeListener, getGUIConfigurableForValidationFailure, getValidationErrors, getValidationWarnings, hasDataChanged, removeDataChangeListener, resetDataChanged, setDataChanged, validate |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface gov.nih.nlm.mms.SubsetListener |
beginInitializeCuiList, beginSubsetContent, endInitializeCuiList, endSubsetContent, setCuiList |
Constructor Detail |
public SourcesToRemoveFilter()
SourcesToRemoveFilter
.
Method Detail |
public void initialize()
public JPanel getPanel()
getPanel
in interface GUIConfigurable
JPanel
that displays the graphical interface for the filterpublic void setPanelSelections()
setPanelSelections
in interface GUIConfigurable
public String getTabDescription()
getTabDescription
in interface GUIConfigurable
String
text of instructions for use of panelpublic void resetToDefaults()
resetToDefaults
in interface Configurable
public void showOptions()
showOptions
in interface GUIConfigurable
showOptions
in class AbstractFilter
public boolean hasAdvancedOptions()
hasAdvancedOptions
in interface GUIConfigurable
hasAdvancedOptions
in class AbstractFilter
true
if so; false
otherwisepublic JPanel getHelpPanel()
JPanel
that will be added to the main GUI help
menu to allow the user to consult a help window that is particular to this
filter.
getHelpPanel
in interface GUIConfigurable
getHelpPanel
in class AbstractFilter
JPanel
to be added to the Help menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- ApplicationConfiguration
public ApplicationConfiguration getConfiguration()
ApplicationConfiguration
.
ApplicationConfiguration
public Properties getProperties()
getProperties
in interface Configurable
Properties
only those directly related to the filter. They
will start with the filter's class name which will be concatenated
to the name of the property. Filter.property_namepublic void setProperties(Properties p)
setProperties
in interface Configurable
p
- Properties
public void applySelections(Concept concept)
Concept
or its components will
be removed from the release.
applySelections
in interface ConceptContentSelector
concept
- Concept
public String getName()
getName
in interface GUIConfigurable
String
public String getConfigurationDetails()
getConfigurationDetails
in interface Configurable
String
public void clearSelectedSources()
public void addSelectedSource(Source source)
Source
to the data structure that holds the list
of selected sources.
source
- Source
public void removeSelectedSource(Source source)
Source
from the data structure that holds the
list of selected sources.
source
- Source
public List getSelectedSources()
List
containing all Source
s
selected.
List
selected_sourcespublic Set getSelectedSourcesAsSet()
Set
containing all Source
s
selected.
Set
selected_sourcespublic List getSourcesToRemove()
SourcesToRemoveListener
to determine which sources should be removed from the other Filter
's
displays.
List
of Source
spublic List getSelectedSourcesInverse()
List
of Source
s that are not
selected.
List
of Source
s not selectedpublic Set getSelectedSourcesInverseAsSet()
Set
of Source
s that are not
selected.
Set
of Source
s not selectedpublic List getDefaultSourcesToRemove()
List
of all Source
s to be excluded.
List
public Set getDefaultSourcesToRemoveAsSet()
Set
containing the default list of all
Source
s to be excluded.
Set
public void setSelectedSources(List str)
str
- List
of Source
spublic void setSelectedSources(Set str)
str
- Set
of Source
spublic boolean isSourceToRemove(Source s)
boolean
depending on whether or not
the Source
is excluded from the subset.
s
- Source
boolean
true if Source
is to be removed
false if Source
is to be keptpublic boolean enforceFamilySelection()
boolean
true
all sources that share a
source family will also be selected false
otherwisepublic void setEnforceFamilySelection(boolean b)
b
- boolean
true
all sources that share
a source family will also be selected false
otherwisepublic boolean enforceDependentSourceSelection()
true
all sources that are dependent on the chosen
source will also be selected false
otherwisepublic void setEnforceDependentSourceSelection(boolean b)
b
- boolean
public boolean removeSelectedSources()
true
selected sources will be excluded
false
selected sources will be keptpublic void setRemoveSelectedSources(boolean b)
b
- boolean
public boolean getAutomaticSelection()
true
if automatic selection has been chosen
false
otherwisepublic void setConfiguration(UserConfiguration c)
setConfiguration
in interface Configurable
setConfiguration
in class AbstractFilter
c
- UserConfiguration
public List getSourceDependencies()
List
of Dependency
(s).
List
public Set getSourceDependenciesAsSet()
Set
of Dependency
(s).
Set
public List getDependentSources(Source source)
Source
.
source
- Source
List
of Source
spublic Set getDependentSourcesAsSet(Source source)
Source
.
source
- Source
Set
of Source
spublic boolean hasDependentSource(Source source)
Source
has a dependent source.
source
- Source
boolean
true
if source has a
dependent source false
otherwisepublic void clearSourceDependencies()
Dependency
(s).
public void setSourceDependencies(List source_dependencies)
Dependency
(s) with the one
given.
source_dependencies
- List
of Dependency
(s)public List getSources()
Source
s from the default configuration.
List
of sourcespublic Color getColor()
Color
that should be used to display the name.
getColor
in interface GUIConfigurable
getColor
in class AbstractFilter
Color
public boolean isEfficientEnabled()
Filter
can use the efficient mode during the
"Initialize Cuis" phase of the subsetting process. The efficient mode reads
only MRCONSO and MRSTY during the "Initialize Cuis" phase.
isEfficientEnabled
in interface Filter
true
if efficient mode is acceptable
false
if efficient mode is not acceptable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |