13.07.2015 Views

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

Bouml reference manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

file:///C:/uml/BOUML/bouml_3.0/doc/TOUT.html90 of 378 07/10/2007 15:55The proposed types for a standard attribute are the non class types defined in the first tab of the generation settings, more all the classesdefined in the project (with their localization to distinguish synonymous classes). You are not limited to the proposed list, and any for(even invalid for the target language(s)) may be given. The button type shows a menu proposing :if the current type of the attribute is a class : to select this class in the browserif the attribute is not read-only and if a class is selected in the browser : to set the type to be this classif the view containing the class containing the attribute is not read-only : to create a new class and to set the attribute type to itNevertheless I stronglyrecommend you to not add type modifier (like *, & etc ...) with a class name in the UML tab because BOUML differentiate a <strong>reference</strong> toa class of the model and any other forms. Supposing you also have the class attribute stops defined (for C++) like this :the C++ generated code will be the desired one, but if you rename the class Stop, the type of the attribute stops will not be updated.Furthermore the C++ code generator will not see the usage of the type Stop and will not automatically generate class declaration and#include form for it.The good way may be :to say that stops is a Stop and modify the attribute definition in C++ to have a vectorto set the stereotype to vector and the multiplicity to *but the right way here is to use a relation with the stereotype vector and the multiplicity * because Stop is a classThe proposed stereotypes are the default ones specified through the Default stereotypes dialog more the current one (empty here). It is

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!