kaos.flexfeed.robots
Class KAoSRobotGPSProvider
java.lang.Object
AsyncProvider
kaos.flexfeed.robots.KAoSRobotGPSProvider
- All Implemented Interfaces:
- KAoSObserver
public class KAoSRobotGPSProvider
- extends AsyncProvider
- implements KAoSObserver
Method Summary |
java.lang.String |
getID()
Return the unique identifier of this observer. |
static KAoSRobotGPSProvider |
getInstance()
This is a blocking call which does not return until this class has
been initialized
This was done to allow someone to get a handle to this instance
regardless of the order of instantiation between their class and this
class (e.g. |
void |
init()
|
void |
run()
|
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KAoSRobotGPSProvider
public KAoSRobotGPSProvider()
getInstance
public static KAoSRobotGPSProvider getInstance()
- This is a blocking call which does not return until this class has
been initialized
This was done to allow someone to get a handle to this instance
regardless of the order of instantiation between their class and this
class (e.g. on Windows machines, KAoSRobotGPSProvider starts before
KAoSRobotWrapperAgent, but it is the opposite on Linux)
init
public void init()
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
getID
public java.lang.String getID()
- Description copied from interface:
KAoSObserver
- Return the unique identifier of this observer.
- Specified by:
getID
in interface KAoSObserver
- Returns:
- String containing the unique ID of this observer.
update
public void update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
- Description copied from interface:
KAoSObserver
- Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report.
- Specified by:
update
in interface KAoSObserver
- Parameters:
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.