Design Implementation and Evaluation of the Java Context

  • Slides: 16
Download presentation
Design, Implementation, and Evaluation of the Java Context Awareness Framework(JCAF) 2007 -07 -16 US

Design, Implementation, and Evaluation of the Java Context Awareness Framework(JCAF) 2007 -07 -16 US lab

Introduction ± Technical design and implementation of the JCAF ± Context Aware Computing 지원

Introduction ± Technical design and implementation of the JCAF ± Context Aware Computing 지원 ± Context aware application의 개발을 쉽게 할 수 있게

Key Concepts ± ± Context Services Entities and Context Clients Context Events

Key Concepts ± ± Context Services Entities and Context Clients Context Events

v Context Services : Entity의 context information을 받 아서 관리, 저장, 분배한다. v Entities

v Context Services : Entity의 context information을 받 아서 관리, 저장, 분배한다. v Entities : context 정보로 관리하고자 하는 대상 ex. A person, a patient, a place, a TV, a PC v Context : entity가 가지는 환경 이며 context item의 집합 ex. Home, office, hospital

v Context Clients: entity의 context information을 감지 하고 수집 Ø Ø v Context Events:

v Context Clients: entity의 context information을 감지 하고 수집 Ø Ø v Context Events: context service가 entity listener의해 감지된 이벤트를 등록하고 이벤트 발생을 통지 Ø v Context Monitor: sensor로 수집한 context 정보를 update Context Actuator: context item의 변화 처리 Context listener : 특정 entity의 context의 변화 감지하여 처리 The JCAF programming model supports type_based subscription

The JCAF Runtime Infrastructure

The JCAF Runtime Infrastructure

v Context Client Layer Ø Context Clients 는 하나 이상의 context services 에 accessing

v Context Client Layer Ø Context Clients 는 하나 이상의 context services 에 accessing 하는 JCAF infrastructure사용하는 context aware application

v Context Service Layer Ø Context transformer: small application specific Java Program (developer에 의해

v Context Service Layer Ø Context transformer: small application specific Java Program (developer에 의해 개발되어짐 transformer 저장소에 쓰고, 추가하는 기능) ü ü Ø Translators : context information 해독 Aggregators : 두 개 context information 통합 Key value attributes : application specific Java object로 key를 통해 entity에 접근 가능

v Context Monitor and Actuator Layer Context Monitor: sensor로 수집한 context 정 보를 update,

v Context Monitor and Actuator Layer Context Monitor: sensor로 수집한 context 정 보를 update, handle - entity와의 연결 Ø Context Actuator: context item의 변화 처리 여 러 개의 actuator가 함께 일 함 Ø

The JCAF programming model

The JCAF programming model

Context Service API ± Context. Service : ® get. Entity(): entity 객체의 복사본 리턴

Context Service API ± Context. Service : ® get. Entity(): entity 객체의 복사본 리턴 ® lookup. Entity(): 추가하려는 서비스와 연결 ® Discovery. Listener: entity 발견시 호출

Context Service API

Context Service API

Modeling Entity and Context ± Core modeling ® Entity, context, Relation, Context. Item ±

Modeling Entity and Context ± Core modeling ® Entity, context, Relation, Context. Item ± Model 예 ® person. X is located in room. 333 ± Context information에 대한 요청 및 갱신 ® Asynchronous mode ® Synchronous mode

Modeling Entity and Context Pulibc void context. Changed(Context. Event event) { //To Do }

Modeling Entity and Context Pulibc void context. Changed(Context. Event event) { //To Do }

Event-based infrastructure of JCAF Public interface Context. Item extends serializable { public long get.

Event-based infrastructure of JCAF Public interface Context. Item extends serializable { public long get. Sequence. ID(); public boolean is. Secure(); public double get. Accuracy(); public boolean equals(Context. Item another. Item); } ± Pulibc interface Entity. Listener { public void context. Changed(Context. Event event); }