Die Suche ergab 87 Treffer

von pmueller
6. Jun 2018 09:40
Forum: Software Engineering - Design and Construction
Thema: Ex05, questions
Antworten: 5
Zugriffe: 383

Re: Ex05, questions

Hi, yes you can fill the main method however you want, e.g. use standard collections. It should still compile with the given build.sbt, i.e. do not introduce additional dependencies. If your submitted solution does not compile - even it is because of this main method - you will receive no points at ...
von pmueller
5. Jun 2018 10:04
Forum: Software Engineering - Design and Construction
Thema: Ex05, questions
Antworten: 5
Zugriffe: 383

Re: Ex05, questions

Hi, But regarding the implementation: -> It is mentioned that "val set: SedcSet[A] = new SedcSet[ B]()" should work, but as SedcSet is a trait, it cannot be instantiated. I used a concrete class for this instead - is this okay? Or am I just confused? sorry, the new SedcSet[ B]() should be the apply ...
von pmueller
4. Jun 2018 10:50
Forum: Software Engineering - Design and Construction
Thema: Ex05, questions
Antworten: 5
Zugriffe: 383

Re: Ex05, questions

Hi, Q1: Recommendations are not part of the contract. Q2: Where do you think that there is no Type Parameter necessary? IIRC the only place where you could argue that these are not strictly necessary, is the foreach method. Q3: Correctly means that they should follow the usual rules, i.e. if two set...
von pmueller
1. Jun 2018 11:39
Forum: Software Engineering - Design and Construction
Thema: Intellij Annotations not allowed here!
Antworten: 4
Zugriffe: 1814

Re: Intellij Annotations not allowed here!

Hi, which imported files? You do not have to import classes that reside in the same package. You only need to import the Annotations, as they are in a different Package. Are you sure that you did not remove the package statement? In Java both the the statement and the folder structure have to be cor...
von pmueller
31. Mai 2018 20:57
Forum: Software Engineering - Design and Construction
Thema: EX04 - Demo
Antworten: 1
Zugriffe: 131

Re: EX04 - Demo

Hi,

if you want you can replace the x with a y.

Best,
Patrick
von pmueller
31. Mai 2018 19:27
Forum: Software Engineering - Design and Construction
Thema: Intellij Annotations not allowed here!
Antworten: 4
Zugriffe: 1814

Re: Intellij Annotations not allowed here!

Hi,

you write the annotations before the package statement e.g.:

Code: Alles auswählen

@ThisIsAnAnnotation
package ex04.lib;

import ThisIsAnAnnotation
Best,
Patrick
von pmueller
29. Mai 2018 16:18
Forum: Software Engineering - Design and Construction
Thema: Ex04 - DIP
Antworten: 3
Zugriffe: 228

Re: Ex04 - DIP

Hi, yes you have to assess every field/method, but as you quoted, you only have to annotate those which cause their defining class to violate the Dependency-Inversion Principle. This means you do not have to (but may) annotate all fields/methods, assuming there are any that do not cause DIP violatio...
von pmueller
29. Mai 2018 10:55
Forum: Software Engineering - Design and Construction
Thema: OCP VS SRP
Antworten: 1
Zugriffe: 664

Re: OCP VS SRP

Hi, it has to "know" the data of the concrete shape, e.g. the radius and the center of a Circle, and it has to "do" the drawing. These are two different Responsibilities, but as you can see in the notes, this does not constitute a SRP Violation necessarily, since the drawing code and the correspondi...
von pmueller
25. Mai 2018 14:39
Forum: Software Engineering - Design and Construction
Thema: Ex02 Correction
Antworten: 7
Zugriffe: 440

Re: Ex02 Correction

Hi,

it was on the exercise sheet only implicitly. Therefore I've updated the tests to allow both ways.
As always, it might take some time until the gradings are updated (maybe until next week).

Best,
Patrick
von pmueller
25. Mai 2018 13:20
Forum: Software Engineering - Design and Construction
Thema: Ex02 Correction
Antworten: 7
Zugriffe: 440

Re: Ex02 Correction

Hi,

you did not store the cursor correctly, i.e. as (x,y).

Best,
Patrick
von pmueller
25. Mai 2018 09:46
Forum: Software Engineering - Design and Construction
Thema: Exercise 03 - Addition private field in Clock class
Antworten: 1
Zugriffe: 139

Re: Exercise 03 - Addition private field in Clock class

Hi,

You can add fields, but do not remove already present fields.

Best,
Patrick
von pmueller
23. Mai 2018 16:20
Forum: Software Engineering - Design and Construction
Thema: Ex03 First tick
Antworten: 4
Zugriffe: 249

Re: Ex03 First tick

Hi,

the time value at the first tick will be the date after the date with which the clock is initialized, i.e. 2000-01-02 if the clock is intialized with 2000-01-01.

Best,
Patrick
von pmueller
23. Mai 2018 13:22
Forum: Software Engineering - Design and Construction
Thema: Ex02 Correction
Antworten: 7
Zugriffe: 440

Re: Ex02 Correction

Hi,

I've identified and fixed a small bug that prevented that these more detailed messages are appended after the grading process.
I've restarted the grading process so that more detailed messages should appear sometime this afternoon.

Best,
Patrick
von pmueller
23. Mai 2018 10:39
Forum: Software Engineering - Design and Construction
Thema: Ex02-Example Solution
Antworten: 2
Zugriffe: 168

Re: Ex02-Example Solution

Hi,

I've uploaded the solution to the submission platform.

Best,
Patrick
von pmueller
22. Mai 2018 09:44
Forum: Software Engineering - Design and Construction
Thema: RP(II) - Slide 12, confusion
Antworten: 1
Zugriffe: 515

Re: RP(II) - Slide 12, confusion

Hi,

you can see an example of this on the first slide that you provided:

Code: Alles auswählen

tempSensor.register(this);
smokeSensor.register(this);
In this snippet, an Observer (this) registers itself on 2 different sensors.

Best,
Patrick

Zur erweiterten Suche