Download Bachelor Thesis - e
Transcript
If the Network is activated the subsystem requests the location updates to the Network system and the location is sent to the Service Controller module. If the GPS is activated the subsystem starts a timer and requests the location updates to the GPS device system. If the location using the GPS system is too slow, the timer will request the location updates to the Network system which is faster to obtain. Once the location is obtained, it is sent to the Service Controller module. Also, there is a timer for GPS and Network location, in case those location systems are too slow this time will provide the last known location of the device. 4.2.3. Data Tier The data tier contains the resources for persistent storage such as the structure creation and the management systems, as well as the structures required to accessing the data from the logic tier. This data tier is build over a relational database management system that will be reviewed into more detail in the implementation chapter. The chosen database is SQLite which is an Open Source Database embedded into Android. This database supports SQL syntax, transactions and prepared statements. The choice of this database over other alternatives was motivated by the low memory requirements of this database at runtime (200Kbyte) [16]. The data tier will be accessible by the Service Controller in the logic tier in order to obtain the information and access to stored data. This last tier is composed by the Database Manager subsystem. Figure 4.2.3. – Service Diagram 4.2.3.1. Database Manager Subsystem This subsystem contains all the data which is required by the logic tier. This data contains the rules that the Service Controller stores in the database. These data is accessed by the Service Controller subsystem in order to obtain the location, the restrictions and the exception included in the rules. 72