110 likes | 259 Views
Updating the Model. update. Rose Browser. The Rose Browser provides the capability to textually view and navigate between the components in each of the models A + sign next to an icon indicates that the icon is collapsed A - sign next to an icon indicates that the icon is fully expanded.
E N D
Updating the Model update
Rose Browser • The Rose Browser provides the capability to textually view and navigate between the components in each of the models • A + sign next to an icon indicates that the icon is collapsed • A - sign next to an icon indicates that the icon is fully expanded
The Browser Fully expanded tree Collapsed tree
Looking at the model • The browser shows the whole model, even things not displayed anywhere • diagrams, packages, classes, and nesting • view things in the browser • move things in the browser • select and drag • copy things in the browser • select and CTRL drag • create things in the browser • right mouse button • populate diagrams from the browser • select and drag onto a diagram
Looking Inside a Package • Each package typically has its own main class diagram • This diagram typically shows • lower level packages • OR • classes that implement this package • The package will also contain any number of other class diagrams showing different views of the package • Packages can also contain sequence diagrams, collaboration diagrams, and state diagrams
Additional Class Diagrams • Additional class diagrams are added to the model as needed • They show additional 搗iews?of the packages and classes in the model • Examples: • View of classes participating in a scenario • View of the 損rivate?classes in the package • View of a class and its attributes and operations • View of an inheritance hierarchy
Editing Diagrams • Populate a diagram with existing components by • dragging components from the browser • the Query menu (for classes only) • Or create new components directly on the diagram or in the browser • Use the Tools: Layout Diagram tool to arrange components on the diagram • Use Tools:Autosize All to have components change size to match the strings they contain • Turn page breaks on and off using View: Page Breaks
Editing classes • Add operations and attributes to classes using • the class specification • directly on the diagram • in the browser • Add documentation to classes using • the class specification • in the documentation window • Add all other information through the class specification • abstract • stereotype
Stereotypes • A stereotype represents the classification of a class • Every class may have at most one stereotype • Common stereotypes • Exception class • Metaclass • Parameterized class • Boundary class • Controller class • Entity class • Utility class
Exercise: <skip> Create the Main Class Diagrams for the Packages • People package • Professor class • UniversityArtifacts package • Course and CourseCatalogue classes • Interfaces • ManageCurriculumForm, DropCourseForm, and the CatalogueForm classes
Exercise<skip>: Additional Class Diagrams • Create another class diagram for the UniversityArtifacts package • Diagram name: Catalogue Information • Classes: Course, CourseOffering and CourseCatalogue classes