1 / 10

This application note is based on the work held by Ankur Agarwal at Computer Science and Engineering Florida Atlantic

This application note is based on the work held by Ankur Agarwal at Computer Science and Engineering Florida Atlantic University Boca Raton, FL-33486. “ Multi threads Producer – Consumer application ” with En v ision UML-C++ ® by CASE-France and Future Tech System

ratana
Download Presentation

This application note is based on the work held by Ankur Agarwal at Computer Science and Engineering Florida Atlantic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. This application note is based on the work heldby Ankur AgarwalatComputer Science and Engineering Florida Atlantic UniversityBoca Raton, FL-33486 “Multi threads Producer – Consumer application” with Envision UML-C++®by CASE-France and Future Tech System Technical contact : Jean-Claude Jacquiot

  2. Forewords This is a full threads running Windows application using Producer – Consumer project • Comment about the demo • This package includes a running threads Windows demo, based on the Producer – Consumer project. • The demo has been generated with UML-C++ from UML diagrams shown in the following pages. Code has been compiled with Microsoft Visual C++ compiler using MFC Windows library for the Windows user’s interface. • To run the demo, decompress the cpppc.zip file in a temp directory, then double click on producer.exe. Click on the button to start the demo then watch and wait until it finishes. It should run OK. Please let me know otherwise.

  3. Components view • A physical design was chosen based on the component view • This design implies classes are generated in three bodies .cpp files and headers placed in three .h files.

  4. Logical view Producer and Consumer class contain a threaded updateX() States machine operation

  5. Producer classStates/Transitions diagram

  6. Consumer classStates/Transitions diagram

  7. Code generated • A directory including 3 bodies files (.cpp) with corresponding headers files (.h) have been generated according to component view • A log file containing generation steps with various details, errors and warnings has also been produced.

  8. Code generated files structure • ProducerConsumer directory was created including : • MicrosoftCppMFCClassLibComponent.cpp was created • MicrosoftCppMFCClassLibComponent.h • ProducerConsumer.cpp was created • ProducerConsumer.h was created • ProviderConsumer.cpp was created • ProducerConsumer.log steps generation log file was created Attached to this presentation and compressed in the cpppc.zip file are the C++ source files, the project log file (ASCII), the executable “Producer.exe” and Microsoft DLLs to run the embedded Windows interface.

  9. Conclusion • The running code faithfully represents assumptions made in UML diagrams with respect to requirements. • The code generated was compiled successfully with Microsoft Visual Studio C++ compiler : NO ERROR and runs fine on Windows XP or 2K systems. • Producer thread code can access Consumer’s data and Consumer thread code can access Producer’s data. • No difficulty what so ever during code generation which takes less than a second.

  10. Thank you Please fell free to call for more information http://www.case-france.com Jean-claude.jacquiot@case-france.com lstucki@future-tech.com

More Related