gov.nih.nlm.mms.cxt
Class MRCXTBuilderOutputStream

java.lang.Object
  extended bygov.nih.nlm.umls.io.RichMRFilesConceptInputStream
      extended bygov.nih.nlm.mms.cxt.MRCXTBuilderOutputStream
All Implemented Interfaces:
ConceptInputStream

public class MRCXTBuilderOutputStream
extends RichMRFilesConceptInputStream

Builds MRCXT.RRF from MRHIER.RRF and MRCONSO.RRF with the help of a few indexes.

Author:
Deborah Shapiro

Field Summary
 
Fields inherited from class gov.nih.nlm.umls.io.RichMRFilesConceptInputStream
add_suffix, atom_hm, file_names, from_rsab, from_vsab, install_paths, mrcoc_source, mrconso_counter, mrconso_lines, mrconso_source, mrcxt_source, mrdef_source, mrdoc_source, mrhier_source, mrhist_source, mrmap_source, mrrel_source, mrsat_source, mrsty_source, rel_hm, this_concept, to_rsab, to_vsab, tokens
 
Constructor Summary
MRCXTBuilderOutputStream()
          Instantiates an empty MRCXTBuilderOutputStream.
 
Method Summary
 boolean isCancelled()
          Indicates whether or not the license agreement was cancelled or not accepted.
protected  void openMRFiles()
          Opens the Rich Release Format MR files.
 void sortMRCXT(MRCXTBuilderGUI gui)
          Sorts the MRCXT.RRF file.
 int writeMRCXT(MRCXTBuilderGUI gui)
          Writes MRCXT.RRF
 
Methods inherited from class gov.nih.nlm.umls.io.RichMRFilesConceptInputStream
close, getAtoms, getAttributes, getComponentHistories, getConceptProgress, getContexts, getCoocurrences, getDefinitions, getLineCounts, getMappings, getRelationships, getSemanticTypes, newInstanceFromMRCONSO, newInstanceFromMRHIER, open, openSourceFile, readConcept, setAdditionalSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRCXTBuilderOutputStream

public MRCXTBuilderOutputStream()
Instantiates an empty MRCXTBuilderOutputStream.

Method Detail

writeMRCXT

public int writeMRCXT(MRCXTBuilderGUI gui)
               throws Exception
Writes MRCXT.RRF

Parameters:
gui - the MRCXTBuilderGUI
Returns:
int count of mrhier lines
Throws:
Exception - if anything goes wrong

sortMRCXT

public void sortMRCXT(MRCXTBuilderGUI gui)
               throws Exception
Sorts the MRCXT.RRF file.

Parameters:
gui - MRCXTBuilderGUI
Throws:
Exception

isCancelled

public boolean isCancelled()
Indicates whether or not the license agreement was cancelled or not accepted.

Returns:
true if the GUI was cancelled, false otherwise

openMRFiles

protected void openMRFiles()
                    throws IOException
Opens the Rich Release Format MR files.

Overrides:
openMRFiles in class RichMRFilesConceptInputStream
Throws:
IOException - if any files cannot be opened


Copyright ©2005