EX10 Task1

tz33quvu
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 29. Jan 2017 09:26

EX10 Task1

Beitrag von tz33quvu » 23. Jan 2018 22:11

Hi,

I have some questions regarding task1:

1) The ordering of DependentTask and BillableTask. We don't know which method(addRate and addDependency) is called first, so it could be DependentTask (SimpleTask, BillableTask) or BillableTask(SimpleTask, DependentTask). Can we assume that BillableTask is always on the top level?

2)How should we implement these methods: dueDate, startDate, context, priority in dependentTask(t1:Task,t2:Task)? I think the dueDate is picking the latest and startDate is picking the eariest from t1 and t2, so how about context and priority?

3)If I understand correctly, the invoiceVisitor should only be able to accept billabletask and Project which contains billabletasks ? For other type of tasks just do nothing?

Thx!

meichholz
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

Re: EX10 Task1

Beitrag von meichholz » 24. Jan 2018 10:20

Hi,
tz33quvu hat geschrieben:
23. Jan 2018 22:11
1) The ordering of DependentTask and BillableTask. We don't know which method(addRate and addDependency) is called first, so it could be DependentTask (SimpleTask, BillableTask) or BillableTask(SimpleTask, DependentTask). Can we assume that BillableTask is always on the top level?
This was already answered in another thread.
tz33quvu hat geschrieben:
23. Jan 2018 22:11
2)How should we implement these methods: dueDate, startDate, context, priority in dependentTask(t1:Task,t2:Task)? I think the dueDate is picking the latest and startDate is picking the eariest from t1 and t2, so how about context and priority?
You can just delegate to t1.
tz33quvu hat geschrieben:
23. Jan 2018 22:11
3)If I understand correctly, the invoiceVisitor should only be able to accept billabletask and Project which contains billabletasks ? For other type of tasks just do nothing?
This is only true for SimpleTasks. A dependent task may depend on a BillableTask...

Best,
Matthias

tz33quvu
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 29. Jan 2017 09:26

Re: EX10 Task1

Beitrag von tz33quvu » 24. Jan 2018 14:31

Hi,
in the runner method

Code: Alles auswählen

list = new TaskBuilder("task4").addPriority('A').addRate(10.0).build() :: list
task4 has no duedate and can not get the duration(duedate - startdate). It's a typo or I miss something?

0b101101101
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 179
Registriert: 15. Apr 2015 18:24

Re: EX10 Task1

Beitrag von 0b101101101 » 25. Jan 2018 16:24

I have the feeling (although no proof) that duration is not calculatable but only settable and may start with zero if not set.

tz33quvu
Windoof-User
Windoof-User
Beiträge: 40
Registriert: 29. Jan 2017 09:26

Re: EX10 Task1

Beitrag von tz33quvu » 25. Jan 2018 20:44

0b101101101 hat geschrieben:
25. Jan 2018 16:24
I have the feeling (although no proof) that duration is not calculatable but only settable and may start with zero if not set.
That could be a solution but really weird design

meichholz
Endlosschleifenbastler
Endlosschleifenbastler
Beiträge: 167
Registriert: 30. Mär 2016 08:28

Re: EX10 Task1

Beitrag von meichholz » 26. Jan 2018 11:54

Hi,

duration should only be modified by using the addTime method. The duration is not related to the startDate and dueDate. There is already another thread explaining the meaning of addTime.

Best,
Matthias

Antworten

Zurück zu „Archiv“