|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.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 UserConfiguration s 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 UserConfiguration s. |
|
MetamorphoSys(Properties user,
Properties app)
Instantiates a MetamorphoSys object, initializes
the ApplicationConfiguration and UserConfiguration s. |
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 UserConfiguration
s from
the config/mmsys.a.prop and config/mmsys.prop.sav files.
This constructor directly reports errors via SwingToolkit.reportError(java.lang.String)
rather than throwing exceptions.
public MetamorphoSys(File default_file, File user_file)
MetamorphoSys
object, initializes
the ApplicationConfiguration
and UserConfiguration
s.
This constructor directly reports errors via SwingToolkit.reportError(java.lang.String)
rather than throwing exceptions.
default_file
- File
user_file
- File
public MetamorphoSys(ApplicationConfiguration ac, UserConfiguration uc)
MetamorphoSys
object.
ac
- ApplicationConfiguration
uc
- UserConfiguration
public MetamorphoSys(Properties user, Properties app)
MetamorphoSys
object, initializes
the ApplicationConfiguration
and UserConfiguration
s.
Used for on-the-fly subsetting, uses Properties
objects rather
than configuration files.
This constructor directly reports errors via SwingToolkit.reportError(java.lang.String)
rather than throwing exceptions.
user
- Properties
app
- Properties
Method Detail |
public void initializeConfigurables()
public void initializeConfigurable(Configurable c)
c
- Configurable
public 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
- Source
public void subset()
CuiList
. This opens a ConceptInputStream
and subsets all Concept
s, maintaining a CuiList
of those
to keep, and those to get rid of.
Concept
s 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 Concept
s, 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
.
UserConfiguration
public void setUserConfiguration(UserConfiguration uc)
UserConfiguration
.
uc
- the UserConfiguration
.public ApplicationConfiguration getApplicationConfiguration()
ApplicationConfiguration
.
ApplicationConfiguration
public void setApplicationConfiguration(ApplicationConfiguration dc)
ApplicationConfiguration
.
dc
- the ApplicationConfiguration
.public BufferedWriter getLog()
BufferedWriter
log.
BufferedWriter
log.public void sourcesToRemoveChanged(SourcesToRemoveEvent e)
sourcesToRemoveChanged
in interface SourcesToRemoveListener
e
- SourcesToRemoveEvent
protected 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 |