16. Design of CAPP (contd.) Receives interpreted context and decides as which is the best available service that should be delivered to the client or returns a list of probable services to the client Description Makes decision on which service is to be delivered to the client on the basis of interpreted context and weighted averages of the interpreted contexts Function Decision Making Module This module interprets the gathered context by and identifying Who, What, Where & When contexts Description To interpret the gathered context as Who, What, When & Where contexts of both the user and the services Function Context Interpreter This module gathers context data. Description Gather context data on the basis of client’s info and request and represent the gathered information in the form enforced by the rule Repository Function Context Congregator This module listens to incoming requests and forwards them to the congregator for context gathering. Description Receives request and dispatches it to the context congregator module. Returns the result to the requester Function Dispatcher Module
37. Which Service Decision Making Module User Context Service Context 2 Service Context 1 Service Context N Service Context J User Context Output Inputs Best Association WHICH
45. Test Case 1 - Vital Context PRINTMS PRINTBE02 PRFAXBE ID Normal Sugar level NULL NULL Print Secondary type 38.2 C User temp Print Print Fax Primary type 71 Pulse Admin Admin Admin Owner 110 Di Sistolic Fit Fit Fit Air quality 80 Sistolic High High High Noise Normal Noise Normal Normal Normal Humidity Normal Humidity 16 C 16 C 16 C Temperature 16 C Temperature Normal Normal Normal Dust level Normal Dust level Bright Bright Bright Illumination Bright Illumination 18 minutes 10 minutes 25 minutes Availability time Busy Activity of user 100 Mbps 100 Mbps 100 Mbps Bandwidth Active, Idle, Idle Status Busy Busy Busy Status PDA, smart phone, PC Type 44 67 64 Space avail 3 Devices 50 60 65 Queue length Student Role Service C Service B Service A Attribute Ayesha Attribute Service Contexts User Context
46. Test Case 1 - Vital Context (contd.) Service Contexts User Context Service C Service B Service A Attribute Ayesha Attribute 1130 hrs 1130 hrs 1130 hrs Time 1130 hrs Time 18 June, 2006 18 June, 2006 18 June, 2006 Date 18 June, 2006 Date 0 0 0 Speed BELAB Location NULL NULL NULL Direction 0 Speed False False False Mobility NULL Direction MSLAB BELAB BELAB Location False Mobility 8080 8080 8080 Port Sitting Orientation //mslab017//printms //belab075//printbe02 //belab023//prfaxbe Namespace NULL Alias 192.168.13.201 192.168.13.181 192.168.13.33 IP Ayesha Ahmad Name NULL NULL BEPRINTANDFAX Alias 37405-0521200-6 SSN PRINTCS PRINTBE PRINTFAX Name AYESHA_BE_08_37 ID
47. Test Case 1- Results 0.5 0.5 0.1 0.9 Service C 0.9 0.9 0.9 0.9 Service B 0.63 0.9 0.9 0.1 Service A Weighted Average When Value Where Value What Value
50. Test Case 2 – Vital Context SCANMS2 SCANMS SCANBE ID Normal Sugar level NULL NULL NULL Secondary type 102 F User temp Scan Scan Scan Primary type 71 Pulse Admin Admin Admin Owner 120 Di Sistolic Fit Fit Fit Air quality 82 Sistolic Normal Normal Normal Noise Normal Noise Normal Normal Normal Humidity Normal Humidity 16 C 16 C 25 C Temperature 25 C Temperature Normal Normal Normal Dust level Normal Dust level Normal Bright Bright Illumination Bright Illumination 0 minutes 0 minutes 0 minutes Availability time Busy Activity of user A.C. A.C. A.C. Power supply Active, Active, Active Status Idle Idle Idle Status PC, PDA, Laptop Type 0 0 0 Space avail 3 Devices 0 0 0 Queue length Student Role Service C Service B Service A Attribute Kashif Attribute Service Contexts User Context
51. Test Case 2 – Vital Context (contd.) Service Contexts User Context Service C Service B Service A Attribute Kashif Attribute 1215 hrs 1215hrs 1215hrs Time 1215 hrs Time 28 July, 2006 28 July, 2006 28 July, 2006 Date 28 July, 2006 Date MSLAB MSLAB BELAB Location MSLAB Location //mslab065//scanms2 //mslab096//scanms //belab024//scanbe Namespace Standing Orientation 192.168.13.129 192.168.13.125 192.168.13.26 IP Kashif Farooq Name NULL NULL NULL Alias 37405-126524-9 SSN MSSCAN2 MSSCAN BESCAN Name KASH_BE_05_199 ID
52. Test Case 2 - Results 0.375 0.1 0.9 0.9 0.9 Service C 0.375 0.1 0.9 0.9 0.9 Service B 0.575 0.9 0.9 0.1 0.9 Service A Weighted Average Health Value When Value Where Value What Value
55. Test Case 3 - Vital Context 1030 hrs 1030 hrs 1030 hrs Time 1030 hrs Time July 28, 2006 July 28, 2006 July 28, 2006 Date July 28, 2006 Date MSLAB LECHALL02 LECHALL01 Location Faculty office Location NULL NULL NULL IP Sitting Orientation NULL NULL NULL Alias Viky Alias MULTIMEDIAMSLAB MULTIMEDIALECHALL2 MULTIMEDIALECHALL1 Name Waqas Arshad Name MMSLAB ML2 ML1 ID 37405-053320-8 SSN NULL NULL NULL Secondary type WAQ_FAC_CS_23 ID Multimedia Projector Multimedia Projector Multimedia Projector Primary type Busy Activity of user 0 minutes 0 minutes 50 minutes Availability time Idle, Active, Active Status Idle Idle Busy Status PC, phone, laptop Type 1 1 1 Space avail 3 Devices 0 0 1 Queue length Faculty Role Service C Service B Service A Attribute Waqas Attribute Service Contexts User Context
56. Test Case 3 - Results 0.633333333 0.9 0.1 0.9 Service C 0.633333333 0.9 0.1 0.9 Service B 0.366666667 0.1 0.1 0.9 Service A Weighted Average When Value Where Value What Value
59. Test Case 4 - Vital Context 1227 hrs 1227 hrs 1227 hrs Time 1227 hrs Time 29 July, 2006 29 July, 2006 29 July, 2006 Date 29 July, 2006 Date FACULTYOFFICE BELAB MSLAB Location Standing Orientation FACULTYTELEPHONE BELABTELEPHONE MSLABTELEPHONE Name Maryam Ayaz Name TELFAC TELBE TELMS ID 37405-056204-7 SSN NULL NULL NULL Secondary type MARY_FAC_EE_057 ID Telephone Telephone Telephone Primary type Idle Activity of user Admin Admin Admin Owner Idle, Idle, Idle Status 0 minutes 0 minutes 0 minutes Availability time PDA, PDA, Laptop Type A.C. A.C. A.C. Power supply 3 Devices Idle Idle Idle Status Faculty Role Service C Service B Service A Attribute Maryam Attribute Service Contexts User Context
60. Test Case 4 - Results 0.633333333 0.9 0.1 0.9 Service C 0.633333333 0.9 0.1 0.9 Service B 0.633333333 0.9 0.1 0.9 Service A Weighted Average When Value Where Value What Value
63. Performance (contd.) A B C 0.5 0.5 0.5 14 A B 0.1 0.5 0.5 15 C 0.9 0.1 0.5 16 A C 0.5 0.1 0.5 17 A 0.1 0.1 0.5 18 B C 0.9 0.9 0.1 19 B 0.5 0.9 0.1 20 B 0.1 0.9 0.1 21 C 0.9 0.5 0.1 22 B C 0.5 0.5 0.1 23 B 0.1 0.5 0.1 24 C 0.9 0.1 0.1 25 C 0.5 0.1 0.1 26 A B C 0.1 0.1 0.1 27 C 0.9 0.5 0.5 13 B 0.1 0.9 0.5 12 B 0.5 0.9 0.5 11 B C 0.9 0.9 0.5 10 A 0.1 0.1 0.9 9 A 0.5 0.1 0.9 8 A C 0.9 0.1 0.9 7 A 0.1 0.5 0.9 6 A 0.5 0.5 0.9 5 A C 0.9 0.5 0.9 4 A B 0.1 0.9 0.9 3 A B 0.5 0.9 0.9 2 A B C 0.9 0.9 0.9 1 Outcome Service C Service B Service A
Highly dynamic nature of context and the presence of replicated services requires a prudent search mechanism for the appropriate service for the mobile user
Design of a Context-Aware System that provides smart service discovery in pervasive environments.
The low-level context is firstly categorized and then interpreted to give meaning to the context
The deduced who is the user ID and the user role associated with the ID.
Decision Making in CAPP answers the question of Which Service? In a typical scenario the decision making module is met with a single user context and multiple service contexts
In the computing era of pervasive computing, context-awareness being a prime issue demands a context-aware system Undoubtedly, context-awareness is the future of computing and will change the way services are accessed By the Grace of Almighty Allah, the objectives that were set forth in the start of this thesis have been successfully accomplished