nanaxcastle.blogg.se

How to do reverse engineering in rational rose
How to do reverse engineering in rational rose








  1. #How to do reverse engineering in rational rose software#
  2. #How to do reverse engineering in rational rose code#

#How to do reverse engineering in rational rose code#

Now all I need to do is press the code generation button (while I am using Describe, other tools like Rational Rose and Together also have buttons to generate code). Ogre has been fleshed out with the public member function huntForFood(). MonsterNPC has two public attributes, mName of type string and mHunger of type bool (although I am sure you would not make your attributes public). Here, let me walk you through a sample with our friend the Ogre:Ī basic class diagram for Ogre, an NPC derived fromįirst we create a basic class diagram with our Ogre derived from the base class MonsterNPC.

#How to do reverse engineering in rational rose software#

Common sense would tell you that adding the member function huntForFood() on your Ogre class will not cause any software in the world to be able to figure out what you meant by huntForFood and flesh out the code for you (explanation follows).1 Rather, it will just create the template of code for you. In the forward engineering direction, these tools generate skeleton code in a number of different programming languages (e.g., C++, Java, SmallTalk, C#, VB, Eiffel) with C++ and Java being the two most commonly supported languages. What these tools do is act like the parser in your compiler to explore the interface and composition of your classes and draw the corresponding UML diagrams with the correct syntax. One list of these products is maintained at Objects By Design.Īt first thought it may seem like magic that a computer could read a diagram. There are at least 75 UML modeling tools (most of them perform forward engineering and a smaller set perform reverse engineering) for sale as of this writing (summer 2002). The coolest aspect (not necessarily the most beneficial) of UML in my opinion is the ability to have software applications such as Rational Rose, Together, or even Visio create code from your diagrams (forward engineering) and/or create diagrams from your code (reverse engineering).










How to do reverse engineering in rational rose