org.mbari.siam.foce.deployed
Class FOCERemoteRelay

java.lang.Object
  extended by org.mbari.siam.foce.deployed.RemoteIOMapper
      extended by org.mbari.siam.foce.deployed.FOCERemoteRelay
All Implemented Interfaces:
java.io.Serializable

public class FOCERemoteRelay
extends RemoteIOMapper

Class to manipulate relays on FOCE

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mbari.siam.foce.deployed.RemoteIOMapper
_out, IOPORT_PORT
 
Constructor Summary
FOCERemoteRelay(java.lang.String hostName)
           
 
Method Summary
 int boardAddr(int board)
           
static void main(java.lang.String[] args)
          Main method is for command-line testing
 void powerOff(int board, int relayNum)
           
 void powerOn(int board, int relayNum)
           
 int readElmo()
           
 boolean relayIsOn(int board, int relayNum)
           
 int relayState(int board)
           
 int switchElmo(int val)
           
 
Methods inherited from class org.mbari.siam.foce.deployed.RemoteIOMapper
close, transact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FOCERemoteRelay

public FOCERemoteRelay(java.lang.String hostName)
                throws java.io.IOException,
                       java.net.UnknownHostException
Throws:
java.io.IOException
java.net.UnknownHostException
Method Detail

relayState

public int relayState(int board)
               throws java.io.IOException,
                      java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

boardAddr

public int boardAddr(int board)
              throws java.io.IOException,
                     java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

powerOn

public void powerOn(int board,
                    int relayNum)
             throws java.io.IOException
Throws:
java.io.IOException

powerOff

public void powerOff(int board,
                     int relayNum)
              throws java.io.IOException
Throws:
java.io.IOException

relayIsOn

public boolean relayIsOn(int board,
                         int relayNum)
                  throws java.io.IOException,
                         java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

switchElmo

public int switchElmo(int val)
               throws java.io.IOException,
                      java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

readElmo

public int readElmo()
             throws java.io.IOException,
                    java.lang.NumberFormatException
Throws:
java.io.IOException
java.lang.NumberFormatException

main

public static void main(java.lang.String[] args)
Main method is for command-line testing



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.