TC Java
2011 Version

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

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.Sti

public class Sti
extends TcSystemOption

This class provides St 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_
           
protected  boolean verbose_
           
 
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
Sti()
          Create a STI tool object (default).
Sti(java.lang.String optionStr)
          Create a STI 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 STI 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_

verbose_

protected boolean verbose_
Constructor Detail

Sti

public Sti()
Create a STI tool object (default).


Sti

public Sti(java.lang.String optionStr)
Create a STI 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 STI 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