This forum has been archived. All content is frozen. Please use KDE Discuss instead.

modify scheduler slightly (Scripting KPlato ?)

Tags: None
(comma "," separated)
droopy4096
Registered Member
Posts
3
Karma
0
OS
KPlato seems like it's the best tool for what I need so far, alas scheduler's behavior is not exactly what I need. Quick example:
I've got 4 tasks all assigned to the same resorse "A"
Code: Select all
Project X:
 Install OS - 2d
 Package X  - 2d
 Deploy X - 1d
 Benchmark X - 3d
 Tune X - 3d

Now everything works fine before I start entering progress. When I enter progress I'd like to see schedule changing to reflect the fact that, say I've done 2d worth of benchmarking ahead of time, so I need bar representing "Benchmark X" shifted 2d to the left thus bringing task completion date closer and Project X completion date with it.

I've noticed that Schedulers are pluggable, maybe I'm looking for plugin implementation? Or can I make existing scheduler accomodate my needs?

I can even go as far as implementing my own Scheduler but I may need some pointers on how to properly develop and deploy plugin for KPlato. If I have to go that route I'd also like to do it in Python which complicates matters even more as I don't know if that's even possible.
danders
Registered Member
Posts
37
Karma
0
droopy4096 wrote:KPlato seems like it's the best tool for what I need so far, alas scheduler's behavior is not exactly what I need. Quick example:
I've got 4 tasks all assigned to the same resorse "A"
Code: Select all
Project X:
 Install OS - 2d
 Package X  - 2d
 Deploy X - 1d
 Benchmark X - 3d
 Tune X - 3d

Now everything works fine before I start entering progress. When I enter progress I'd like to see schedule changing to reflect the fact that, say I've done 2d worth of benchmarking ahead of time, so I need bar representing "Benchmark X" shifted 2d to the left thus bringing task completion date closer and Project X completion date with it.

There is not implemented any automatic rescheduling, and the gantt chart does not present actual start/finish time. Hmmm, I think there is a wish for this IIRC, anyways it would be a good addition.
What you can do is:
[*] Gantt chart: Enable "Show task completion" to show a progress bar in the task.
[*] Schedules editor: Create a sub-schedule to you current schedule and reschedule. It will calculate the new schedule based on the progress info you have entered.

droopy4096 wrote:I've noticed that Schedulers are pluggable, maybe I'm looking for plugin implementation? Or can I make existing scheduler accomodate my needs?

What you want to do needs changes inside kplato.
Technically it's possible to create your own scheduler, but the needed header files are not installed so it's not officially possible.
droopy4096 wrote:I can even go as far as implementing my own Scheduler but I may need some pointers on how to properly develop and deploy plugin for KPlato. If I have to go that route I'd also like to do it in Python which complicates matters even more as I don't know if that's even possible.

Scheduler plugins does not have any scripting interface prepared (or planned) atm.
droopy4096
Registered Member
Posts
3
Karma
0
OS
danders wrote:There is not implemented any automatic rescheduling, and the gantt chart does not present actual start/finish time. Hmmm, I think there is a wish for this IIRC, anyways it would be a good addition.
What you can do is:
[*] Gantt chart: Enable "Show task completion" to show a progress bar in the task.
[*] Schedules editor: Create a sub-schedule to you current schedule and reschedule. It will calculate the new schedule based on the progress info you have entered.


oh, that brings me so much closer to what I really need. Thanks! One quirk here: I had to use different scheduler for subschedule to get something resembling what I need:

Code: Select all
myschedule: Forward;PERT;RCPS
myschedule.1: Forward;None;Network


actually quick test shows that if I use:

Code: Select all
myschedule: Forward;None;Network
myschedule.1: Forward;None;Network


I get the same results as above. In other words - the only sheduler that seems to react somewhat properly is Network one and not the RCPS. Further, it doesn't seem that PERT has much influence in test case I'm running so far.

Now I know the effect of using subschedules, however I probably do not fully understand all of the functionality hiding behind them. Is there something you can point me to for further reading?
danders
Registered Member
Posts
37
Karma
0
droopy4096 wrote:
danders wrote:There is not implemented any automatic rescheduling, and the gantt chart does not present actual start/finish time. Hmmm, I think there is a wish for this IIRC, anyways it would be a good addition.
What you can do is:
[*] Gantt chart: Enable "Show task completion" to show a progress bar in the task.
[*] Schedules editor: Create a sub-schedule to you current schedule and reschedule. It will calculate the new schedule based on the progress info you have entered.


oh, that brings me so much closer to what I really need. Thanks! One quirk here: I had to use different scheduler for subschedule to get something resembling what I need:

Code: Select all
myschedule: Forward;PERT;RCPS
myschedule.1: Forward;None;Network


actually quick test shows that if I use:

Code: Select all
myschedule: Forward;None;Network
myschedule.1: Forward;None;Network


I get the same results as above. In other words - the only sheduler that seems to react somewhat properly is Network one and not the RCPS. Further, it doesn't seem that PERT has much influence in test case I'm running so far.

Bug in RCPS scheduler, fixed.
To have any use for PERT distribution you also need to enter optimistic/pessimistic estimates for the task(s), see: http://userbase.kde.org/KPlato/Manual/Task_Editor

droopy4096 wrote:Now I know the effect of using subschedules, however I probably do not fully understand all of the functionality hiding behind them. Is there something you can point me to for further reading?

If it was only reasonably complete, I would have pointed you to the manual: http://userbase.kde.org/KPlato/Manual/Schedules_Editor :)
droopy4096
Registered Member
Posts
3
Karma
0
OS
danders wrote:Bug in RCPS scheduler, fixed.
To have any use for PERT distribution you also need to enter optimistic/pessimistic estimates for the task(s), see: http://userbase.kde.org/KPlato/Manual/Task_Editor

droopy4096 wrote:Now I know the effect of using subschedules, however I probably do not fully understand all of the functionality hiding behind them. Is there something you can point me to for further reading?

If it was only reasonably complete, I would have pointed you to the manual: http://userbase.kde.org/KPlato/Manual/Schedules_Editor :)


Thanks for the pointers! Do you need help? I can offer some help in documentation area (once I get to grips with at least basic functions). Coding is probably restricted to python scripting (I see scripting API for python is fairly accessible) but I can do that too. I like KPlato and would like to help as much as I can pushing it forward. Looks like it's going to be my "weapon of choice" for a while so I can stick around and help with the maintenance as well while I'm at it.
danders
Registered Member
Posts
37
Karma
0
Yes, please!
Help with documentation would be great. As you have found out it is diffcult for people to get started without at least a minimum. It's right at the top of my priority (well except bug fixing) but it's hard to find much time atm.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]