SDA SE WikiSoftware Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
| 3 points |
|---|
Consider the Queue interface in the java.util package. Write pre- and postconditions in OCL for the following operations:
| 3 points |
|---|
Have a look at this diagram:
Strengthen the given domain model by formulating OCL constraints which specify the following:
| 3 points |
|---|
The diagram below illustrates a house automation system controlling blinds. Blinds automatically turned down between 20 and 8 o'clock. In case it is dark outside the blinds are turned down, too. This is achieved by calling updateBlinds(..) every hour. The current hour (0-23) is passed as an argument to the method.
Strengthen the given domain model by formulating OCL constraints for the HouseAutomation.updateBlinds(..) method:
| 3 points |
|---|
S s = new T(); B input = new B(); B output = s.m(input); | 3 points |
|---|