|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.MetamorphoSys
public class MetamorphoSys
This class represents the MetamorphoSys application itself. It primarily is responsible for implementing the subsetting functionality. This class can be directly called as an application if you do not want to run MetamorphoSys with a GUI.
| Constructor Summary | |
|---|---|
MetamorphoSys()
Instantiates a MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations from the
config/mmsys.a.prop and config/mmsys.prop.sav files. |
|
MetamorphoSys(ApplicationConfiguration ac,
UserConfiguration uc)
Instantiates a MetamorphoSys object. |
|
MetamorphoSys(File default_file,
File user_file)
Instantiates a MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations. |
|
MetamorphoSys(Properties user,
Properties app)
Instantiates a MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations. |
|
| Method Summary | |
|---|---|
protected void |
fireSourcesToRemoveChanged()
Fires a SourcesToRemoveEvent to inform all listening filters to
respond to the change in the sources to remove list. |
ApplicationConfiguration |
getApplicationConfiguration()
Returns the ApplicationConfiguration. |
BufferedWriter |
getLog()
Returns the BufferedWriter log. |
UserConfiguration |
getUserConfiguration()
Returns the UserConfiguration. |
void |
initializeConfigurable(Configurable c)
Configures a filter or input/output stream. |
void |
initializeConfigurables()
Loads and configures the filters and input/output streams. |
static void |
main(String[] args)
Application entry point if no GUI is desired. |
void |
setApplicationConfiguration(ApplicationConfiguration dc)
Sets the ApplicationConfiguration. |
void |
setUserConfiguration(UserConfiguration uc)
Sets the UserConfiguration. |
void |
sourcesToRemoveChanged(SourcesToRemoveEvent e)
This method is called when there is a change to the selections on the sources to exclude tab. |
void |
subset()
Subsets the Metathesaurus. |
void |
subset(Concept concept)
Subsets the Concept. |
void |
subset(Source source_md)
Sets if Source is in current version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetamorphoSys()
MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations from the
config/mmsys.a.prop and config/mmsys.prop.sav files.
public MetamorphoSys(File default_file,
File user_file)
MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations.
default_file - Fileuser_file - File
public MetamorphoSys(ApplicationConfiguration ac,
UserConfiguration uc)
MetamorphoSys object.
ac - ApplicationConfigurationuc - UserConfiguration
public MetamorphoSys(Properties user,
Properties app)
MetamorphoSys object, initializes the
ApplicationConfiguration and UserConfigurations. Used for
on-the-fly subsetting, uses Properties objects rather than
configuration files.
user - Propertiesapp - Properties| Method Detail |
|---|
public void initializeConfigurables()
public void initializeConfigurable(Configurable c)
c - Configurablepublic void subset(Concept concept)
Concept. Here we remove content based on the various
installed filters but we do not try to use the CuiList or try to
resolve references. In other words, related content (CUI2, AUI2) is not
part of the subsetting criteria.
concept - the Concept to subsetpublic void subset(Source source_md)
Source is in current version.
source_md - Sourcepublic void subset()
CuiList. This opens a ConceptInputStream
and subsets all Concepts, maintaining a CuiList of those
to keep, and those to get rid of.
Concepts in two stages because
of the Relationship, Coocurrence, and Context
data, all of which have cui1 and cui2 values. In this stage of subsetting
we actually subset the Concepts, including this binary data and
write the results to the subset destination.
CuiList to keep those IndexEntry objects that are still
valid, and these are also written to the subset destination.
public UserConfiguration getUserConfiguration()
UserConfiguration.
UserConfigurationpublic void setUserConfiguration(UserConfiguration uc)
UserConfiguration.
uc - the UserConfiguration.public ApplicationConfiguration getApplicationConfiguration()
ApplicationConfiguration.
ApplicationConfigurationpublic void setApplicationConfiguration(ApplicationConfiguration dc)
ApplicationConfiguration.
dc - the ApplicationConfiguration.public BufferedWriter getLog()
BufferedWriter log.
BufferedWriter log.public void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged in interface SourcesToRemoveListenere - SourcesToRemoveEventprotected void fireSourcesToRemoveChanged()
SourcesToRemoveEvent to inform all listening filters to
respond to the change in the sources to remove list.
public static void main(String[] args)
args - String[]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||