Die Suche ergab 87 Treffer

von pmueller
2. Jul 2018 11:05
Forum: Software Engineering - Design and Construction
Thema: Exercise 08
Antworten: 4
Zugriffe: 398

Re: Exercise 08

Hi, 1. Task 1, Task 2: Should we annotate each single method with @Operation in the code that appears in Composite, Leaf or Component and that is declared by Component? This is my current understanding of the @Operation annotation. The same question arises for the Decorator pattern. Yes. 2. Task 1: ...
von pmueller
29. Jun 2018 09:19
Forum: Software Engineering - Design and Construction
Thema: Ex08
Antworten: 3
Zugriffe: 312

Re: Ex08

Hi,

I've updated the template.
Alternatively you can remove the last two dependencies in build.sbt.

Best,
Patrick
von pmueller
28. Jun 2018 15:31
Forum: Software Engineering - Design and Construction
Thema: Strategy VS Decorator, Elaboration required
Antworten: 1
Zugriffe: 195

Re: Strategy VS Decorator, Elaboration required

Hi, you can see an example for this in slide 7 of the Strategy lecture, The layout manager is a field of Container. This obviously leaves a footprint, although the manager can be changed at runtime. The Container uses the interface of the Strategy directly. On the other Hand, if you are using a deco...
von pmueller
22. Jun 2018 09:32
Forum: Software Engineering - Design and Construction
Thema: Ex 07, short questions
Antworten: 9
Zugriffe: 1032

Re: Ex 07, short questions

Hi,

just as a heads up: in this exercise you will most likely produce code that is not accepted by the parses of IDEs(at least IntelliJ), but by the scala compiler.
So maybe you should try compiling your solution with sbt or scalac directly before dismissing it.

Best,
Patrick
von pmueller
21. Jun 2018 16:51
Forum: Software Engineering - Design and Construction
Thema: Ex 07, short questions
Antworten: 9
Zugriffe: 1032

Re: Ex 07, short questions

Hi, Another question regarding task 1.2 with the ComplexUniversity Class. Should the types for Student, CourseOfStudies, Room and Course mix up the methods of both, TComplexUniversity and TSimpleUniversity? So that this code will be possible?: val cUni = new ComplexUniversity val r1 = cUni.Room("Roo...
von pmueller
21. Jun 2018 09:50
Forum: Software Engineering - Design and Construction
Thema: EX05 Grading
Antworten: 1
Zugriffe: 190

Re: EX05 Grading

Hi, I updated the tests, and during the regrading the grades are hidden again (Alternatively, you only would see the message ("Automatic Grading Failed"). I have to manually set them visible, so there is always some delay between finishing the grading and the grades becoming visible. This is similar...
von pmueller
20. Jun 2018 13:49
Forum: Software Engineering - Design and Construction
Thema: Ex 07, short questions
Antworten: 9
Zugriffe: 1032

Re: Ex 07, short questions

Hi,

there should only be one method "courses". I have updated the exercise sheet.
Ben Kohr hat geschrieben:
19. Jun 2018 14:59
I mean the classes contained in SimpleUniversity and those contained in ComplexUniversity.
You may use case classes for these.

Best,
Patrick
von pmueller
19. Jun 2018 09:41
Forum: Software Engineering - Design and Construction
Thema: Ex 07, short questions
Antworten: 9
Zugriffe: 1032

Re: Ex 07, short questions

Hi, - The method declaration in Student should be "matriculationNumber", right? I declared it that way now. Yes. - May we use case classes for SimpleUniversity and ComplexUniversity? The debug Strings produced by the administration tool are more understandable if we do so. Do you mean the classes th...
von pmueller
14. Jun 2018 09:28
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario 3
Antworten: 3
Zugriffe: 313

Re: EX06 - Scenario 3

Hi, What exactly are we supposed to enter for "method". Is it just @MethodDef(name = "addAll")? Or are we supposed to enter the name of the method of Map.class that would cause the problems in case the addAll methods would be added? Since you neither know the implementation of IntMap.addAll nor Map....
von pmueller
13. Jun 2018 19:29
Forum: Software Engineering - Design and Construction
Thema: EX06 - Task 1.1 How many methods?
Antworten: 1
Zugriffe: 188

Re: EX06 - Task 1.1 How many methods?

Hi,

a single example with one method in Map and one Method in the hypothetical subclass(e.g. IntMap) suffices. Think about the similarities and differences between a pair of such methods that could lead to compile time errors.

Best,
Patrick
von pmueller
13. Jun 2018 10:04
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario 3
Antworten: 3
Zugriffe: 313

Re: EX06 - Scenario 3

Hi, you can use Map.class instead of Map<...>. The constraint regarding the primitives only relates to the primitives and their respective Wrapper classes, i.e. you should use int.class instead of Integer.class etc.. You may use any other reference class that you think is correct. In addition you sh...
von pmueller
13. Jun 2018 09:56
Forum: Software Engineering - Design and Construction
Thema: "with" operator in SmartHomeExample
Antworten: 1
Zugriffe: 206

Re: "with" operator in SmartHomeExample

Hi, LightsAndShutters is a subtype of Shutters, too. Please have a look at the second lecture, this is where the linearization comes into play. Maybe this helps, too. Your second defintion that includes Building is equivalent, since the Linearization is the same with {LightsAndShutters, Shutters, Li...
von pmueller
12. Jun 2018 17:28
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 309

Re: EX06 - Scenario2

Hi, You should not implement the push method, just think about what happens if you do so. Correct. EDIT: Also: the annotation ViolatingValueFactory only has a parameter named 'value' and not 'name'. Yes, sorry about that, please use value instead of name. I think @ViolatingValueFactory and the stati...
von pmueller
7. Jun 2018 16:41
Forum: Software Engineering - Design and Construction
Thema: Ex05 - contracts for subclasses
Antworten: 1
Zugriffe: 168

Re: Ex05 - contracts for subclasses

Hi, The exercise description says "If a class violates the LSP because it does not (re)define a method, add an LSP annotation (...)". Does this mean that every subclass must (re)define the methods of the superclass in general? (I cannot remember that this requirement was mentioned in the lecture wit...
von pmueller
7. Jun 2018 13:37
Forum: Software Engineering - Design and Construction
Thema: OCP Compliancy of Expression in Exercise 4
Antworten: 0
Zugriffe: 125

OCP Compliancy of Expression in Exercise 4

Hi all, as we discussed in the last exercise session, the solution that Expression is violating the OCP, and the ExpressionVisitor is compliant is not quite correct. The OCP should always be evaluated with certain changes/extensions in mind. Therefore, with the addition of more Expressions (e.g. Ter...

Zur erweiterten Suche