bt747.waba_view
Class GPSWabaSocketPort

java.lang.Object
  extended by gps.connection.GPSPort
      extended by bt747.waba_view.GPSWabaSocketPort

public final class GPSWabaSocketPort
extends GPSPort

Implements the serial port for the standard Waba SerialPort

Author:
Mario De Weerd

Field Summary
 
Fields inherited from class gps.connection.GPSPort
os_name
 
Constructor Summary
GPSWabaSocketPort()
           
 
Method Summary
 void closePort()
          Close the connection.
 int error()
          getter to retrieve the last error report by the serial port driver.
 boolean isConnected()
          Indicates if the device is connected or not.
 int openPort()
          Open a connection
 int readBytes(byte[] b, int start, int max)
           
 int readCheck()
           
 void setBlueTooth()
          Set a bluetooth connection
 void setUSB()
          Set an USB connection
 void write(byte[] b)
           
 void write(java.lang.String s)
           
 
Methods inherited from class gps.connection.GPSPort
debugActive, endDebug, getDebugFileName, getFreeTextPort, getPort, getSpeed, setDebugFileName, setFreeTextPort, setPort, setSpeed, startDebug, writeDebug, writeDebug
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPSWabaSocketPort

public GPSWabaSocketPort()
Method Detail

isConnected

public final boolean isConnected()
Indicates if the device is connected or not.

Overrides:
isConnected in class GPSPort
Returns:
true if the device is connected.

closePort

public final void closePort()
Close the connection.

Overrides:
closePort in class GPSPort

openPort

public int openPort()
Open a connection

Overrides:
openPort in class GPSPort
Returns:
status result of the opening of the serial port.

setBlueTooth

public final void setBlueTooth()
Set a bluetooth connection

Overrides:
setBlueTooth in class GPSPort

setUSB

public final void setUSB()
Set an USB connection

Overrides:
setUSB in class GPSPort

error

public final int error()
getter to retrieve the last error report by the serial port driver.

Returns:
last error from the waba.io.SerialPort driver

write

public final void write(byte[] b)
Specified by:
write in class GPSPort

write

public final void write(java.lang.String s)
Specified by:
write in class GPSPort

readCheck

public final int readCheck()
Overrides:
readCheck in class GPSPort

readBytes

public final int readBytes(byte[] b,
                           int start,
                           int max)
Overrides:
readBytes in class GPSPort