org.mbari.siam.foce.utils
Class ElmoCI

java.lang.Object
  extended by org.mbari.siam.foce.utils.ElmoCI

public class ElmoCI
extends java.lang.Object

ElmoCI (Elmo Command Interface) Maps user text commands into methods calls on classes implemententing ElmoIF and its subclasses (interfaces), like ElmoLouverIF and ElmoThrusterIF. Provides common interface to ElmoRMI and ElmoLocal, which combine ElmoCI with various implementations of ElmoIF to create utilities that may be used with or without SIAM.


Nested Class Summary
static interface ElmoCI.CmdCallback
           
 
Constructor Summary
ElmoCI()
           
ElmoCI(ElmoIF elmoIF)
           
 
Method Summary
protected  double getDoubleArg(java.util.StringTokenizer stok)
           
protected  int getIntArg(java.util.StringTokenizer stok)
           
protected  long getLongArg(java.util.StringTokenizer stok)
           
protected  java.lang.String getStringArg(java.util.StringTokenizer stok)
           
protected  void parseExecCmd(java.lang.String cmd, java.lang.String args)
           
 void printUsage()
          Print application-specific usage message to stdout.
 int run(java.lang.String[] options)
          Perform the actions indicated on the command line.
 void setElmo(ElmoIF elmoIF)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElmoCI

public ElmoCI()

ElmoCI

public ElmoCI(ElmoIF elmoIF)
Method Detail

setElmo

public void setElmo(ElmoIF elmoIF)

printUsage

public void printUsage()
Print application-specific usage message to stdout.


run

public int run(java.lang.String[] options)
Perform the actions indicated on the command line.

Returns:
0 on success

getIntArg

protected int getIntArg(java.util.StringTokenizer stok)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getLongArg

protected long getLongArg(java.util.StringTokenizer stok)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getDoubleArg

protected double getDoubleArg(java.util.StringTokenizer stok)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getStringArg

protected java.lang.String getStringArg(java.util.StringTokenizer stok)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

parseExecCmd

protected void parseExecCmd(java.lang.String cmd,
                            java.lang.String args)
                     throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.