|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object devs.sensorpackage.sonarexplorer.SensorExplorer
public class SensorExplorer
Nested Class Summary | |
---|---|
(package private) class |
SensorExplorer.InputReader
|
Field Summary | |
---|---|
static java.io.BufferedOutputStream |
bos
|
protected boolean |
busy
|
static java.io.InputStream |
is
Comment for is |
static javax.comm.ParallelPort |
mPort
Comment for mPort |
static javax.comm.CommPortIdentifier |
mPortId
Comment for mPortId |
static java.io.OutputStream |
os
Comment for os |
static java.util.Vector |
servos
Comment for servos |
Constructor Summary | |
---|---|
SensorExplorer(java.lang.String portName)
|
Method Summary | |
---|---|
void |
closePort()
Close the currently open serial port |
(package private) java.io.InputStream |
getInputStream()
|
(package private) java.io.OutputStream |
getOutputStream()
|
void |
initPort(int baud)
|
static void |
main(java.lang.String[] args)
|
void |
openPort(java.lang.String portName)
|
void |
sendInt(int i)
Sends a command to the ASC16 micro-controller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static javax.comm.CommPortIdentifier mPortId
mPortId
public static javax.comm.ParallelPort mPort
mPort
public static java.io.OutputStream os
os
public static java.io.InputStream is
is
public static java.util.Vector servos
servos
public static java.io.BufferedOutputStream bos
protected boolean busy
Constructor Detail |
---|
public SensorExplorer(java.lang.String portName)
portName
- Method Detail |
---|
public void sendInt(int i)
i
- - integerpublic void openPort(java.lang.String portName) throws javax.comm.NoSuchPortException, javax.comm.PortInUseException
portName
-
javax.comm.NoSuchPortException
javax.comm.PortInUseException
public void closePort()
public void initPort(int baud) throws javax.comm.UnsupportedCommOperationException
baud
-
javax.comm.UnsupportedCommOperationException
java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |