com.eurotech.framework.linux.position
Class GpsDevice

java.lang.Object
  extended by com.eurotech.framework.linux.position.GpsDevice

public class GpsDevice
extends Object

GPS Utility class, not intended to be used by the end user of ESF.
Assuming the device talks NMEA over a serial port configured thru PositionService


Constructor Summary
GpsDevice()
           
 
Method Summary
 void configureConnection(org.osgi.service.io.ConnectionFactory connFactory, Properties connectionConfig)
           
 void configureProtocol(Properties protocolConfig)
           
 void connect()
           
 void disconnect()
           
 String get_dateNmea()
           
 String get_lastSentence()
           
 String get_timeNmea()
           
 int getConnectStatus()
           
 NmeaPosition getNmeaPosition()
           
 org.osgi.util.position.Position getPosition()
           
 String getProtocolName()
           
 String getUnitAddress()
           
 boolean is_validPosition()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GpsDevice

public GpsDevice()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getProtocolName

public String getProtocolName()

getUnitAddress

public String getUnitAddress()

configureProtocol

public void configureProtocol(Properties protocolConfig)
                       throws PositionException
Throws:
PositionException

configureConnection

public void configureConnection(org.osgi.service.io.ConnectionFactory connFactory,
                                Properties connectionConfig)
                         throws PositionException
Throws:
PositionException

getConnectStatus

public int getConnectStatus()

getPosition

public org.osgi.util.position.Position getPosition()

getNmeaPosition

public NmeaPosition getNmeaPosition()

is_validPosition

public boolean is_validPosition()

get_dateNmea

public String get_dateNmea()

get_timeNmea

public String get_timeNmea()

connect

public void connect()
             throws PositionException
Throws:
PositionException

disconnect

public void disconnect()

get_lastSentence

public String get_lastSentence()


Copyright © 2013. All Rights Reserved.