IBM Rational Rose Reading Notes (5)

Source: Internet
Author: User

Chapter 4 Deployment ViewThis view considers the physical deployment of applications. Displays all nodes on the network, connections between nodes, and processes running on each node. Composition of deployment Block Diagram ProcessorA processor is a machine with processing functions. You can set the edition (by processor), features (speed, memory, etc.), and scheduling methods. The scheduling method records the process scheduling methods used by the processor, including 1. preemptive2. Noe-Preemptive3. cyclic4. executive5. Manual

A process runs on a processor but executes it in a thread.

Device

Machines or hardware that do not have processing capabilities.

ConnectionThe actual connection between processors and devices. Generally, a connection is a physical network connection between network nodes. Chapter 2 Introduction to generating code and Reverse Transfer Engineering code using Rational Rose Forward Engineering steps Check Model

Check the consistency of the model. Common Errors include non- ing between messages and operations in the sequence diagram or collaboration diagram, and non- ing between objects and classes.

Create component

Before generating code, you must map the class to the source code file. Therefore, you must first create a component.

Map classes to components

 

Set code generation attributes

Controls how code is generated. For more information, see the description of ansi c ++ and Visual C ++ in the next chapter.

Select classes, components, and packages

A class, component, or package can be generated at a time when code is generated.

Generate codeThe elements generated by the Code are as follows: 1. Class 2. Attribute 3. Operation signature 4. Relationship 5. Component

6. Documentation.

Reverse Engineering

Reverse engineering uses the information in the source code to create or update the rose model. Rose reads components, packages, classes, relationships, attributes, and operations from the code.

Method for performing forward and reverse engineering by Rose1. Methods for checking model consistency: Tools-> check model. 2. How to find access problems: Report-> show access violations. 3. Navigate to tools> options and select the specific language tab. Select the set element in type. 4. Before setting the code generation attribute, you are advised to back up your own data. Modify your own backup. Chapter 2 C ++ and Visual C ++ code generation and Reverse Transfer Engineering Code C ++ code generation steps Ansi c ++ code generation procedure

 

1. create component 2. assign class to component 3. select Code Generation attributes 4. select the class or component to be generated in the component diagram. 5. select Tools> ansi c ++> generate code to generate Code 6. select Tools> ansi c ++> browse header or browse body to browse the generated code.Steps for generating code in Visual C ++1. Start the wizard. Tools-> visual c ++-> Update code2. rose displays the select components and classes windows. Before using Visual C ++ to generate code, you must assign the class to the component. 3. If the class is not assigned to the component, select Ctrl + R to create it. 4. Change the code generation attributes of components and classes.Ansi c ++ code generation attributesMethod: Tools> Options> ansi c ++ tab. Select the attribute to be modified in type.Class attributesClass attributes apply to the ansi c ++ code generation attributes of the class, these attributes can change the class name, determine whether to generate the class constructor and reverse transfer the engineering code, and set other class-specific attributes of the class. In addition to setting all class attributes using the preceding method, you can also select

In addition to the above attributes, you can also set the default member functions of each class and whether to generate get/set operations on the attributes. Select one or more classes, and right-click ansi c ++> class mizmization.

Attribute attributes

You can set all attributes in the preceding method. To set the attributes of a specific attribute, set them in the ansi c ++ label in the attribute standardization window.

Operation attribute

You can set the attributes of all operations in the preceding method. To set the attributes of a specific operation, set them in the ansi c ++ label in the Operation specification window.

Package attributes

You can set the name Control name and whether the specified package has a namespace.

You can set the attributes of all packages in the preceding method. To set the attributes of a specific package, set them in the ansi c ++ label in the package specification window.

Component PropertiesComponent attributes are. cpp and. h file attributes related to the engineering code generated by rose and reversed transfer.

You can set attributes of all components in the preceding method. To set attributes of a specific component, set them in the ansi c ++ label in the component specification window. You can also set attributes of a specific component by right-clicking the component, ansi c ++-> open ansic ++ specification.

Role attributes

 

General AttributesVisual c ++ code generation attributesIn addition to the ansi c ++ method, VC can also use moel assistant to conveniently set and generate attributes.VC Reverse EngineeringTools-> visual c ++-> Update model from code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.