|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objecttourguide.ServiceLogic
Implements the main logic flow of the service. Uses Ericsson NRG SDK (Parlay/OSA) objects to interact with a Parlay gateway.
| Constructor Summary | |
ServiceLogic()
Creates PointsOfInterest object. |
|
| Method Summary | |
void |
locationReceived(java.lang.String user,
float latitude,
float longitude)
Creates and sends MMS with the location map. |
void |
setGui(AdminGui ag)
Registers a GUI reference for future status updates. |
void |
showStatus()
Used to update a status field on the screen. |
void |
smsReceived(java.lang.String user,
java.lang.String receiver,
java.lang.String SMSContent)
Requests the location of the SMS sender. |
void |
start(int n)
Activates the service by requesting SMS notifications from the Parlay gateway. |
boolean |
startEnabled()
Validates that the service can be started. |
void |
stop()
Deactivates the service by stopping the SMS notifications. |
boolean |
stopEnabled()
Validates that the service can be stopped. |
void |
terminate()
Terminates the TourGuide service. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceLogic()
| Method Detail |
public void locationReceived(java.lang.String user,
float latitude,
float longitude)
user - the SMS sender number (the MMS destination)latitude - the location latitudelongitude - the location longitudeLocationProcessor.extendedLocationReportRes(int, com.ericsson.hosasdk.api.mm.TpUserLocationExtended[]),
PointsOfInterest.createMimeContent(double, double, int, int),
MMSProcessor.sendMMS(java.lang.String, java.lang.String, byte[], java.lang.String)public void setGui(AdminGui ag)
ag - AdminGui object reference.public void showStatus()
public void smsReceived(java.lang.String user,
java.lang.String receiver,
java.lang.String SMSContent)
user - the SMS sender number (the origination address)receiver - this service number (the destination address, ignored)SMSContent - the SMS content (ignored)SMSProcessor.reportNotification(com.ericsson.hosasdk.api.ui.TpUIIdentifier, com.ericsson.hosasdk.api.ui.TpUIEventInfo, int)public void start(int n)
n - the service SMS number.public boolean startEnabled()
public void stop()
public boolean stopEnabled()
public void terminate()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||