tourguide
Class LocationProcessor
java.lang.Object
com.ericsson.hosasdk.api.mm.ul.IpAppUserLocationAdapter
tourguide.LocationProcessor
- All Implemented Interfaces:
- com.ericsson.hosasdk.api.mm.ul.IpAppUserLocation, com.ericsson.hosasdk.api.IpInterface
- public class LocationProcessor
- extends com.ericsson.hosasdk.api.mm.ul.IpAppUserLocationAdapter
- implements com.ericsson.hosasdk.api.mm.ul.IpAppUserLocation
Implements handlers for User Location interactions.
This class is heavily based on a sample code provided with NRG SDK.
|
Constructor Summary |
LocationProcessor(com.ericsson.hosasdk.api.mm.ul.IpUserLocation anULManager,
ServiceLogic service)
Initializes instance variables. |
|
Method Summary |
void |
extendedLocationReportRes(int anAssignmentId,
com.ericsson.hosasdk.api.mm.TpUserLocationExtended[] reports)
Reports the user location to the service. |
void |
requestLocation(java.lang.String aUser)
Requests a location information for a users. |
| Methods inherited from class com.ericsson.hosasdk.api.mm.ul.IpAppUserLocationAdapter |
dispose, extendedLocationReportErr, locationReportErr, locationReportRes, notImplemented, periodicLocationReport, periodicLocationReportErr |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ericsson.hosasdk.api.mm.ul.IpAppUserLocation |
extendedLocationReportErr, locationReportErr, locationReportRes, periodicLocationReport, periodicLocationReportErr |
LocationProcessor
public LocationProcessor(com.ericsson.hosasdk.api.mm.ul.IpUserLocation anULManager,
ServiceLogic service)
- Initializes instance variables.
- Parameters:
anULManager - a User Location manager (NRG object).service - the service logic object that will process location information.
extendedLocationReportRes
public void extendedLocationReportRes(int anAssignmentId,
com.ericsson.hosasdk.api.mm.TpUserLocationExtended[] reports)
- Reports the user location to the service.
Called by the UL manager with the location information.
- Specified by:
extendedLocationReportRes in interface com.ericsson.hosasdk.api.mm.ul.IpAppUserLocation
requestLocation
public void requestLocation(java.lang.String aUser)
- Requests a location information for a users.
Invoked from ServiceLogic.
The location will be reported asynchronously through service.locationReceived.
- Parameters:
aUser - the address ('phone number' of a user)