|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.linux.position.PositionServiceImpl
public class PositionServiceImpl
Constructor Summary | |
---|---|
PositionServiceImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext,
Map<String,Object> properties)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
String |
getLastSentence()
Returns the last sentence received from the gps. |
String |
getNmeaDate()
Returns the current NMEA date from ZDA sentence |
NmeaPosition |
getNmeaPosition()
Returns the current NMEA geographic position. |
String |
getNmeaTime()
Returns the current NMEA time from GGA or ZDA sentence |
org.osgi.util.position.Position |
getPosition()
Returns the current geographic position. The org.osgi.util.measurement.Measurement class is used to represent the values that make up a position : getLongitude() : returns the longitude of this position in radians. getLatitude() : returns the latitude of this position in radians. |
void |
handleEvent(org.osgi.service.event.Event event)
|
boolean |
isLocked()
Returns true if a valid geographic position has been received. |
void |
setConnectionFactory(org.osgi.service.io.ConnectionFactory connectionFactory)
|
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
setUsbService(UsbService usbService)
|
void |
unsetConnectionFactory(org.osgi.service.io.ConnectionFactory connectionFactory)
|
void |
unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
unsetUsbService(UsbService usbService)
|
void |
updated(Map<String,Object> properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionServiceImpl()
Method Detail |
---|
public void setConnectionFactory(org.osgi.service.io.ConnectionFactory connectionFactory)
public void unsetConnectionFactory(org.osgi.service.io.ConnectionFactory connectionFactory)
public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void setUsbService(UsbService usbService)
public void unsetUsbService(UsbService usbService)
protected void activate(org.osgi.service.component.ComponentContext componentContext, Map<String,Object> properties)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public void updated(Map<String,Object> properties)
public org.osgi.util.position.Position getPosition()
PositionService
getPosition
in interface PositionService
Position
public NmeaPosition getNmeaPosition()
PositionService
getNmeaPosition
in interface PositionService
NmeaPosition
public boolean isLocked()
PositionService
isLocked
in interface PositionService
public String getNmeaTime()
PositionService
getNmeaTime
in interface PositionService
public String getNmeaDate()
PositionService
getNmeaDate
in interface PositionService
public String getLastSentence()
PositionService
getLastSentence
in interface PositionService
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |