TC Java
2009 Version

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

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

public class StWsd
extends TcSystemOption

This class provides St-Wsd tool

History:

Version:
V-2009
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
StWsd()
          Create a STI tool object (default).
StWsd(java.lang.String optionStr)
          Create a STI tool object by specifying option string.
 
Method Summary
protected  void CheckMustOptions()
           
 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

StWsd

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


StWsd

public StWsd(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

CheckMustOptions

protected void CheckMustOptions()

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine