2
play

, 2 - PowerPoint PPT Presentation

%&'(.''()*9 '5 A , 2


  1. %�&�'(.'��'()��*�����9 '5 �����������A���� �������������������� ��������������,������������� 2 �=����������������������� • �������� ����������������0��,1� • RTTiming.h %5 ��� • RTLog.h • RTFrame.h (��0��6��,�����(���, (5 ���������������, • ��8������� 2 ��8�����H�(�A������ ���8�����8���� • RTActor.h K�=�����8��������8����� ° %�&�'(�����'��'()��*�����9 • �������������� ;5 �����8������E��8�������� • RTOutSignal.h • RTMessage.h • RTProtocol.h ?5 �� ��E������ !���"������"�� 7�8�#$#$ -5 ���������������,, 2 ����������H���������!������!E��:�E��� �,���+(-��.������%&%& ������ CISC 836, Winter 2020 53 ������ ?; (���,������:���, (���,������:���,������5� � (�A����H��=������������������������0������������������������1 � ,�������H� � �=������H��������������0�����������������1��=����������������������������� 2 �����������������!����������JJ������ � �=���������� �����������H��=�����������������J������ 2 �������������0�����������������1��������������V�����=������������ �������� � �=������ �����H�������������������������������������������=����������������UJ������� ����� ������ CISC 836, Winter 2020 ������ CISC 836, Winter 2020 55 56

  2. '���(�����������,��'(� �&�8���� (0��'(���,����������;���(0���&��"� � ����������������������88��������������������������������������������������� 2 ��8��������������������������������������� ���� � ������� ������� <RSARTE Installation Directory>/eclipse/rsa_rt/C++/TargetRTS/src :88�������������� 0������������������!������1 ����������� �������/� �������F. ������ CISC 836, Winter 2020 57 ������ CISC 836, Winter 2020 58 '���(�����������,��'(� �&�8����� '���(�����������,��'(� �&�8�������������������� ��,����*���, (������������, � RTTiming 2 ��8�� ���������8���� 2 ������� ° RTTimerNode informAt(RTTimespec) � C/�������D����������������� � �=��8���H� 'RTTimespec now; RTTimespec::getclock(now); timer.informAt(now + RTTimespec(5, 0));' ° RTTimerNode informIn(RTTimespec ) � C/�������D���������������� � �=��8��H�� 'timer.informIn(UMLRTTimespec(5, 0));’ ° RTTimerNode informEvery(RTTimespec) � �������������� � �=��8��H�� 'timer.informEvery(RTTimespec(5, 0));’ ° cancelTimer(RTTimerId) � RTTimespec 2 ��88��������8�������0�5�5��CRC�DSJC��CJJC1��������8�������8��������0�5�5��CLD��C�D1 CISC 836, Winter 2020 ������ CISC 836, Winter 2020 UML-RT 59 60

  3. '���(�����������,��'(� �&�8�������������������� ���������0��"�������:���,�������,����*���, &�""��"��������, � �����J�C����D � � RTLog �����%H�% �����8���������8������' 2 ��8��� �����8���� � �% �=�� 2 ������� 2 ����� ������!�������������� ��%�!�������������� ��'����������� ° log(primitiveType) � �% �8������ � .������!������88����� 2 ������������ �����E��8������������������ ��'����������� ° show(primitiveType) 2 /���� ������!E����������� ��%�����������!������������������� � G����!������88����� ��������� ������������ ����� ° cr(int) � /��8�����!����� 2 �������H� incarnate �� destroy 0 RTFrame.h 1 � �% 8����� 2 ����������������� �����E��8�������8�������������������!���� 8���������� �����������������%�� ��%� 2 �%���������� ������ ������������������������������5�5����������� 2 �������H� import �� deport 0 RTFrame.h 1 ������ CISC 836, Winter 2020 61 UML-RT CISC 836, Winter 2020 '���(�����������,��'(� �&�8�������������������� ������������.'���������� 7������������, � �����������������������8����������������������������8������� � RTFrame (RTFrame.h) 2 :�����������8����������8�����0��������������� ������������8��C���8����D1 2 ��8��� � �����8���� � �������8�������� 2 �������H��8���������8�����8���� ° RTActorId incarnate(RTActorRef & cp) 2 �������� m ������������H� cPort.m().send() � cp ���������8�����8���������!�����������������8������������� 2 �������� m ��������������8��� ��������0�5�5�� d3 1H� cPort.m().sendAt(2) � ������8�������������������������������� ����������8��� �����8��� 2 ��������!�����8������������������������H� msg->sapIndex0() ��������8��������= ° bool destroy(RTActorId) ° �5�5��� � d3 ������ m ��� c ������� msg->sapIndex0() ���� ����� ������������������������� m 2 �=��8��� !������������%�� ������ CISC 836, Winter 2020 ������ CISC 836, Winter 2020 63 64

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