[kplato] the source tree

John D Lamb kplato@kde.org
Sun, 29 Jul 2001 17:04:00 +0100


I had a look at this. The expected duration of a Project will need to be
calculated by PERT/CPM but the expected duration of a task will be
calculated from information about the task itself. I'll see if I can put
together some code this week for how I'd try this.

It might be useful to make this a little more abstract by (eventually)
using a function like KPTProject::getDuration( int d =
DurationType::expected ). Then the code could be reused to calculate
(say) getDuration( DurationType::optimistic ), or getDuration(
DurationType::random ) for Monte Carlo
estimates of the distribution of likely project times.

JDL

PS Where do you get KDOC from? I think I prefer doxygen but kplato ought
to have kdoc support. 


Thomas Zander wrote:
> 
> Hi,
> 
> I moved stuff around and made it work a lot better then it did.
> 
> but there is one huge problem, I don't know the rules of the calculations
> that are done.
> 
> So could someone please check the sources and implement things in
>   kptproject.cc::getExpectedDuration()
> and similar methods.
> 
> There is a good implementation there now, but I don't know if I did it
> correctly. (I think its ok though)
> 
> My main question at the moment is what expectedDuration will return, IIRC
> if I ask a task it will just check the time needed,  no delays and schueduling
> there.
> 
> Then what is the correct output of the test program? Is the output printed now
> correct?
> 
>     Creating Task A
>       Project
>       +-- > Task A
> 
>     Added task B with effort of 2 hours
>       Project
>       +-- > Task A
>       +-- > Task B
>               -> 02:00:00
> 
>     Added subtask A1 with effort 1 hour
>       Project
>       +-- > Task A
>       |       -> 01:00:00 (implied)
>       |       +-- > Task A1
>       |               -> 01:00:00
>       +-- > Task B
>               -> 02:00:00
> 
>     Setting Task B to start 1h45m after A finished
>       Task A1 -- Task B
> 
>     Total running time: 03:00:00   (project->getExpectedDuration())
> 
> After this is done, lets work on start/stop times...
> 
> --
> Thomas Zander                                            zander@earthling.net
> The only thing worse than failure is the fear of trying something new
> 
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature