org.mbari.siam.foce.utils
Class ElmoClientExample

java.lang.Object
  extended by org.mbari.siam.operations.utils.NodeUtility
      extended by org.mbari.siam.operations.utils.PortUtility
          extended by org.mbari.siam.foce.utils.ElmoClientExample

public class ElmoClientExample
extends PortUtility


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.operations.utils.NodeUtility
NodeUtility.InvalidOption
 
Field Summary
 
Fields inherited from class org.mbari.siam.operations.utils.PortUtility
_portNames
 
Fields inherited from class org.mbari.siam.operations.utils.NodeUtility
_node, _nodeHost, _nodeURL
 
Constructor Summary
ElmoClientExample()
           
 
Method Summary
 void getServiceStub(Node node, java.lang.String portName)
          get remote service stub and cast it to various interfaces
static void main(java.lang.String[] args)
           
 void parsePacket()
           
 void printUsage()
          Print application-specific usage message to stdout.
 void processCustomOption(java.lang.String[] args, int index)
          No custom options for this application.
 void processPort(Node node, java.lang.String portName)
          main PortUtility action
 int writeReadVelocity(double thrusterVelocityRPM)
          Use the ElmoThrusterIF interface to write and read motor velocity
 
Methods inherited from class org.mbari.siam.operations.utils.PortUtility
getPortName, multiPortsAllowed, processArguments, processArguments, processNode
 
Methods inherited from class org.mbari.siam.operations.utils.NodeUtility
getHostName, getNodeURL, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElmoClientExample

public ElmoClientExample()
Method Detail

main

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

processCustomOption

public void processCustomOption(java.lang.String[] args,
                                int index)
                         throws NodeUtility.InvalidOption
No custom options for this application.

Overrides:
processCustomOption in class NodeUtility
Throws:
NodeUtility.InvalidOption

printUsage

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

Specified by:
printUsage in class NodeUtility

getServiceStub

public void getServiceStub(Node node,
                           java.lang.String portName)
get remote service stub and cast it to various interfaces


writeReadVelocity

public int writeReadVelocity(double thrusterVelocityRPM)
                      throws java.lang.Exception
Use the ElmoThrusterIF interface to write and read motor velocity

Throws:
java.lang.Exception

parsePacket

public void parsePacket()

processPort

public void processPort(Node node,
                        java.lang.String portName)
                 throws java.rmi.RemoteException
main PortUtility action

Specified by:
processPort in class PortUtility
Throws:
java.rmi.RemoteException


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.