|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.InstallConfiguration
public class InstallConfiguration
Represents the user's configuration choices up to the point where
a configuration file is loaded and MetamorphoSysGUI is instantiated.
It is mostly used in InstallationGUI and SubsetGUI.
| Method Summary | |
|---|---|
void |
clearProgressMonitor()
Clears the MMSProgressMonitor. |
static InstallConfiguration |
getInstallConfiguration()
Returns the singleton reference to the InstallConfiguration. |
File |
getLexiconFile()
Returns the File that contains the lexicon
data. |
File |
getMetaDestinationDirectory()
Returns the directory into which the Metathesaurus subset will be made. |
File |
getMetamorphoSysConfigurationDirectory()
Returns the File for the MetamorphoSys "config" directory
to use. |
File |
getMetamorphoSysFile()
Returns the File that contains the MetamorphoSys
application. |
MetamorphoSysInputStream |
getMetamorphoSysInputStream()
Gets the MetamorphoSysInputStream. |
File[] |
getMetathesaurusFiles()
Returns the File that contains the Metathesaurus
data. |
MMSProgressMonitor |
getProgressMonitor()
Returns a MMSProgressMonitor. |
String |
getReleaseVersion()
Returns the release version. |
File |
getSemanticNetworkFile()
Returns the File that contains the semantic network
data. |
File |
getUmlsDestinationDirectory()
Returns the directory into which the UMLS will be installed. |
File |
getUmlsDirectory()
Returns the File directory that contains the Metathesaurus
data. |
protected void |
initialize()
Reset the values. |
static boolean |
install(Frame owner)
Installs the Semantic Network and the Specialist Lexicon and Lexical Tools if they are selected on the InstallationGUI. |
boolean |
isCopyToHardDriveChecked()
Returns whether or not the metamorphosys file and nlm files have been chosen for installation. |
boolean |
isInstallUMLS()
Indicates whether the user chose the Install UMLS button on the WelcomeGUI. |
boolean |
isLexiconChecked()
Returns whether or not the lexicon has been chosen for installation. |
boolean |
isLvgChecked()
Returns whether or not LVG has been chosen for installation. |
boolean |
isMetathesaurusChecked()
Returns whether or not a directory should be created for the Metathesaurus. |
boolean |
isNewConfiguration()
Returns whether or not the user is running with a new configuration file. |
boolean |
isQueryUserToOpenSavedConfig()
Indicates whether the user should be queried to open last saved configuration when initializing RRF Browser. |
boolean |
isSemanticNetworkChecked()
Returns whether or not the semantic network has been chosen for installation. |
void |
setCopyToHardDriveChecked(boolean checked)
Sets whether or not the metamorphosys file and nlm files have been chosen for installation. |
void |
setInstallUMLS(boolean install_umls)
Sets whether the user chose the Install UMLS button on the WelcomeGUI. |
void |
setLexiconChecked(boolean checked)
Sets whether or not the lexicon has been chosen for installation. |
void |
setLexiconFile(File file)
Sets the File that contains the lexicon data. |
void |
setLvgChecked(boolean checked)
Sets whether or not LVG has been chosen for installation. |
void |
setMetaDestinationDirectory(File dir)
Sets the directory into which the Metathesaurus subset will be made. |
void |
setMetamorphoSysConfigurationDirectory(File dir)
Returns the File for the MetamorphoSys "config" directory
to use. |
void |
setMetamorphoSysFile(File file)
Sets the File that contains the MetamorphoSys application. |
void |
setMetathesaurusChecked(boolean checked)
Sets whether or not a directory should be created for the Metathesaurus. |
void |
setMetathesaurusFiles(File[] files)
Sets the File that contains the Metathesaurus data. |
void |
setNewConfiguration(boolean new_config_file)
Sets whether or not the user is running with a new configuration file. |
void |
setQueryUserToOpenSavedConfig(boolean query_to_open)
Sets whether the user should be queried to open the last saved configuration when initializing the RRF Browser. |
void |
setReleaseVersion(String version)
Sets the release version. |
void |
setSemanticNetworkChecked(boolean checked)
Sets whether or not the semantic network has been chosen for installation. |
void |
setSemanticNetworkFile(File file)
Sets the File that contains the semantic network data. |
void |
setUmlsDestinationDirectory(File dir)
Sets the directory into which the UMLS will be installed. |
void |
setUmlsDirectory(File dir)
Sets the File directory that contains the Metathesaurus data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected void initialize()
public static InstallConfiguration getInstallConfiguration()
InstallConfiguration.
InstallConfigurationpublic boolean isNewConfiguration()
true if a new configuration is being made
false if a saved configuration is being usedpublic void setNewConfiguration(boolean new_config_file)
new_config_file - true if a new configuration is being made
false if a saved configuration is being usedpublic boolean isSemanticNetworkChecked()
true if semantic network is chosen
false otherwisepublic void setSemanticNetworkChecked(boolean checked)
checked - according to selection of semantic networkpublic File getSemanticNetworkFile()
File that contains the semantic network
data.
File containing semantic network datapublic void setSemanticNetworkFile(File file)
File that contains the semantic network data.
file - File containing semantic network datapublic boolean isLexiconChecked()
true if lexicon is chosen
false otherwisepublic void setLexiconChecked(boolean checked)
checked - according to selection of lexiconpublic boolean isLvgChecked()
true if LVG is chosen
false otherwisepublic void setLvgChecked(boolean checked)
checked - according to selection of LVGpublic File getLexiconFile()
File that contains the lexicon
data.
File containing lexicon datapublic void setLexiconFile(File file)
File that contains the lexicon data.
file - File containing lexicon datapublic boolean isCopyToHardDriveChecked()
true if copy to hard drive is chosen
false otherwisepublic void setCopyToHardDriveChecked(boolean checked)
checked - according to selection of copy to hard drivepublic File getMetamorphoSysFile()
File that contains the MetamorphoSys
application.
File containing MetamorphoSyspublic File getMetamorphoSysConfigurationDirectory()
File for the MetamorphoSys "config" directory
to use.
File for the MetamorphoSys "config" directorypublic void setMetamorphoSysConfigurationDirectory(File dir)
File for the MetamorphoSys "config" directory
to use.
dir - File for the MetamorphoSys "config" directorypublic void setMetamorphoSysFile(File file)
File that contains the MetamorphoSys application.
file - File containing MetamorphoSyspublic boolean isMetathesaurusChecked()
true if metathesaurus is chosen
false otherwisepublic void setMetathesaurusChecked(boolean checked)
checked - according to selection of metathesauruspublic File getUmlsDirectory()
File directory that contains the Metathesaurus
data.
File containing Metathesaurus datapublic File[] getMetathesaurusFiles()
File that contains the Metathesaurus
data.
File containing Metathesaurus datapublic void setUmlsDirectory(File dir)
File directory that contains the Metathesaurus data.
dir - File containing Metathesaurus datapublic void setMetathesaurusFiles(File[] files)
File that contains the Metathesaurus data.
files - File containing Metathesaurus datapublic File getMetaDestinationDirectory()
File directory into which the subset will be madepublic void setMetaDestinationDirectory(File dir)
dir - File directory into which the subsets will be madepublic File getUmlsDestinationDirectory()
File directory into which the UMLS will be installedpublic void setUmlsDestinationDirectory(File dir)
dir - the File directory into which the UMLS will be installedpublic void setReleaseVersion(String version)
version - the release versionpublic String getReleaseVersion()
public boolean isInstallUMLS()
WelcomeGUI.
true if yes
no otherwise the user chose the ConfigureSubset buttonpublic void setInstallUMLS(boolean install_umls)
WelcomeGUI.
install_umls - true if user chose the Install UMLS button
no otherwise the user chose the ConfigureSubset buttonpublic boolean isQueryUserToOpenSavedConfig()
true if yes user should be queried
no otherwisepublic void setQueryUserToOpenSavedConfig(boolean query_to_open)
query_to_open - true if user chose the Install UMLS button
no otherwise the user chose the ConfigureSubset buttonpublic MMSProgressMonitor getProgressMonitor()
MMSProgressMonitor. If one doesn't yet exist, it instantiates
one.
MMSProgressMonitorpublic void clearProgressMonitor()
MMSProgressMonitor.
public MetamorphoSysInputStream getMetamorphoSysInputStream()
MetamorphoSysInputStream.
public static boolean install(Frame owner)
InstallationGUI. Writes the install.log.
owner - parent Component
true indicates installation completed
false indicates installation failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||