|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 Service
info
in class AbstractService
public String author()
author
in interface Service
author
in class AbstractService
public String revision()
revision
in class AbstractService
public String[] dependencies()
Service
.
dependencies
in interface Service
dependencies
in class AbstractService
public String toString()
toString
in class AbstractService
public void notifiedOf(Object o)
Listener
notifiedOf
in interface Listener
o
- The object describing the event.protected boolean updateHistory()
public TrustedListener addListener(Listener listener)
addListener
in interface GPSService
public GPSData getCurrentGpsData()
getCurrentGpsData
in interface GPSService
public void updateGpsData(GPSData data)
updateGpsData
in interface GPSService
public void setHistorySize(int size)
setHistorySize
in interface GPSService
public int getHistorySize()
getHistorySize
in interface GPSService
public void setHistoryStepDistance(long distance)
setHistoryStepDistance
in interface GPSService
public void setHistoryStepTime(long time)
setHistoryStepTime
in interface GPSService
public void resetHistory()
resetHistory
in interface GPSService
public LinkedList history()
history
in interface GPSService
public void setDefaultWGS84(String str)
setDefaultWGS84
in interface GPSService
public void setDefaultGpsData(GPSData data)
setDefaultGpsData
in interface GPSService
public void initGpsParser(String file)
initGpsParser
in interface GPSService
public void initGpsParser(Reader reader)
initGpsParser
in interface GPSService
public void startGpsParser()
startGpsParser
in interface GPSService
public 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 |