build teams of 5 to 6 students per team.We first need to identify 'objects' and second we must find out how they relate and talk to each other. But before we can start we need to analyze the game. If you recall from class, when inventing UML, the Three Amigos started with something that was called Object Oriented Analysis and Object Oriented Design. (However, I had students who did not know it, so in case you don't please learn about it and play it for a little before continuing with this lab). Actors never turn into objects, actors are always outside the system, hence the Tetris example below is much better. Important Note: the restaurant example actually is not a very good example, because it may give you the impression that actors become objects. Look at the classes generated and compare them with your model. In StarUML you right-click with your mouse in the class diagram, and select 'Generate Code'. Once you are done with the class diagram, try out the 'Generate Code' feature. Take the restaurant example from class and create all the different UML diagrams we created in class using StarUML or your favorite UML modelling tool. To learn how to use objectiF, take a look at their tutorial. Lab 1b: objectiF (30 min) Īnother UML modelling tool, which is free for personal use is objectiF. More details can be found at the following StarUML Tutorial. After that you can create all kinds of UML diagrams by right-clicking on the model. Then in the Model Explorer add a new model by right-clicking on the ’untitled’ thing. Start StarUML, and select ’Empty Project’ at the startup. A small disadvantage is that it is no longer supported, hence it is limited to Java 1.4 and C# 2.0, which is very unfortunate. StarUML is a free UML modelling tool that is quite powerful, it allows for forward and reverse engineering. We need to learn about a UML modelling tool.
0 Comments
Leave a Reply. |