eca dl e transforma es
play

ECA-DL e Transformaes Patrcia Dockhorn Costa pdcosta@inf.ufes.br - PowerPoint PPT Presentation

ECA-DL e Transformaes Patrcia Dockhorn Costa pdcosta@inf.ufes.br Context-Awareness Context-Awareness Context the set of possibly interrelated conditions in which an entity exists. Context-Aware Application Context Application


  1. ECA-DL e Transformações Patrícia Dockhorn Costa pdcosta@inf.ufes.br

  2. Context-Awareness Context-Awareness

  3. Context the set of possibly interrelated conditions in which an entity exists.

  4. Context-Aware Application Context Application Context-aware application is a distributed application whose behaviour is affected by its users’ context.

  5. Developing Context-Aware Context-Aware Applications

  6. Basic Requirements Capture Capture Capture Capture Process Process Process Process React React React React

  7. Capture Context

  8. Model Behaviour

  9. Multitude of Sensors

  10. Distributed Application

  11. Context-Aware Application

  12. Supporting Context-Aware Application Development

  13. Supporting Context-Aware Application Development (cont.) � Quite some work on that: � context-aware patterns; � context-aware patterns; � services platform (context sources, managers, controllers, action resolvers, etc.); � context and situation models; � situation reasoning and (distributed) detection; � ECA language for modelling reactive behaviours, etc.

  14. ECA-DL ECA-DL

  15. Padrão Event-Control-Action Pattern � � � ������ ������������������������� � ��������� ������� �������� � � � � � � � � � � � � ������� � ������ � �������� ����������� ������ �������� ������ ����� ���������� ���������� � � � � � � � � ���������� ���������� ������ � �������� � ������ ������ � � �

  16. Elementos Básicos de ECA- DL � � � �� � �� � � � � ���� ���� � � �� �� � �� � � � ����� � � � �� � ���� � � � ��

  17. Navigation � Aims at reaching values or objects of concern in the context and situation models � Navigation in ECA-DL is similar to navigation in OCL � “dots” to navigate from objects to attributes � The target element is always a primitive datatype � The target element is always a primitive datatype (numeric, boolean or string) � We also include the type of object being navigated � �������������������

  18. Navigation (example) � $�������������%������&�'�������� � $�������������%���'���������� � $�������������!��"���������������������������� # �������� ��� �� �! ��"��� ���� ��� �� ����� �� ������ ���������� ������� � � �� �� � � � � �� �� ��� ��� � � � � � � � � ���� ���� � � ��� ��� �������� �������� � � ���� ���� � � �� �� � � � � �� �� ��� ��� � � � � � � # �� �������(�) �� � # ����������(�) �� � ���������� ������� �� �% � �����& �' �� # � ��������(�) �� � � � ����� � � � �� � �� ��� # �� ����(�) �� � � � �� ������ �� ��� ������ � ���� ���������� ������� �� �% � ��' ���� � � � � � ���� � ��� � �� # �� ����(�) �� � � �

  19. Navigation - collection � &������* � Supported by means of select clause

  20. Events in ECA-DL � Situation events (transitions EnterTrue (S) e EnterFalse(S)) � ��������� ��������������� �������������� � Primitive events: not detected by means of situations � IncomeCall (entityFrom, entityTo) � IncomeCall (entityFrom, entityTo) � Temporal events � Generated from time-to-time � OnEvery(t) � Complex events � Composition of primitive or situation events

  21. Complex Events �������� ��������� ����� ��+�, -����� '��� .��� �� ��� �, ����� ������������ �� ����� ����� /��0�,1 2 �3 -����� '��� �� ������ �����'�� .� �, ��� �3 ���� ��� ����� .��'��� ���� ��4�, -����� '��� �� �� �, ������ ��0�, -����� '��� �� ������ .����� �, ��������� 56�������� �������� 5)����3�7�8�&������9���::�0������;���� 56�������� �������� 5)����3�7�8�&������9���::

  22. Timestamps � An event occurs at a specific time: occurrence time � ������������������� (�� he time interval during which a composite event is being detected � Initiator: initiates the composite detection � Terminator: terminates the detection � Terminator: terminates the detection � The occurrence time of a composite/complex event is the terminator’s occurrence time

  23. Event Consumption � Events are consumed by ECA-DL rules � “John enters the room and at most 15 minutes later he turns his computer on” � John enters the room at 15:05 hrs, 15:10 hrs, and at 15:13 hrs 15:13 hrs � John turns his computer on at 15:15 hrs (terminator) � Which notification is the initiator? � In ECA-DL, the oldest (15:05) � And this notification is NOT considered again: Notification is consumed by the rule! � John turns his computer on again at 15:18 hrs � Which notification is the initiator?

  24. Event Consumption � Event e3: (e1&e2) � Notifications: e1, e1, e2, e1, e2 ������ �������������� �������������� � � � � � � � � � � � � � � � ��������� � � � � � � � � � � � ��������� � � � � � � ���������

  25. Detection Window � Event: (e1&e2) � Notifications: e1, e1, e2, e1, e2 �' �' �� �� ������ �������� ������ � , � � � � � � � �����5� :� � 3 � � � � � , � �����5.:� �

  26. Upon-When-Action clause <����=��������������> ?����=�������������������> $��=����������������>

  27. Select clause 6������5=����������������������>0�=���>0�=���������� ������������������������>: 6������5&������*8��8������>7�: 6������5&������*8��8�6��������?�����)���� 5�:: 6������56������5&������*8���8�������>7�:8��,8� 6������56������5&������*8���8�������>7�:8��,8� 6��������?�����)���� 5�,::

  28. Scope clause 6�����5=����������������������>0����: /� <����=���������������� > ?����=�������������������> $��=����������������> 1 6�����56������5&������*8�������8�6�������� �������� 5������8�������������::8��:: / <������������� 56�������� �������� 5��������:: $��@������5�8�A�����������������������������������B: 1

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend