|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.emulator.position.PositionServiceImpl
public class PositionServiceImpl
| Constructor Summary | |
|---|---|
PositionServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
|
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. |
boolean |
isLocked()
Returns true if a valid geographic position has been received. |
void |
setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
void |
start()
|
void |
stop()
|
void |
unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
|
| 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 setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
public void unsetEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
protected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
public org.osgi.util.position.Position getPosition()
PositionService
getPosition in interface PositionServicePositionpublic NmeaPosition getNmeaPosition()
PositionService
getNmeaPosition in interface PositionServiceNmeaPositionpublic String getNmeaTime()
PositionService
getNmeaTime in interface PositionServicepublic String getNmeaDate()
PositionService
getNmeaDate in interface PositionServicepublic boolean isLocked()
PositionService
isLocked in interface PositionServicepublic String getLastSentence()
PositionService
getLastSentence in interface PositionServicepublic void start()
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||