|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.platform.PuckUtils
public class PuckUtils
The PuckUtils class provides various methods to manipulate the puck such as erasing the non volitale memory and putting it into pass through mode.
| Constructor Summary | |
|---|---|
PuckUtils(java.io.InputStream in,
java.io.OutputStream out)
Creates a PuckUtils objetc by using an intput and output stream to a device that implements the pucks serial protocol. |
|
PuckUtils(gnu.io.SerialPort serial_port)
Creates a PuckUtils object by using a SerialPort object to a device that supports the pucks serial protocol. |
|
| Method Summary | |
|---|---|
void |
erasePuck()
Erases pucks non-volatile memory. |
java.lang.String |
getPuckHeader(int entry)
Returns a puck header entry. |
boolean |
initPuckUtils()
This method is used to synchronize communications with the puck. |
void |
puckOut()
Places the puck into pass through mode. |
void |
setPuckHeader(int entry,
java.lang.String val)
Sets a puck header entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PuckUtils(java.io.InputStream in,
java.io.OutputStream out)
public PuckUtils(gnu.io.SerialPort serial_port)
| Method Detail |
|---|
public java.lang.String getPuckHeader(int entry)
throws java.io.IOException
java.io.IOException
public void setPuckHeader(int entry,
java.lang.String val)
throws java.io.IOException
java.io.IOException
public void erasePuck()
throws java.io.IOException
java.io.IOException
public void puckOut()
throws java.io.IOException
java.io.IOExceptionpublic boolean initPuckUtils()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||