Die Suche ergab 30 Treffer

von Azazel
10. Feb 2018 09:27
Forum: Archiv
Thema: Composite Pattern: Leaf elements
Antworten: 1
Zugriffe: 289

Composite Pattern: Leaf elements

Hi there, during the lecture of exercise 08 there was a discussion whether AbstractConfiguration can be considered a leaf or not, since it is abstract and considered a component as well. I can not find any information that clears this up and therefore would be glad if someone could answer this, than...
von Azazel
10. Feb 2018 08:56
Forum: Archiv
Thema: Solution for old exam
Antworten: 2
Zugriffe: 651

Re: Solution for old exam

Hey LorenzB, feel free to do so! You can create new pads on this website for free: https://www.piratenpad.de/ I prefer to initially fill a new pad with some structure to force the users to use a certain formatting style, e.g. task numbers, subtasks, etc. I also recommend you put in the name and down...
von Azazel
7. Feb 2018 08:37
Forum: Archiv
Thema: Solution for old exam
Antworten: 2
Zugriffe: 651

Solution for old exam

Fellow students, you may be aware that there is an old exam (see http://stg-tud.github.io/sedc/Lecture/ws16-17/exam/old.pdf) provided in the last years course page. As there is no sample solution available, I created an online pad to compare your results with those of other students and discuss poss...
von Azazel
27. Jan 2018 17:41
Forum: Archiv
Thema: Ex10 - Setting the completionDate
Antworten: 1
Zugriffe: 247

Ex10 - Setting the completionDate

Hi, I am currently having trouble setting the completionDate of a SimpleTask. On initialization I override the Task traits value with None. override def completionDate: Option[Instant] = None I would like the markDone-method to change the completionDate to Instant.now but get an error stating I can ...
von Azazel
21. Jan 2018 19:32
Forum: Software Engineering - Design and Construction
Thema: EX09
Antworten: 4
Zugriffe: 643

Re: EX09

It is stated that the circular layout should only consider nodes (which do not seem to have a size as well). If you filter out any edges or decorations there should be not problems regarding the circular layout.
von Azazel
20. Jan 2018 11:44
Forum: Software Engineering - Design and Construction
Thema: Ex09 - "numberOfElements"
Antworten: 2
Zugriffe: 273

Re: Ex09 - "numberOfElements"

Also for the CircularLayouter to work properly, you would need to typecheck the "base" of any decorated GraphElement since you only want to regard decorated Nodes in the layout. Bad design overall.
von Azazel
20. Jan 2018 10:45
Forum: Software Engineering - Design and Construction
Thema: Ex09 - "numberOfElements"
Antworten: 2
Zugriffe: 273

Ex09 - "numberOfElements"

Hi, another question in regard of task3 where the "numberOfElements" is used to determine the angle in a circular layout: Are Edges considered to be elements in this case too or may only nodes be used for creating a circular layout? In the first case the circular layouter will not work as intended I...
von Azazel
18. Jan 2018 11:01
Forum: Software Engineering - Design and Construction
Thema: Ex09 - SVGCanvas
Antworten: 1
Zugriffe: 217

Ex09 - SVGCanvas

Hi,

are additional parameters of the svg elements that are not part of the method structure defined in the original canvas trait (e.g. fill, strokeWidth or stroke) considered to be static or should the user be able to pass them as arguments to the associated function?
von Azazel
17. Jan 2018 18:37
Forum: Software Engineering - Design and Construction
Thema: Ex09 - Task 2
Antworten: 1
Zugriffe: 339

Ex09 - Task 2

Hi, two questions: Question 1: Should the additional functionalities be added to GraphElements draw -Method (e.g. by overriding it)? Or is it okay to implement a new function for it, say, drawElementBorder ? Question 2: If the additional functionalities should be added to the draw -Method, can we as...
von Azazel
7. Dez 2017 11:29
Forum: Software Engineering - Design and Construction
Thema: Var[Collection] modification
Antworten: 5
Zugriffe: 485

Re: Var[Collection] modification

Are there cases where the usage of Var can not be replaced by the usage of Signal?
von Azazel
7. Dez 2017 10:02
Forum: Software Engineering - Design and Construction
Thema: Var[Collection] modification
Antworten: 5
Zugriffe: 485

Re: Var[Collection] modification

Okay, now I feel stupid... :lol:
I got so confused by this yesterday. Thanks for clearing that up!
von Azazel
6. Dez 2017 23:04
Forum: Software Engineering - Design and Construction
Thema: Var[Collection] modification
Antworten: 5
Zugriffe: 485

Var[Collection] modification

Hey there, If I run the following code val c = Var(List(1,2,3)) val output = Signal{ c() } output.changed += { l: List[Int] => println(l) } c.now.apply(0) There will be no output. It seems like the apply-method of List does not trigger a change event. Given the Rescala-Documentation (http://guidosal...
von Azazel
23. Nov 2017 14:52
Forum: Software Engineering - Design and Construction
Thema: Ex03 - Immobile and Rigid classes
Antworten: 2
Zugriffe: 486

Ex03 - Immobile and Rigid classes

Hi there, Due to sickness I was not able to attend last weeks exercise discussion. Therefore I would like to clear up some remaining questions of mine w.r.t. the given solution. From the test output I have been given it seems like the only classes not being immobile were Map.class and Stack.class, w...
von Azazel
16. Nov 2017 19:26
Forum: Software Engineering - Design and Construction
Thema: Ex 3.3 - fields
Antworten: 5
Zugriffe: 417

Re: Ex 3.3 - fields

From my understanding, it is a violation of DIP to declare a member of class ArrayList . A DIP-compliant way would be to declare it to be of class AbstractList in this case and have it be an ArrayList -Object during runtime by using a setter or calling the constructor. However, the constructor of a ...
von Azazel
13. Nov 2017 21:16
Forum: Software Engineering - Design and Construction
Thema: Ex. 2 Task 2: Intention of ReferenceType
Antworten: 4
Zugriffe: 312

Re: Ex. 2 Task 2: Intention of ReferenceType

For anyone still confused, hit up your favourite search engine about the factory pattern in Scala.

Zur erweiterten Suche