kpttask.h
137 void initiateCalculationLists(TQPtrList<Node> &startnodes, TQPtrList<Node> &endnodes, TQPtrList<Node> &summarytasks);
The duration class can be used to store a timespan in a convenient format.
Definition kptduration.h:34
This class represents any node in the project, a node can be a project or a subproject or any task.
Definition kptnode.h:57
Project is the main node in a project, it contains child nodes and possibly sub-projects.
Definition kptproject.h:52
The relation class couples a 2 nodes together which are dependent on each other.
Definition kptrelation.h:45
This class represents a group of similar resources to be assigned to a task e.g.
Definition kptresource.h:66
The Schedule class holds data calculated during project calculation and scheduling,...
Definition kptschedule.h:55
virtual Duration plannedEffortTo(const TQDate &date)
Returns the planned effort up to and including date.
Definition kpttask.cpp:381
virtual double plannedCost()
Returns the total planned cost for this task (or subtasks)
Definition kpttask.cpp:444
bool isStartNode() const
Check if this node has any dependent parent nodes.
Definition kpttask.cpp:1380
virtual EffortCostMap plannedEffortCostPrDay(const TQDate &start, const TQDate &end) const
Returns a list of planned effort and cost for this task for the interval start, end inclusive.
Definition kpttask.cpp:342
Duration freeFloat()
Return the duration by which an activity can be delayed or extended without affecting the start of an...
Definition kpttask.h:230
DateTime scheduleForward(const DateTime &earliest, int use)
Schedules the task within the limits of earliestStart and latestFinish.
Definition kpttask.cpp:879
Duration * getExpectedDuration()
Returns the (previously) calculated duration.
Definition kpttask.cpp:88
virtual int type() const
Return task type. Can be Type_Task, Type_Summarytask ot Type_Milestone.
Definition kpttask.cpp:74
virtual bool isCritical()
A task is critical if there is no positive float.
Definition kpttask.cpp:1456
Duration finishFloat()
Return the duration the task has at its finish before a successor task starts.
Definition kpttask.h:240
virtual Duration plannedEffort()
Returns the total planned effort for this task (or subtasks)
Definition kpttask.cpp:351
DateTime calculateBackward(int use)
Calculates ref m_durationBackward from ref latestFinish and returns the resulting start time,...
Definition kpttask.cpp:752
virtual double plannedCostTo(const TQDate &)
Planned cost up to and including date.
Definition kpttask.cpp:472
virtual void saveAppointments(TQDomElement &element, long id) const
Save appointments for schedule with id.
Definition kpttask.cpp:330
virtual Duration actualEffortTo(const TQDate &date)
Returns the actual effort up to and including date.
Definition kpttask.cpp:430
virtual void setCurrentSchedule(long id)
Set current schedule to schedule with identity id, for me nd my children.
Definition kpttask.cpp:1515
Duration positiveFloat()
Return the duration that an activity's start can be delayed without affecting the project completion ...
Definition kpttask.cpp:1425
void calcResourceOverbooked()
Calculates if the assigned resource is overbooked within the duration of this task.
Definition kpttask.cpp:161
virtual double actualCost()
Returns the actaually reported cost for this task (or subtasks)
Definition kpttask.cpp:486
Duration * getRandomDuration()
Instead of using the expected duration, generate a random value using the Distribution of each Task.
Definition kpttask.cpp:94
virtual DateTime workStartTime() const
Return the time when work can actually start on this task.
Definition kpttask.cpp:1396
ResourceGroupRequest * resourceGroupRequest(ResourceGroup *group) const
Return the resource request made to group (There should be only one)
Definition kpttask.cpp:98
Duration negativeFloat()
Return the duration by which the duration of an activity or path has to be reduced in order to fullfi...
Definition kpttask.h:225
virtual double actualCostTo(const TQDate &)
Actual cost up to and including date.
Definition kpttask.cpp:514
virtual bool load(TQDomElement &element, Project &project)
Load from document.
Definition kpttask.cpp:172
DateTime calculateForward(int use)
Calculates ref m_durationForward from ref earliestStart and returns the resulting end time,...
Definition kpttask.cpp:625
virtual Duration actualEffort()
Returns the total actual effort for this task (or subtasks)
Definition kpttask.cpp:396
void initiateCalculationLists(TQPtrList< Node > &startnodes, TQPtrList< Node > &endnodes, TQPtrList< Node > &summarytasks)
Sets up the lists used for calculation.
Definition kpttask.cpp:569
double costPerformanceIndex(const TQDate &date, bool *error=0)
Cost performance index.
Definition kpttask.cpp:544
double effortPerformanceIndex(const TQDate &date, bool *error=0)
Effort based performance index.
Definition kpttask.cpp:529
Duration calcDuration(const DateTime &time, const Duration &effort, bool backward)
Return the duration calculated on bases of the requested resources.
Definition kpttask.cpp:1262
virtual DateTime workEndTime() const
Return the time when work can actually finish on this task.
Definition kpttask.cpp:1404
void adjustSummarytask()
Summarytasks (with milestones) need special treatment because milestones are always 'glued' to their ...
Definition kpttask.cpp:1240
DateTime scheduleBackward(const DateTime &latest, int use)
Schedules the task within the limits of earliestStart and latestFinish.
Definition kpttask.cpp:1074
