|
|||||||||
| 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
public class 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, warnings |
| 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 Sources to be excluded. |
Set |
getDefaultSourcesToRemoveAsSet()
This method returns a Set containing the default list of all
Sources 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 Sources
selected. |
Set |
getSelectedSourcesAsSet()
This method returns the Set containing all Sources
selected. |
List |
getSelectedSourcesInverse()
This method returns the List of Sources that are not
selected. |
Set |
getSelectedSourcesInverseAsSet()
This method returns the Set of Sources 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 Sources 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, getWarnings, 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, getWarnings |
| 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 GUIConfigurableJPanel that displays the graphical interface for the filterpublic void setPanelSelections()
setPanelSelections in interface GUIConfigurablepublic String getTabDescription()
getTabDescription in interface GUIConfigurableString text of instructions for use of panelpublic void resetToDefaults()
resetToDefaults in interface Configurablepublic void showOptions()
showOptions in interface GUIConfigurableshowOptions in class AbstractFilterpublic boolean hasAdvancedOptions()
hasAdvancedOptions in interface GUIConfigurablehasAdvancedOptions in class AbstractFiltertrue 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 GUIConfigurablegetHelpPanel in class AbstractFilterJPanel to be added to the Help menupublic void setConfiguration(ApplicationConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - ApplicationConfigurationpublic ApplicationConfiguration getConfiguration()
ApplicationConfiguration.
ApplicationConfigurationpublic Properties getProperties()
getProperties in interface ConfigurableProperties 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 Configurablep - Propertiespublic void applySelections(Concept concept)
Concept or its components will
be removed from the release.
applySelections in interface ConceptContentSelectorconcept - Conceptpublic String getName()
getName in interface GUIConfigurableStringpublic String getConfigurationDetails()
getConfigurationDetails in interface ConfigurableStringpublic void clearSelectedSources()
public void addSelectedSource(Source source)
Source to the data structure that holds the list
of selected sources.
source - Sourcepublic void removeSelectedSource(Source source)
Source from the data structure that holds the
list of selected sources.
source - Sourcepublic List getSelectedSources()
List containing all Sources
selected.
List selected_sourcespublic Set getSelectedSourcesAsSet()
Set containing all Sources
selected.
Set selected_sourcespublic List getSourcesToRemove()
SourcesToRemoveListener
to determine which sources should be removed from the other Filter's
displays.
List of Sourcespublic List getSelectedSourcesInverse()
List of Sources that are not
selected.
List of Sources not selectedpublic Set getSelectedSourcesInverseAsSet()
Set of Sources that are not
selected.
Set of Sources not selectedpublic List getDefaultSourcesToRemove()
List of all Sources to be excluded.
Listpublic Set getDefaultSourcesToRemoveAsSet()
Set containing the default list of all
Sources to be excluded.
Setpublic void setSelectedSources(List str)
str - List of Sourcespublic void setSelectedSources(Set str)
str - Set of Sourcespublic 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 - booleanpublic boolean removeSelectedSources()
true selected sources will be excluded
false selected sources will be keptpublic void setRemoveSelectedSources(boolean b)
b - booleanpublic boolean getAutomaticSelection()
true if automatic selection has been chosen
false otherwisepublic void setConfiguration(UserConfiguration c)
setConfiguration in interface ConfigurablesetConfiguration in class AbstractFilterc - UserConfigurationpublic List getSourceDependencies()
List of Dependency(s).
Listpublic Set getSourceDependenciesAsSet()
Set of Dependency(s).
Setpublic List getDependentSources(Source source)
Source.
source - Source
List of Sourcespublic Set getDependentSourcesAsSet(Source source)
Source.
source - Source
Set of Sourcespublic 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()
Sources from the default configuration.
List of sourcespublic Color getColor()
Color that should be used to display the name.
getColor in interface GUIConfigurablegetColor in class AbstractFilterColorpublic 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 Filtertrue 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 | ||||||||