Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools

Assignment 2: Classes and States in UML

Due at Thursday, April 29th, 23:59
If you face technical difficulties or have problems understanding the assignment, ask us for help!

You can mail to one of the tutors, Loredana or Henri

You find information about the recommended working environment and about how to access your group repository on the general assignments page.
How to draw an Object Diagram? Create a Class Diagram with astah. In the middle of the tool bar you find the “InstanceSpecification” and directly next to it the “Link”. This are the ingredients of an Object Diagram. For an instance of an Association Class it is ok to place it just next to the corresponding link, as it seems to be impossible to connect it with the link. (Other solutions are welcome, but be ready to explain how it should be. If you don't use astah, but provide a PDF or PNG, this is OK this time as well.)

Task 5: Class Diagrams

4 points
Countries and Capitals
Persons as Employees and Family Members

Give us for for each of the two class diagrams above:

  • An object diagram that is compatible with the class diagram. The object diagrams should contain at least four objects each.
  • A variation of your object diagram that does violate the class diagram.

Task 6: Association Classes

4 points
Two ways to model employment
Two ways to model appointments

Give us for each of the four class diagrams above object diagrams that are compatible with the class diagram. For the fourth class diagram we want to see an object diagram that is not compatible with the third class diagram.

Task 7: Matching class and object diagrams

4 points

Have a look at the following class diagrams (on the left) and object diagrams (on the top). Give us for each class diagram the object diagrams which could be an instance it. (For example you could prepare a list.)

1 2 3 4

Again have a look at the following class diagrams (on the top) and object diagrams (on the left). Give us for each object diagram the class diagrams it could be an instance of.

1 2 3 4

Task 8: State Charts

5 points

a) SVN Commit

Your task is to analyze the SVN commit procedure with a state chart. The normal steps without conflicting changes are:

  • update
  • enter commit statement
  • commit

In case there are conflicting changes the conflicts must be merged after updating the files. There are three different options to merge a file

  • reverting to the SVN version
  • commiting the own version
  • manually merging the two versions

See also resolve subversion conflicts

Create a state chart diagram with Astah UML for these use cases.

b) Consulting the SVN help

Lets assume that a user will not keep these steps in mind all the time. So in any of these steps the user might look up the svn help pages and return to the last step (state). Modify your state chart to support this, too.

teaching/lectures/oosc/2010/assignment_2.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024