Tham khảo tài liệu 'smart home systems part 14', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 186 Smart Home Systems Our main computation processes for the agents are created based on UCVA Agent Model Maher and Gu 2002 . Agents are defined as Reactive agents reasoned response to an expected event in the virtual world. Their main processes are sensation perception and action. Place agent takes care of context-aware reasoning including social event definition as well as spatial interaction control between users and the virtual space. It collects all context information for each space such as space type number of user current activity compared with social event definition to define current event for a single space. In contrast avatar agent keeps handling user interaction. Each user has his or her own avatar agent. It senses the user s action then transmits the data to the place agent and waits for the response. Web Layer and Graphics User Interface At the top level web service with server-client topology is constructed to enable the online simulation. Users connect to the web server using HTTP protocol through the system homepage. On one hand the dynamic WebPages are written in ASP script embedding ActiveX control stage control in the interface implemented using C language. The control engine can be automatically downloaded and installed on the first visit. The engine task is to handle user interaction and to render the virtual environment on the ActiveX control. The client side also includes texture library avatar expression and motion database used for rendering purpose. On the other hands the server locates the main computation engine where place and avatar agents are registered to update the virtual place context and gain connection to the database on the lower level. The ActiveX control works with other dynamic controls on the web pages to enable user actions and to display the updated virtual smart home environment using stream socket to synchronize clients with the server. 5. Virtual Smart Home Applications Based on the virtual smart home framework