|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.semoa.service.AbstractService
de.fhg.igd.gps.GPSServiceImpl
| Field Summary | |
private long |
bad_
|
private GPSData |
currentGpsData_
|
protected boolean |
debug_
|
private static String[] |
DEPEND_
The dependencies to other objects in the global
Environment. |
private EventReflector |
eventReflector_
|
private long |
good_
|
private GPSParser |
gpsParser_
|
private LinkedList |
history_
|
static int |
HISTORY_SIZE
|
private int |
historySize_
|
private long |
historyStepDistance_
|
private long |
historyStepTime_
|
static String |
OPT_DESCR
The ArgsParser option descriptor for the case
that this class is initiated from command line. |
private boolean |
parserRunning_
|
| Fields inherited from class de.fhg.igd.semoa.service.AbstractService |
REV_POSTFIX, REV_PREFIX |
| Fields inherited from interface de.fhg.igd.gps.GPSService |
WHATIS |
| Constructor Summary | |
GPSServiceImpl()
|
|
| Method Summary | |
TrustedListener |
addListener(Listener listener)
|
String |
author()
Returns the String with the author's name. |
String[] |
dependencies()
Returns the dependencies of this service as described in Service. |
GPSData |
getCurrentGpsData()
|
int |
getHistorySize()
|
LinkedList |
history()
|
String |
info()
Returns the String with the service's short description. |
void |
initGpsParser(Reader reader)
|
void |
initGpsParser(String file)
|
static void |
main(String[] argv)
|
void |
notifiedOf(Object o)
This method is called with the event that caused the notification. |
void |
resetHistory()
|
String |
revision()
Returns the revision number of this class as a string. |
void |
setDefaultGpsData(GPSData data)
|
void |
setDefaultWGS84(String str)
|
void |
setHistorySize(int size)
|
void |
setHistoryStepDistance(long distance)
|
void |
setHistoryStepTime(long time)
|
void |
startGpsParser()
|
void |
stopGpsParser()
|
String |
toString()
|
void |
updateGpsData(GPSData data)
|
protected boolean |
updateHistory()
|
| Methods inherited from class de.fhg.igd.semoa.service.AbstractService |
checkDependencies, docs, doPrivileged, doPrivileged, getACC, getEnvironment, majorVersion, minorVersion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String OPT_DESCR
ArgsParser option descriptor for the case
that this class is initiated from command line.
public static final int HISTORY_SIZE
protected boolean debug_
private EventReflector eventReflector_
private LinkedList history_
private int historySize_
private long historyStepDistance_
private long historyStepTime_
private GPSParser gpsParser_
private GPSData currentGpsData_
private boolean parserRunning_
private long good_
private long bad_
private static final String[] DEPEND_
Environment.
| Constructor Detail |
public GPSServiceImpl()
| Method Detail |
public String info()
info in interface Serviceinfo in class AbstractServicepublic String author()
author in interface Serviceauthor in class AbstractServicepublic String revision()
revision in class AbstractServicepublic String[] dependencies()
Service.
dependencies in interface Servicedependencies in class AbstractServicepublic String toString()
toString in class AbstractServicepublic void notifiedOf(Object o)
Listener
notifiedOf in interface Listenero - The object describing the event.protected boolean updateHistory()
public TrustedListener addListener(Listener listener)
addListener in interface GPSServicepublic GPSData getCurrentGpsData()
getCurrentGpsData in interface GPSServicepublic void updateGpsData(GPSData data)
updateGpsData in interface GPSServicepublic void setHistorySize(int size)
setHistorySize in interface GPSServicepublic int getHistorySize()
getHistorySize in interface GPSServicepublic void setHistoryStepDistance(long distance)
setHistoryStepDistance in interface GPSServicepublic void setHistoryStepTime(long time)
setHistoryStepTime in interface GPSServicepublic void resetHistory()
resetHistory in interface GPSServicepublic LinkedList history()
history in interface GPSServicepublic void setDefaultWGS84(String str)
setDefaultWGS84 in interface GPSServicepublic void setDefaultGpsData(GPSData data)
setDefaultGpsData in interface GPSServicepublic void initGpsParser(String file)
initGpsParser in interface GPSServicepublic void initGpsParser(Reader reader)
initGpsParser in interface GPSServicepublic void startGpsParser()
startGpsParser in interface GPSServicepublic void stopGpsParser()
stopGpsParser in interface GPSService
public static void main(String[] argv)
throws InterruptedException,
ArgsParserException
InterruptedException
ArgsParserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||