Essential Rhapsody in C++

Slides:



Advertisements
Similar presentations
Holdings Management Overview
Advertisements

AIMSweb Benchmark Online Training For AIMSweb Teacher Users
AIMSweb Progress Monitor Online User Training
The Rhapsody in C++ Tool Training "Essential" © I-Logix v2.3 25/9/2000 Bas-1 Essential Rhapsody in C++ Section 2 Basic Level.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Rhapsody in C++ Tool Training "Essential" © I-Logix v3.0 1/29/2001 Adv-1 Section 4 Advanced Level Concurrency.
Advanced Object-Oriented Programming Features
Rhapsody in C++ Tool Training "Essential" © I-Logix v3.0 1/29/2001 Int-1 Section 3 Intermediate Inherited Sensor.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
© I-Logix Rhapsody C++ V /01/2004 E1-1 Exercise 3 : Dishwasher.
The Rhapsody in C++ Tool Training "Essential" © I-Logix v2.3 25/9/2000 Int-1 Essential Rhapsody in C++ Section 3 Intermediate Level.
Rhapsody in C++ Tool Training "Essential" © I-Logix v3.0 1/29/2001 Adv-1 Section 4 Advanced Level Multiplicity.
Creating an HTML page Skills: edit and debug HTML pages IT concepts: text editor This work is licensed under a Creative Commons Attribution-Noncommercial-
Create a New Application and Project Open the Create Application dialog. Enter the application name of your choice and the directory. Select No Template.
Collaborating with Outlook 2002 and Exchange 2000.
Cummins® Inc. Update Manager 3.0 Training Electronic Service Tools.
Cummins® Inc. Update Manager 3.1 Training Electronic Service Tools.
Windows Tutorial 9 Maintaining Hardware and Software
Automating Tasks with Macros. Macro Essentials  A macro is a list of actions that happen when you run the macro.  Creating a Macro: − Choose Create.
How to annotate an X-ray in the client file PURPOSE - To mark up x-rays or other images after they are loaded to the client file PREREQUISITES - Basic.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Excel Connector for JIRA Installation and functional presentation.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Introduction to VB.NET Tonga Institute of Higher Education.
Copyright 2007, Information Builders. Slide 1 Maintain & JavaScript: Two Great Tools that Work Great Together Mark Derwin and Mark Rawls Information Builders.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
COMPREHENSIVE Windows Tutorial 9 Maintaining Hardware and Software.
IT 211 Project Integration and Deployment Lab #11.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Copyright 2007, Information Builders. Slide 1 WebFOCUS Maintain – Enhancing Objects with JavaScript Mark Derwin Information Builders Information Builders.
Computer Science I How to Configure Visual Studio.NET 2003 for C++ Colin Goble.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Screen ViewModule Title: Notes: Branching Instructions: Audio Script: Page: Messaging Configure the Address Book 1 Configure the Personal Address Book.
Project Deployment IT [211 CAP] How to convert your project to a full application.
1 NORMA Lab. 5 Duplicating Object Type and Predicate Shapes Finding Displayed Shapes Using the Diagram Spy Using Multiple Windows Using the Context Window.
Hello World in the Forte IDE An introduction to the Forte IDE (integrated development environment) writing the classic “Hello World” program in Java.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Binding Basics.
Technical Division – February From within I-DEAS drafting, switch to the Tools icon panel and select the STD NOTE GRPS icon. Select the note group.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
1 Chapter Nine Using GUI Objects and the Visual Studio IDE.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Guide to MCSE , Enhanced1 Activity 1-1: Determining the Windows Server 2003 Edition Installed on a Server Objective is to determine the edition of.
January 2006Colby College ITS Setting Up Course Pages.
FIRST COURSE Word Tutorial 6 Using Mail Merge. Objectives Learn about the mail merge process Use the Mail Merge task pane Select a main document Create.
License Activation How to activate a license using the Intermec License Center.
Dreamweaver MX. 2 Tools for Code Editing (p. 366) n An HTML editor like Dreamweaver writes most of the code you need, but at times you will need to perform.
P rinceton I ntralink D ata A ccess Available Through You can now view files in Intralink using FROTOOLS Revision 0 May 16, 2005.
Microsoft Project – Tutorial 4 Material Costs so far we have entered work resources into our project open LAN-4-3-YourInitials (or the one I have put in.
Creating Drawings in CAD. Creating A Drawing Drawings communicate ideas Standards define drawing properties Inventor process –Create a part –Create a.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
© I-Logix Rhapsody C++ V /01/2004E1-1 “Essential” Tool Training Basic Rhapsody Basic Rhapsody Rhapsody in C++ V /01/04.
Installing Microsoft C++ Microsoft Visual Studio 6.0.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Steps for Symantec PGP Standalone install with Please use the following steps and screenshots to step your way through a standalone install of PGP.
1 Introduction to Object Oriented Programming Chapter 10.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…
How to Add a Printer & Printer Retention Training.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
POS 408 RANK Imagine Your Future /pos408rank.com
Creating Drawings in CAD
1. Open Visual Studio 2008.
NORMA Lab. 5 Duplicating Object Type and Predicate Shapes
Windows Tutorial 9 Maintaining Hardware and Software
Online Course Selection
Awareness Training… V 1.1.
Course Competencies Tab (cont’d)
Essential Rhapsody in C++
3.3 – Invoke Workflow File Exercise 3.2: Extract as Workflow
Presentation transcript:

Essential Rhapsody in C++ Part One Basic Rhapsody Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Part One: Basic Rhapsody Setting up Rhapsody in C++ Example : Hello world Example : Count down Properties Example : Dishwasher Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Setting Up Rhapsody Install Visual C++ 6.0 (or alternatively Visual Studio .NET or Borland bcc55) Install Rhapsody in C++ V4.1 Install license (License.dat) Create a work directory ex: “C:\Work” Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Before We Start Rhapsody uses C++ which is CASE sensitive. Most of the errors that occur during the training are generally due to entering text incorrectly. During this training, all classes will start with an upper case ex: “Training”. Often during the training course, students take differing lengths of time for completing the exercises. For those students who finish early, there is often an “Extended Exercise”. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

C++ Refresher The following concepts (possibly unfamiliar to C users) will be used during the training: Constructor Constructor initializer Operator overloading Destructor New & Delete Inheritance Virtual operations Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Basic Rhapsody Hello World Part One : Example 1 Basic Rhapsody Hello World Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Creating a Project Start up Rhapsody in C++ (development edition) Within Rhapsody, use the icon or file->new to create a new project called Hello in directory c:\work Click Yes to create project. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

The Browser The browser showing everything in the model is automatically started on opening a project. An Object Model Diagram has also been created and displayed. Browser Object Model Diagram Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Drawing a Class In this Object Model Diagram, use the class icon to draw a class named Display. There are two ways of deleting a class. It can be deleted from just the view “Remove from View” or deleted from the entire model “Delete from Model”. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Adding a constructor Expand the browser to see the class that we have just added. Right-click on this class and “Add New ►Constructor” We don’t need any arguments for our constructor so just click OK. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

The Features Window Right-click on the constructor and display the Features. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Adding some code Select the Implementation tab and enter the following: std::cout << "Hello World" << std::endl; Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Renaming a Component In order to generate code, we must first create a component. Expand the Components in the browser and rename the existing component called DefaultComponent to Test Note that this component will generate an executable. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

The Test Component Now expand the Configurations and rename the DefaultConfig to Release Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Initial Instance Select the Initialization tab, expand the Default package and select the Display class. This will now create an initial instance of the Display class We will explain the difference between Explicit and Derived later. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Settings We need to select an environment so that Rhapsody knows how to create an appropriate make file. Since we have Microsoft Visual C++ as our compiler, we’ll use the default setting which is Microsoft. We’ll explain later the other settings such as instrumentation Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Renaming our OMD Expand the Object Model Diagrams in the browser and use the features dialog to rename the diagram from Model1 to Overview. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Generating Code We’re now ready to generate code. First close the Features window (click OK) Save the model then Generate/Make/Run Answer Yes to the question: Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Hello World You should see the following: Stop the executable by either closing the console window or by using the command If during compilation, there is a problem, then simply double-click on the error to go directly to the diagram or the part of the browser where the error occurred. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

The generated files The generated files will be in the directory C:\Work\Hello\Test\Release Display class main make file executable Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Editing the Code We can edit the generated files from within Rhapsody. Select the class Display in the browser, right-click and select Edit Class Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Modifying the Code We can modify the generated code In the Display.cpp file change: std::cout << “Hello World” << std::endl; to: std::cout << “Constructed” << std::endl; Transfer the focus to another window to roundtrip the modifications back into the model. Note that the model has been automatically updated. In general the roundtripping works pretty well, but beware not everything can be roundtripped! Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Why doesn’t the constructor show up on the OMD? It doesn’t show up simply because we added it from the browser To display it on our diagram we can select the class on the Overview OMD, right-click and select Display Options … Select to display All or explicitly select the operation and it will appear. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Displaying the Main and Make The Main and Make files can be displayed from within Rhapsody by simply right-clicking on the configuration and selecting edit : Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Project Files Generated files for the Test component AutoSave The model Visual Basic Macros ReverseEngineering Log (appeared when we roundtripped) Event History List (Will be used later when we animate) Rhapsody Work Space Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Basic Rhapsody Count Down Part One : Example 2 Basic Rhapsody Count Down Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

Copying a Project Select File -> Save As Press to select the Work folder Press to create a new folder Rename “new folder” to “CountDown” Select the new folder “CountDown” Save the project as CountDown.rpy The new CountDown project is opened in Rhapsody with the previous project workspace preserved Each time there is an auto-save, Rhapsody will only save just what has changed since the last auto-save. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003

תשמור את תקיה של countdown עד אז! שמירה ברשת: המשך בתרגיל 3 תשמור את תקיה של countdown עד אז! שמירה ברשת: תעתיק את התקיה הראשית של הפרויקט החדש לרשת. תפתח הפרויקט ברשת לוודא שהקבצים לא השתבשו. ליתר ביטחון תשמור את הפרויקט במדיה נשלפת כמו disk on key. אם אין לך disk on key, ליתר ביטחון תעשה את הפרויקט החדש קובץ zip וכדומה ותעתיר אותו לרשת בשום פנים ואופן אל תעבוד בפרויקט ברשת. תעתיק אותו לדיסק המקומי, ורק בסוף תשמור אותו ברשת. Rhapsody in C++ Tool Training "Essential" © I-Logix 1999-2003 v4.1 01/01/2003