## Die Suche ergab 156 Treffer

15. Jul 2018 12:11
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 694

### Re: Linearization Steps - Query Related to Exam Solution Method

Lin(C) = {C, Lin(A) >> Lin(B)} != Lin(C) = {C, Lin(A) >> Lin(B) >> Lin(AnyRef)} The second line is probably not what you want, since AnyRef is usually not mixed-in like other classes. Because class C would have to look like this: class C extends AnyRef with B with A However, since it does not look ...
15. Jul 2018 12:11
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 694

### Re: Linearization Steps - Query Related to Exam Solution Method

The intermediate steps are NOT the same! But you already showed that they are the same.. Lin(C) = {C, Lin(A) >> Lin(B)} = {C, A, B, AnyRef, Any} = {C, Lin(A) >> Lin(B) >> Lin(AnyRef)} = Lin(C) So you can add Lin(AnyRef) or leave it out, it really makes no difference. Even {C, Lin(AnyRef) >> Lin(A) ...
15. Jul 2018 00:20
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 694

### Re: Linearization Steps - Query Related to Exam Solution Method

which will be added either way by one of the other linearizations. So it makes no difference if you include it at that point or not, therefore you can leave it out. As I already said, not for the end result, but for the intermediate steps that are relevant for the exam, that was the intention of th...
14. Jul 2018 19:22
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 694

### Re: Linearization Steps - Query Related to Exam Solution Method

Thank you both for your reply. But I think you did not get my question, which linearization has really AnyRef in it? Lin(A) = {A, Lin(AnyRef)} Lin(B) = {B, Lin(AnyRef)} Lin(C) = {C, Lin(A) >> Lin(B)} <----- this step So in the last case no " >> Lin(AnyRef) " because it comes in a later step from A r...
14. Jul 2018 18:15
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 694

### Re: Linearization Steps - Query Related to Exam Solution Method

class Any class AnyRef extends Any trait A extends AnyRef class B extends AnyRef trait C extends B with A trait D extends B trait E extends D with A with C class F extends D with E Hi, I think I didn't get it, maybe someone can help. I understand the result "{F, E, C, A, D, B, AnyRef, Any}" but for...
12. Jun 2018 16:53
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 268

### Re: EX06 - Scenario2

As far as I understand it, you just need to add the method. public static XXX violatingValue() { return XXX; } And the annotation @ViolatingValueFactory You should not implement the push method, just think about what happens if you do so. public void push(Stack<V> s) { // TODO Implement }
11. Jun 2018 16:03
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 268

### Re: EX06 - Scenario2

So I didn't get the task at all :( What I understand, we have some code like: Stack<Integer> stack = new Stack<Integer>(); stack.push(new Integer(5)); that worked with the allready given push method. Then the developer adds a method push to the class Stack like this: public void push(Stack<V> s) { /...
11. Jun 2018 15:09
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 268

### EX06 - Scenario2

I think @ViolatingValueFactory and the static method must be above/in class Stack not class Map[...}, right?

Code: Alles auswählen

public static XXX violatingValue() { return XXX; }
@ViolatingValueFactory(name="violatingValue") // has to annotate (it at all) "push"
public void push(V v) { ... }
class Map {...}
31. Mai 2018 20:48
Forum: Software Engineering - Design and Construction
Thema: EX04 - Demo
Antworten: 1
Zugriffe: 113

### EX04 - Demo

Hi,

some small error? Should it be

Code: Alles auswählen

Var y = new Var("y"); 

But
As part of this exercise, you are not allowed to change this code.

Original

Code: Alles auswählen


// Some Setup
Var x = new Var("x");
Var y = new Var("x");

31. Mai 2018 20:34
Forum: Software Engineering - Design and Construction
Thema: Update slides
Antworten: 5
Zugriffe: 261

### Re: Update slides

Me too!
2. Mai 2018 10:57
Forum: Software Engineering - Design and Construction
Antworten: 1
Zugriffe: 162

Hi,

my exercise 00 ist not graded until now, because it´s done automatically it should be done already?
I'm wondering is everything is fine with my submission
Good to know before next exercise.

Greetings Udo
2. Mai 2018 10:51
Forum: Software Engineering - Design and Construction
Thema: No Exercise on Friday, May 4th
Antworten: 4
Zugriffe: 266

### Re: No Exercise on Friday, May 5th

Friday is May 4th
26. Apr 2018 16:27
Forum: Software Engineering - Design and Construction
Thema: EX00 - Supplier
Antworten: 4
Zugriffe: 333

### Re: EX00 - Supplier

24. Apr 2018 17:55
Forum: Software Engineering - Design and Construction
Thema: EX00 - Logger
Antworten: 8
Zugriffe: 487

### Re: EX00 - Logger

How do I get the class which implements the interface? (naturally in this case this.getClass() does not work) Use static method instead of using this.getClass Ok, but then you have a fixed class, but you normally want the class that implements the interface and this class can change. I wrote an ini...
24. Apr 2018 17:53
Forum: Software Engineering - Design and Construction
Thema: EX00 - Supplier
Antworten: 4
Zugriffe: 333

### Re: EX00 - Supplier

Ok, but in result my debug method for example has the signature:

ILogger.debug(Supplier<String> msg)

And not just debug(String msg), is this ok? I see no other way to do it.

Greets Udo