Die Suche ergab 40 Treffer

von Mario Trageser
30. Jan 2018 17:08
Forum: Archiv
Thema: Exercise 11 - Proxy Pattern
Antworten: 1
Zugriffe: 330

Exercise 11 - Proxy Pattern

Hi,

In exercise 11, I used the proxy pattern. However, there are no annotations for this pattern in the template.
Shall I use the ones for the decorator pattern, since the proxy pattern is structurally equivalent to the decorator pattern?

Kind regards,
Mario
von Mario Trageser
30. Jan 2018 15:52
Forum: Archiv
Thema: Exercise 11 Task 1: current
Antworten: 2
Zugriffe: 266

Re: Exercise 11 Task 1: current

I found the solution to my question in the description of task 2. However, the current raises a new question: How should chooseNextPlaceholder work? Should it find the first placeholder, or the first that is found after the current. If the latter is the case, what should happen, when we found the la...
von Mario Trageser
30. Jan 2018 14:30
Forum: Archiv
Thema: Exercise 11 Task 1: current
Antworten: 2
Zugriffe: 266

Exercise 11 Task 1: current

Hi,

what is the meaning of the "current" variable in the class "Formula"?

Kind regards,
Mario
von Mario Trageser
30. Jan 2018 14:22
Forum: Archiv
Thema: Composite Pattern - Child Management
Antworten: 0
Zugriffe: 207

Composite Pattern - Child Management

Hi,

in the composite patterns, are the child management operations mandatory or optional?

Kind regards,
Mario
von Mario Trageser
30. Jan 2018 13:12
Forum: Archiv
Thema: Exercise 11 - sbt eclipse fails
Antworten: 1
Zugriffe: 199

Exercise 11 - sbt eclipse fails

Hi,

when calling

Code: Alles auswählen

sbt eclipse
on exercise 11, I get the following error:

Code: Alles auswählen

sbt.librarymanagement.ResolveException: unresolved dependency: de.tudarmstadt.stg#autograding_2.12;1.0.3: not found
Can you fix this?

Kind regards,
Mario
von Mario Trageser
23. Jan 2018 16:22
Forum: Archiv
Thema: Exercise 10 Task 3 - CSV
Antworten: 5
Zugriffe: 656

Exercise 10 Task 3 - CSV

Hi,

how should None-Values be represented inthe CSV files?
Should they be represented by an empty String, or by "None". In the latter case, should Some-values be represented by "Some(...)"?
Is it correct, that the project tag should not be used in the CSV output format?

Kind regards,
Mario
von Mario Trageser
23. Jan 2018 15:28
Forum: Archiv
Thema: Exercise 10 Task 1
Antworten: 6
Zugriffe: 843

Re: Exercise 10 Task 1

Ah, I found it. I did not see that the TaskBuilder takes a String parameter for the description in the constructor.
Sorry
von Mario Trageser
23. Jan 2018 14:50
Forum: Archiv
Thema: Exercise 10 Task 1
Antworten: 6
Zugriffe: 843

Re: Exercise 10 Task 1

Ok, thank you.

How should a task's description be set by the TaskBuilder? The builder has no setter for this property.
von Mario Trageser
23. Jan 2018 14:32
Forum: Archiv
Thema: Exercise 10 Task 1
Antworten: 6
Zugriffe: 843

Re: Exercise 10 Task 1

Thank you for updating the exercise sheet. Am I right, that DependentTask and BillableTask do not have a project field? Does the runtime type of the result of TaskBuilder.build matter? I.e. if we have a dependency and a rate, does it matter, whether we return a Task with the runtime type DependentTa...
von Mario Trageser
23. Jan 2018 13:36
Forum: Archiv
Thema: Exercise 10 Task 1
Antworten: 6
Zugriffe: 843

Exercise 10 Task 1

Hi, exercise 10 task 1 says: "Both of the previous classes should replace their wrapped tasks in lists of tasks, e.g. in a project. Note that this is not true for the dependency". I understand these two scentences as follows: DependentTask should not store its wrapped tasks in a list. BillingTask sh...
von Mario Trageser
17. Jan 2018 12:30
Forum: Archiv
Thema: Exercise 9 Task 1
Antworten: 3
Zugriffe: 794

Exercise 9 Task 1

Hi,

can we assume, that we have a graph without cycles, so that each node can be seen as the root of a sub graph?
Is it allowed, that a val in a trait is annotated with @ParentAccess? Or doesn't a val count as a method?

Kind regards,
Mario
von Mario Trageser
9. Jan 2018 13:38
Forum: Software Engineering - Design and Construction
Thema: Exercise 8 Task 2 - ConcreteDecorator
Antworten: 3
Zugriffe: 356

Re: Exercise 8 Task 2 - ConcreteDecorator

Are we suposed to also mark them as concrete decorators? Is it allowed to mark a class as a concrete decorator, and also as a concrete component at the same time?
von Mario Trageser
9. Jan 2018 13:29
Forum: Software Engineering - Design and Construction
Thema: Exercise 8 Task 2 - ConcreteDecorator
Antworten: 3
Zugriffe: 356

Exercise 8 Task 2 - ConcreteDecorator

Hi there,

in the decorator pattern, if there is a subclass of the concrete decorator, and this subclass does not contain any decoration code.
Can this subclass be seen as a concrete component, since it implements the component interface?

Kind regards,
Mario
von Mario Trageser
9. Jan 2018 12:49
Forum: Software Engineering - Design and Construction
Thema: Exercise 8 Task 1 - Subclasses of leafs
Antworten: 1
Zugriffe: 134

Exercise 8 Task 1 - Subclasses of leafs

Hi there,

if we identified a leaf in task 1 of exercise 8, and this leaf has further subclasses outside of the ignore package, should we also mark them as leafs? Or is it sufficient, if we only mark the base class?

Kind regards,
Mario
von Mario Trageser
9. Jan 2018 12:38
Forum: Software Engineering - Design and Construction
Thema: Exercise 8 not compiling
Antworten: 2
Zugriffe: 205

Exercise 8 not compiling

Hi there, exercise 8 does not compile. This is, because the apache commons packages import annotations like import de.tudarmstadt.stg.sedc.annotations.strategy.ConcreteStrategy; However, the annotations of this exercise are in the package annotations while the prefix de.tudarmstadt.stg.sedc is missi...

Zur erweiterten Suche