TC Java
2011 Version

gov.nih.nlm.nls.tc.Tools
Class Stri

java.lang.Object
  extended by gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption
      extended by gov.nih.nlm.nls.tc.Lib.TcSystemOption
          extended by gov.nih.nlm.nls.tc.Tools.Stri

public class Stri
extends TcSystemOption

This class provides ST real-time index tool

History:

Version:
V-2011
Author:
NLM Lexical Systems Group

Field Summary
protected static java.io.BufferedReader inReader_
           
protected static java.io.BufferedWriter outWriter_
           
protected  java.util.Vector<java.lang.String> quitStrList_
           
 
Fields inherited from class gov.nih.nlm.nls.tc.Lib.TcSystemOption
option_, properties_, runFlag_
 
Fields inherited from class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption
systemOption_
 
Constructor Summary
Stri()
          Create a STRI tool object (default).
Stri(java.lang.String optionStr)
          Create a STRI tool object by specifying option string.
 
Method Summary
 void Close()
          Close the input file, output file, and database.
protected  void DefineFlag()
           
protected  void ExecuteCommand(gov.nih.nlm.nls.lvg.CmdLineSyntax.OptionItem optionItem, gov.nih.nlm.nls.lvg.CmdLineSyntax.Option systemOption)
           
 boolean IsLegalOption()
          Get the boolean flag to indicate if the option is legal or not.
static void main(java.lang.String[] args)
           
 boolean Process()
          Process the STRI calculation
 
Methods inherited from class gov.nih.nlm.nls.tc.Lib.TcSystemOption
GetConfig, GetOptions, GetOptionStr, InitCmdLineOption, SetPropertiesInConfig
 
Methods inherited from class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption
CheckOption, CheckSyntax, ExecuteCommands, GetOption, ToBoolean, ToFloatArray, ToIntArray, ToStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quitStrList_

protected java.util.Vector<java.lang.String> quitStrList_

inReader_

protected static java.io.BufferedReader inReader_

outWriter_

protected static java.io.BufferedWriter outWriter_
Constructor Detail

Stri

public Stri()
Create a STRI tool object (default).


Stri

public Stri(java.lang.String optionStr)
Create a STRI tool object by specifying option string.

Method Detail

main

public static void main(java.lang.String[] args)

Process

public boolean Process()
                throws java.sql.SQLException,
                       java.io.IOException
Process the STRI calculation

Returns:
true or false as the process is to be executed or exit
Throws:
java.sql.SQLException
java.io.IOException

IsLegalOption

public boolean IsLegalOption()
Get the boolean flag to indicate if the option is legal or not.

Overrides:
IsLegalOption in class TcSystemOption
Returns:
a boolean flag to indicate if the option is legal or not.

Close

public void Close()
Close the input file, output file, and database. This mehtod must be called before exit.


DefineFlag

protected void DefineFlag()
Specified by:
DefineFlag in class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption

ExecuteCommand

protected void ExecuteCommand(gov.nih.nlm.nls.lvg.CmdLineSyntax.OptionItem optionItem,
                              gov.nih.nlm.nls.lvg.CmdLineSyntax.Option systemOption)
Specified by:
ExecuteCommand in class gov.nih.nlm.nls.lvg.CmdLineSyntax.SystemOption

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine