org.mbari.siam.foce.deployed
Class FOCERemoteRelay
java.lang.Object
org.mbari.siam.foce.deployed.RemoteIOMapper
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FOCERemoteRelay
public FOCERemoteRelay(java.lang.String hostName)
throws java.io.IOException,
java.net.UnknownHostException
- Throws:
java.io.IOException
java.net.UnknownHostException
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.