Die Suche ergab 156 Treffer

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

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 ...
von UdoWeber
15. Jul 2018 12:11
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 640

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) ...
von UdoWeber
15. Jul 2018 00:20
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 640

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...
von UdoWeber
14. Jul 2018 19:22
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 640

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...
von UdoWeber
14. Jul 2018 18:15
Forum: Software Engineering - Design and Construction
Thema: Linearization Steps - Query Related to Exam Solution Method
Antworten: 15
Zugriffe: 640

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...
von UdoWeber
12. Jun 2018 16:53
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 247

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 }
von UdoWeber
11. Jun 2018 16:03
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 247

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) { /...
von UdoWeber
11. Jun 2018 15:09
Forum: Software Engineering - Design and Construction
Thema: EX06 - Scenario2
Antworten: 4
Zugriffe: 247

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 {...}
von UdoWeber
31. Mai 2018 20:48
Forum: Software Engineering - Design and Construction
Thema: EX04 - Demo
Antworten: 1
Zugriffe: 107

EX04 - Demo

Hi,

some small error? Should it be

Code: Alles auswählen

Var y = new Var("y"); 
instead?

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

Original

Code: Alles auswählen

 
// Some Setup
Var x = new Var("x");
Var y = new Var("x"); 
von UdoWeber
31. Mai 2018 20:34
Forum: Software Engineering - Design and Construction
Thema: Update slides
Antworten: 5
Zugriffe: 255

Re: Update slides

Me too!
von UdoWeber
2. Mai 2018 10:57
Forum: Software Engineering - Design and Construction
Thema: Exercise 00 not graded
Antworten: 1
Zugriffe: 154

Exercise 00 not graded

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
von UdoWeber
26. Apr 2018 16:27
Forum: Software Engineering - Design and Construction
Thema: EX00 - Supplier
Antworten: 4
Zugriffe: 313

Re: EX00 - Supplier

Maybe some official answer? ;-)
von UdoWeber
24. Apr 2018 17:55
Forum: Software Engineering - Design and Construction
Thema: EX00 - Logger
Antworten: 8
Zugriffe: 452

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...
von UdoWeber
24. Apr 2018 17:53
Forum: Software Engineering - Design and Construction
Thema: EX00 - Supplier
Antworten: 4
Zugriffe: 313

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

Zur erweiterten Suche