gov.nih.nlm.umls.meta
Class MetaDescriptionInitializer

java.lang.Object
  extended bygov.nih.nlm.umls.meta.MetaDescriptionInitializer

public final class MetaDescriptionInitializer
extends Object

Provides an easy mechanism for initializing the system from MRDOC, MRSAB, and SRDEF. This is a convenience class to help users avoid the complexities of initializing an application.

Author:
Brian Carlsen, Deborah Shapiro

Constructor Summary
MetaDescriptionInitializer()
          Instantiates an empty MetaDescriptionInitializer.
 
Method Summary
static void initialize(File mrdoc, File mrsab, File srdef)
          Initializes any or all of the following files: MRDOC, MRSAB, SRDEF.
static void initialize(File mrdoc, File mrsab, File srdef, File sty_groups)
          Initializes any or all of the following files: MRDOC, MRSAB, SRDEF.
static void initialize(MetaDescription[] meta_dsc)
          Initializes all of the MetaDescriptions at one time.
static void initialize(SourceMetaDescription[] source_meta_dsc)
          Initializes all of the SourceMetaDescriptions at one time.
static void initialize(STYMetaDescription[] sty_meta_dsc)
          Initializes all of the STYMetaDescriptions at one time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDescriptionInitializer

public MetaDescriptionInitializer()
Instantiates an empty MetaDescriptionInitializer.

Method Detail

initialize

public static void initialize(MetaDescription[] meta_dsc)
Initializes all of the MetaDescriptions at one time.

Parameters:
meta_dsc - an array of MetaDescriptions
Throws:
IllegalStateException - if an attempt is made to call this method more than once

initialize

public static void initialize(STYMetaDescription[] sty_meta_dsc)
Initializes all of the STYMetaDescriptions at one time.

Parameters:
sty_meta_dsc - an array of STYMetaDescriptions
Throws:
IllegalStateException - if an attempt is made to call this method more than once

initialize

public static void initialize(SourceMetaDescription[] source_meta_dsc)
Initializes all of the SourceMetaDescriptions at one time.

Parameters:
source_meta_dsc - an array of SourceMetaDescriptions
Throws:
IllegalStateException - if an attempt is made to call this method more than once

initialize

public static void initialize(File mrdoc,
                              File mrsab,
                              File srdef)
                       throws IOException
Initializes any or all of the following files: MRDOC, MRSAB, SRDEF. BAckwards compatability.

Parameters:
mrdoc - File MRDOC
mrsab - File MRSAB
srdef - File SRDEF
Throws:
IOException

initialize

public static void initialize(File mrdoc,
                              File mrsab,
                              File srdef,
                              File sty_groups)
                       throws IOException
Initializes any or all of the following files: MRDOC, MRSAB, SRDEF.

Parameters:
mrdoc - File MRDOC
mrsab - File MRSAB
srdef - File SRDEF
sty_groups - File SemGroups.txt
Throws:
IOException


Copyright ©2005