Presentation is loading. Please wait.

Presentation is loading. Please wait.

15.1.2003Software Engineering 2003 Jyrki Nummenmaa 1 MORE UML DIAGRAM TYPES We have seen a number of UML diagram types while studying our example. These.

Similar presentations


Presentation on theme: "15.1.2003Software Engineering 2003 Jyrki Nummenmaa 1 MORE UML DIAGRAM TYPES We have seen a number of UML diagram types while studying our example. These."— Presentation transcript:

1 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 1 MORE UML DIAGRAM TYPES We have seen a number of UML diagram types while studying our example. These slides show examples of a number of diagrams types not seen in our previous slides. Again, for full notation and syntax, refer to http://www.uml.org http://www.uml.org

2 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 2 car1: Sedan registration_no = XYZ-999 : Garage car2 : Sedan registration_no = ABC-123 Object diagram car2 is an instance of class Truck This is really like a class diagram, but has objects instead of classes.

3 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 3 Constraints Person wife husband 0..1 sex {(self.husband->size=1 implies self.husband.sex = male) and (self.wife->size=1 implies self.wife.sex = female) and not(self.wife->size=1 and self.husband->size=1)} {xor} Ministry Company manage own 0..1 * 1 1 OCL-language

4 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 4 car: Sedan garage: Garage : GarageControl 1: returnCar 1.2: store(car) 1.1: return() GUI Collaboration Diagram Shows the calls between classes, but not their order (which is shown in sequence diagrams).

5 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 5 State Diagram A state diagram represents how objects (instances of a class) react to external events (message). –Typically used to specify the behaviour of so- called active objects. –Is composed of states (combination of attribute values at some point of time) and transitions between them. –May include an initial state and a final state.

6 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 6 Available InService Booked InUse return/ Stop counting time book take/ Start counting time service exit/ ready State Diagram Initial state

7 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 7 Activity diagram An activity diagram represents how an activity is performed –Formally, this is a special case of a state diagram –Typically a higher-level activity with several actors. –The diagram can be partitioned into columns, which show the actors

8 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 8 Query Book Make a bill Pay Prepare car Register rental Client Official Take car :Bill [open] :Bill [paid] Activity Diagram Fork threads Join threads Initial state Final state

9 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 9 Objects Support Object Garage Sedan Storage registrationNo service(int km) return() ObjectManagement use * returnObject(Object,Storage) bookObject(Object) takeObject(Object) return() book() take() Controller 1 1 1 Packages

10 15.1.2003Software Engineering 2003 Jyrki Nummenmaa 10 Support Database Packages in closed form


Download ppt "15.1.2003Software Engineering 2003 Jyrki Nummenmaa 1 MORE UML DIAGRAM TYPES We have seen a number of UML diagram types while studying our example. These."

Similar presentations


Ads by Google