Table 3: Comparison of the traditional image segmentation algorithm by Canny [1986] and the algorithm JSeg by Deng et al. [ 1999] in images of tile compositions of Scenario II. 1 lmages =l!c====C�a � n � n �y===4:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡� -! \ : -\ -;----..;, lr--\_J \ _____ j . min: 20 max: 60 min: 90 max: 100 min: 70 max: 90 76 Designing a software framework for smart enviromnents J. I. Sánchez-Venzalá, A. Fernández-Montes, J. A. Ortega, R J. Cuberos Dcpartment of Computcr Sciencc, University of Scville, Scville, Spain j
[email protected],a
[email protected],
[email protected],
[email protected] Abstrnct The purpose of this paper is to describe the cksign of a ,olh>,arc 1·ramework to build smart environ ment, ba,cd in the architecturc proposcd and thc OSGi tcchnology. Thc Frarncwork divides thc gen eral process in threc subprocesscs, and specilies a 111ethodology for thc implcmentation of each part, as well as the way in which these pnns must in tcrnct bctween thcm. The main objcctive of this framework is to providc a platfonn for builcl smart environmcnts in a modular way, whcrc flexibility and intcropcrability betwcen modules wcrc guaran leed whilc implcmenta1ion is facilitatcd by recluc ing thc gap betwccn cach individual dcvicc and thc bchaviour of the system a a whole. always from thc software point of vicw: protocol. elata and inter faces hctcrogcncily ancl clevice interopcrnbility. l Introduction Frorn the beginning of computing. computers havc incrcase thcir capacity and capabilitics. whilc thcir sizc have been re duced. Thcsc changes havc made possiblc new applications of computing. like the ambient intelligence. whid1 aims to improve thc cnvironmcnt lo mnke life casier for users in a trnnsparent way. Smart environments are one of the ambient intelligence principal fields. and a representation or the vision of future for society. Thus, recent technological advances have given amhient i111elligence a new impulse, and smart environments is now a trending r-ield in the current compurer sphere. In a recent paper we have studied several smart home projccts, idcntifying thc principal proccsscs ancl tasks which have to be carried out in ordcr to irnplcmcnt an smart envi ronrr1cnt. The study of the projects. concluclcd that software !ayer of smart cnvironmcnts did not rcccive the appropriate relevance by rcsearchers. For example. intcropcrability was one of the rnajor proble111 in smart environment. and software is able to providc solutions for it. Wc have proposcd a general software architccturc taking in consiclcrntion thcse tasks ancl gcneralizing the111 for srnart environments. The general architccturc proposecl for thcse tasks is basecl in the vicw of s111art cnvironments as systcms where tive 111ain arcas [ 1] intcracts betwecn them (Figure 1 ). These fivc arcas, can be divided in two groups, three rnain arcas which fonn the auto111ation process of the environmcnt: Sense, Reason ancl Act. and two support arcas: HCI ancl Security. Each onc of thcse arcas is clividecl for his part. in scveral tasks. in a hierarchical structurc, as is presented in scction 3. Figure 1: S111arr Environ111ent areas. Thc framework designed fro111 the architecture philosophy, gives response for the nceds of each arca, providing a co111111on servicc oricnted middlcware (SOA) and defining how each task havc to be implemented by following thc principies of OSGi (Open Service Gatcway lnitiativc). Thc dcfinition of the smart environment software frarnc-· work provicles a general architecture for smart cnvironmcnts. a co111111on scrvicc toolkit and gives thc software layer the re sponsibility of dcvices and scrviccs intcroperability, reducing 77
c v o 5 1 1 = = • 3 S = 5 . g : b 3 9 - 3 - S r o p r o 5 e ^ r e — v r e ' l í C 3 2 r t B q - r a C — ñ ' i r a = C B - T 3 | o ; x 3 g ? : 5 - 3 - ; . ^ " g : 2 . ^ e p ^ " C 0 . ^ 3 f j q . ^ . e _ ^ ( j q a ^ e x — re 3 ^ i i r o r o C r e I c 3 re 3 O 3 - r o re r o C U J Í e s ' $ ^ r 7 T ^ - ^ ^ r e e ^ ^ 1 e r a ' z r . p < 5 r e f r o - ^ - . ^ ^ ^ n . . . . e 3 r e re X s ^ r e i n 3 1 . r a • o 0 a c t a ^ 3 S " q - O . 8 I 2 o * n r a r e 0 • f 3 i " S < C f q _ O r e i s i - r e 3 3 r e r e ' 3 " 3 ^ . . on j i 0 re i n 3 3 L U U 0 . H a g . r a < r a r a q r a - ^ r a < . ^ . ^ i ^ - r e i ^ 3 ^ , 3 " • : 1 i | . ^ ; r a - o E . c o ' . ^ , = g ^ - C < o n b r a o 1 = _ 3 r a S : - f l i l f ! í o " S - = • 5 > - H . ^ 3 - 3 ^ - . ^ 3 . a 3 _ . s r 2 o 3 ^ * . r e 3 e ^ O C f i • o í ñ B < ~ t — • a Ñ " r ea O 3 O r e ' r e • G e n t 3 0 ' ' 3 r e í 3 r e P G p i > — h O UÚ r e C 3 i n r e c r o p 3 p 0 ^ r o * r o re r e re c r 3 " — • 3 " í r e r e r e 3 3 r e j q re P G i ce r e 0 3 3 r e c B ( - . u c r e r e 0 - L U I t h e • O 3 t i c 3 t t e í i c h u d y ^ . ^ , ^ 3 • r e * i n ^ ; q 3 r a - o 3 S 3 a r a d i a o 1 0 — q r e B 3 - a 5 = 3 o - r o „ . r a r a r a n • c a . y , c í , ^ • r a q - ' 8 b 3 3 ' q r a o q & " r a 3 - r P c b " o i f i i r e r e 3 ^ - 3 r o ^ p ^ " t | f ? o ' c x r T O ^ 3 ^ 3 - 3 c r e " z C ^ • - ^ ^ 3 3 ^ o - 3 f r e r e 3 • ^ r e r e e < r o ^ Q < _ ^ 3 3 r o p 2 ^ r o r o p ~ > " o r e - 3 " ^ P P ^ ^ x o ^ . ^ . i r o 3 o - . ' r e r e ^ ^ I I x ; r e r e 3 - r e r o S C ^ ' p ^ - r o ^ 3 w r e ' > ' . ' r a . c , - r a , ^ ^ . r a . i - 2 c c r . < r í ^ ^ P ^ ^ < ^ ^ r o r e - ^ a ^ d r a g ^ 3 3 5 - 2 P ^ < • ' r o . = ^ ^ 3 i G F p ^ - p B ^ - ^ S r a r a ^ ^ • • í ™ I o f e = S f l u ^ r e ^ . - r e ^ r e _ 3 ^ r e C _ 1 II d i S I r o ^ 3 O " < • - g r e _ c r F 3 3 Í " ¡ o r c ^ ^ , r o - 3 . r o c ¿ z ^ re I " i . 7 3 < r a " ^ r O ra ^ r d d c e c T s s 0 q 3 * ^ r a o ^ l 3 ^ l a ' r r e o r a o . r e n o w l 7 ? r e 1 | — - q P C i r a " i í á < r a q — 2 ee s r e g 5 r e ; 8 n v r e , D i a n ^ r o o ' p j S ! ^ 1 ^ ^ ^ - 3 p í ^ P ¡ ^ ^ ^ 9 1 l 3 ¡ ^ re - . > T ^ 5 B O , 1 r a o 3 I r a . ^ . r a • r a ^ o . r a ^ g 8 f 5 F i n g . A c t : u r e 4 : " T I o s ' O S G i A . h i c h d e f S r J a v - . l e w o r l r a 8 b . i i i s a r n o d O i n d c o l l a r a " ^ - . r a a l l , i y , u s i a r e < s o l í t o b u i l d ra . < • h i c h t h c w a y 1 r a , a n d li e s . un d r a " ll e d r e a 3 o r k p r ov ra ra ¥ t i m e . i m a r a o t e r a 33 i n 3 * r e " C u i t b a s e d J Í H U v i r ó n e x r e 3 t r í e n t e r e r v i c r e — í ¡ e v e l o p e r e B i i s t o r e c a i r r . T h e r a x h i t e c f e o p u s e n t s t h a t 3 r e • G 7 q ^ - r a d u u r a r a n g r a 3 ) 1 1 1 b r a r a e r n • B _ ee s Í n t e r 3 a n d s e l l e s i r a r a r a 5 . : i li t r a ~ " g : y a n d t i - U l ! ' r a c o m m u : i c e s r d e v n f o i o l u ti o r a 8 U . I c r 5 G i w a s O ou g h i t f a l t h ra c li n i a n i t h . í ^ ^ . p a t i i l l y c o m X — o ; 2 s e a u X r e 8 p t h e i Q a n y e d i n m - G p • G . i o n s e r v í l i c a t ' • a pp r e i c . r a o p n i r a 0 . ra - a r a t h i s p h il • i n g j : I e f r a n f t h * " - r a - q 3 r a o f t w a r e 3 - t a n d a p 3 l a r i n p c 3 ; s d y n a n n e t h o d . 3 5 " _ r r o - • 3 * u n d l e s , e p _ c r re < re G - 5 ' d i v i d e c r r e v V Í I l 7 ^ w o r re p r e d b y t h e a n e d ( d e í i O r e D . * G i i n e r e ^ r e C x r e 3 c r c r o r e i t e r í a c 1 1 1 p r e B . i n _ P , a n d a n - E B l e s l i u i u l l B u n d l e > S G i . r a O un i t i r a e r a i nn l p t h e J e s a r e r a 00 v h i c h a l l 8 ' — > r e i n t i r e - . r e ¡ 3 N < p p T h i o g . s e r v i c i p o * p h a n d I c a r e r e c r r e c r G 3 re i e d b ) I A O J i c e s p ; A J 3 r e a n d i s c o v e r O P r e 3 3 r o n n i c e nv i p o . t u r e w i l l l i t e c i a r c f c r e re " O _ o c r e x 3 re d ef i i ^ . m u n c t i o n a d e f 3 d i v i 5 b u n d l o r e ^ o o q c n t e d b y ¡ t i r a r a 3 ra i ti i r e r ^ r a ' ra ra r a s a t i t h e m t o 3 3 . f o t f re 3 a S J r e ' s o f t w , t h e T - j 2 " . b - i 1 i n s ^ 2 ^ c B 3 - 2 ™ o n > B w l ' g . 3 b ™ 8 3 o . g 5 ' 3 ^ f j Q o j e ; S f D O r e r o m e n r e 3 f w o r k i 3 p z r r e F i gu r e l i t r a 3 p ^ - r e ^ ^ p a . c p 3 n f o r r e 7q 3 r e r e c r o r e 3 " r e w h i r e ^ < C ^ " r o ^ ^ r e 3 P f t h e f r P 3 " i n i c h i 3 - r e o 3 " P r e - o _ - ^ S - H a - i t B g s ^ 5 . i - ^ 3 g 8 | ^ , ^ _ ^ r r 3 r - , z ñ P ¡ i s o r e u o 5 = 5 * q . . r a 8 t I ^ l . o - 3 r - r * ^ " . j r a _ r a b ^ r o l I I Í ^ p < - • • j e . s b O í 3 ~ - 5 O H ^ * ^ ^ - c r . - . a ^ ¿ . ^ c + C T 5 ^ " - r e ^ ^ C > t : V O . - r e G 3 o ? y ^ 5 ; ; 5 o 3 r e 3 < 3 — . d e c i r e r e 3 • S " r e r e r e d i ff e e 3 " e r o ' r o r e r e - i ^ r o o o O ^ ^ 5 ^ < p r e J 0 Q ^ 8 ^ . o 3 S g g - ^ — 3 o ^ . r a b t • S - r a 3 . = . 3 r a — < r a 3 * g n a — ~ < ¡ ^ 2 . S 5 = ' ^ ^ * p ' ^ 3 r e | S ? ^ P b - og o b l T 3 C f q ^ ^ ^ r e 2 r e ^ - 3 — • X , _ X ^ I I i E l ^ o „ = • • ' = • s . i s S G O T t — . 1 ? 1 1 I I Í Í 1 S ^ 3 - o 3 T — 5 3 1 - • i l i & ^ í 1 5 3 l - i z - 5 S - ' q q : q q 3 ^ 3 2 ' i r a " r e = . 2 - P . = U g s | 3 2 S ^ g a 1 I ' B - : s ^ 0 . 1 I V l r e p 0 . 1 " O z r i ? . 5 3 = t S S 2 B 3 ^ S . ^ ; i ' q ^ r a = • S ^ " ' 3 A . r a r a l i l i ; 3 r a ^ ^ 3 r a l l l . i t r e ^ c r e < o O 3 o q ^ I - I 3 ^ S . ^ ^ " 8 r a g = - 2 q - . _ • a > o o 2 B . " = q - T 3 T j ' o 3 o í r a l 3 8 ^ 3 B J f i í l i l i " 2 . o . q 3 a i q - o . ¡ ^ 2 b r a r a • o 2 " ^ B 1 - 1 S q - q • n S f 8 3 X o. = - 9 ' ' p ^ 2 ^ ~ 3 p r r í s ^ 8 a ^ 5 3 a 5 r e i ? ^ • B _ s - • e ^ 3 2 . 3 g . o , r - 5 b ' c — t q - r a q . - S 3 C b S 8 8 r a — f H P . r o r e 5 . ; 3 ^ ( D ' . " 3 . 5 0 o ^ ; s g - : • a ^ ^
^ I I C t Q a 8 2 . I 3 ! J l ' 3 g - 2 . o . o . ^ 3 - ^ o S ^ ¿ 5 I l l ll l f o 2 3 - ^ 5 = • 6 B " 3 " 0 Q 1 ^ I ^ • ^ 1 3 o 3 3 ^ ^ ^ 3 - o B 3 P ^ / ) S - S e S ' ^ o 8 b b " d 3 o 3 ^ , 3 * : r e ¡ > ! r u 3 " r e 3 > ' 3 . ~ ^ r e ' 3 3 a . i l l 1 ^ - S ^ í • < r e E T • , 3 ^ . g ; 1 ^ ^ ^ i — • 3 ¡ L a | o O o ^ — - c / ) 3 i S i s o P ^ * 2 . ^ 3 * 8 ' S - " r e b d & ^ S ' S ' 3 r e - 3 f r I i f i 3 3 B * . 2 . ^ ^ • r e g > ó ; 2 " • 3 3 ^ ¡ 8 2 . E i l r e r e OX 3 r e ' a r e • s ñ t / J ^ • : o j ^ ^ 8 " ^ 3 * „ 3 - 3 8 3 3 I * | - ™ o E L g 9 ; p ™ • g 3 | . e C / 3 H ^ 5 w o ^ í H K M J S W H • - = ! . t • I 3 ^ — - O ^ - ^ 5 ' o 8 g i 7 3 H < . O 3 S É 2 a • í m o ó é c E L o H • 3 H ^ r e í ^^ 3 B . S " 3 | I D i r t 3 . 3 R * 1 g 1 ^ g o o p É L 3 ' E L 3 Í T ^ a l oo 3 & > a * q . g ^ ^ ^ ^ ^ f 1 * i S * Á - & . 2 . n > p " f 5 P * ^ - ^ t O í f ? ^ ^ = 8 — . 3 ^ 3 O f l S l p ^ ^ 5 " - 3 * . 3 - 2 " E L • i f i O C 5 I I O i - j ( ^ < p o c ' d <= ! 3 S ^ S p S " = Í | | ji l i l í i l l t s l . i - . ^ i ^ T 5 ' ^ & ^ • S ^ = 3 . I 3 . s . 8 ^ = • 5 ^ Q ^ 5 O r e 3 - . . EE ? ^ o ^ • a g e ? ^ j ' p : f i f í I . 5 1 I - f l ? I t i ^ n m i t - i g . S ^ a = - 3 U . ¡ 9 3 ~ - ^ O ^ - - o 1 í i i o -? 3 o ^ ^ r s ^ 1 9 ^ ? I I S 3 Í 1 9 ^ 8 . ^ . 3 ' • o 1 1 ¡ ^ 5 r E " i i M * b S ¿ . — ^ : S e r v i ce Á r e a U v e r F o u n d a t i on