kplato
KPlato::Project Class Reference
#include <kptproject.h>
Inheritance diagram for KPlato::Project:

Detailed Description
Project is the main node in a project, it contains child nodes and possibly sub-projects.A sub-project is just another instantion of this node however.
Definition at line 52 of file kptproject.h.
Public Member Functions | |
Project (Node *parent=0) | |
~Project () | |
virtual int | type () const |
void | calculate (Schedule *scedule) |
void | calculate (Effort::Use use) |
void | calculate () |
virtual bool | calcCriticalPath (bool fromEnd) |
virtual DateTime | startTime () const |
virtual DateTime | endTime () const |
Duration * | getExpectedDuration () |
Duration * | getRandomDuration () |
virtual bool | load (QDomElement &element) |
virtual void | save (QDomElement &element) const |
QPtrList< ResourceGroup > & | resourceGroups () |
virtual void | addResourceGroup (ResourceGroup *resource) |
virtual void | insertResourceGroup (unsigned int index, ResourceGroup *resource) |
void | removeResourceGroup (ResourceGroup *resource) |
void | removeResourceGroup (int number) |
ResourceGroup * | takeResourceGroup (ResourceGroup *resource) |
bool | addTask (Node *task, Node *position) |
bool | addSubTask (Node *task, Node *position) |
bool | canIndentTask (Node *node) |
bool | indentTask (Node *node) |
bool | canUnindentTask (Node *node) |
bool | unindentTask (Node *node) |
bool | canMoveTaskUp (Node *node) |
bool | moveTaskUp (Node *node) |
bool | canMoveTaskDown (Node *node) |
bool | moveTaskDown (Node *node) |
Task * | createTask (Node *parent) |
Task * | createTask (Task &def, Node *parent) |
ResourceGroup * | group (QString id) |
Resource * | resource (QString id) |
virtual EffortCostMap | plannedEffortCostPrDay (const QDate &start, const QDate &end) const |
virtual Duration | plannedEffort () |
virtual Duration | plannedEffort (const QDate &date) |
virtual Duration | plannedEffortTo (const QDate &date) |
virtual Duration | actualEffort () |
virtual Duration | actualEffort (const QDate &date) |
virtual Duration | actualEffortTo (const QDate &date) |
virtual double | plannedCost () |
virtual double | plannedCost (const QDate &date) |
virtual double | plannedCostTo (const QDate &date) |
virtual double | actualCost () |
virtual double | actualCost (const QDate &date) |
virtual double | actualCostTo (const QDate &date) |
Calendar * | defaultCalendar () |
QPtrList< Calendar > | calendars () |
void | addCalendar (Calendar *calendar) |
Calendar * | calendar (const QString id) const |
StandardWorktime * | standardWorktime () |
void | setStandardWorktime (StandardWorktime *worktime) |
void | setDefaultCalendar (Calendar *cal) |
bool | legalToLink (Node *par, Node *child) |
virtual const QDict< Node > & | nodeDict () |
virtual Node * | findNode (const QString &id) const |
virtual bool | removeId (const QString &id) |
virtual void | insertId (const QString &id, const Node *node) |
QString | uniqueNodeId (int seed=1) |
ResourceGroup * | findResourceGroup (const QString &id) const |
bool | removeResourceGroupId (const QString &id) |
void | insertResourceGroupId (const QString &id, const ResourceGroup *group) |
Resource * | findResource (const QString &id) const |
bool | removeResourceId (const QString &id) |
void | insertResourceId (const QString &id, const Resource *resource) |
virtual Calendar * | findCalendar (const QString &id) const |
virtual bool | removeCalendarId (const QString &id) |
virtual void | insertCalendarId (const QString &id, const Calendar *calendar) |
void | setBaselined (bool on) |
bool | isBaselined () const |
void | generateWBS (int count, WBSDefinition &def, QString wbs=QString()) |
Accounts & | accounts () |
virtual void | setCurrentSchedule (long id) |
MainSchedule * | createSchedule (QString name, Schedule::Type type) |
virtual void | setParentSchedule (Schedule *sch) |
void | printDebug (bool children, QCString indent) |
void | printCalendarDebug (QCString indent="") |
Protected Member Functions | |
DateTime | calculateForward (int use) |
DateTime | calculateBackward (int use) |
DateTime | scheduleForward (const DateTime &earliest, int use) |
DateTime | scheduleBackward (const DateTime &latest, int use) |
void | adjustSummarytask () |
void | initiateCalculation (Schedule &sch) |
void | initiateCalculationLists (QPtrList< Node > &startnodes, QPtrList< Node > &endnodes, QPtrList< Node > &summarytasks) |
bool | legalParents (Node *par, Node *child) |
bool | legalChildren (Node *par, Node *child) |
Protected Attributes | |
Accounts | m_accounts |
QPtrList< ResourceGroup > | m_resourceGroups |
Calendar * | m_defaultCalendar |
QPtrList< Calendar > | m_calendars |
StandardWorktime * | m_standardWorktime |
Member Function Documentation
|
Actual cost on date.
Reimplemented from KPlato::Node. Definition at line 881 of file kptproject.cc. |
|
Returns the actually reported cost for this project.
Reimplemented from KPlato::Node. Definition at line 870 of file kptproject.cc. |
|
Actual cost up to and including date.
Reimplemented from KPlato::Node. Definition at line 892 of file kptproject.cc. |
|
Returns the actual effort on date.
Reimplemented from KPlato::Node. Definition at line 817 of file kptproject.cc. |
|
Returns the actual effort.
Reimplemented from KPlato::Node. Definition at line 806 of file kptproject.cc. |
|
Returns the actual effort up to and including date.
Reimplemented from KPlato::Node. Definition at line 828 of file kptproject.cc. |
|
Calculate current schedule.
Definition at line 92 of file kptproject.cc. |
|
Calculate the whole project.
Definition at line 84 of file kptproject.cc. |
|
Calculate the whole project.
Definition at line 75 of file kptproject.cc. |
|
Returns the calendar with identity id.
Definition at line 907 of file kptproject.cc. |
|
Create new schedule with unique id.
Definition at line 1004 of file kptproject.cc. |
|
Return the scheduled end time.
Reimplemented from KPlato::Node. Definition at line 157 of file kptproject.cc. |
|
Find the calendar with identity id.
Definition at line 202 of file kptproject.h. |
|
Find the node with identity id.
Reimplemented from KPlato::Node. Definition at line 173 of file kptproject.h. |
|
Generate WBS.
Reimplemented from KPlato::Node. Definition at line 984 of file kptproject.cc. |
|
Returns the duration calculated as latestFinish - earliestStart.
Implements KPlato::Node. Definition at line 165 of file kptproject.cc. |
|
Instead of using the expected duration, generate a random value using the Distribution of each Task. This can be used for Monte-Carlo estimation of Project duration. Implements KPlato::Node. Definition at line 170 of file kptproject.cc. |
|
Returns the resourcegroup with identity id.
Definition at line 756 of file kptproject.cc. |
|
Insert the calendar with identity id.
Definition at line 208 of file kptproject.h. |
|
Insert the node with identity id.
Reimplemented from KPlato::Node. Definition at line 179 of file kptproject.h. |
|
Insert the resourcegroup with identity id.
Definition at line 189 of file kptproject.h. |
|
Insert the resource with identity id.
Definition at line 198 of file kptproject.h. |
|
Definition at line 219 of file kptproject.h. |
|
Check if node par can be linked to node child.
Reimplemented from KPlato::Node. Definition at line 933 of file kptproject.cc. |
|
Planned cost on date.
Reimplemented from KPlato::Node. Definition at line 849 of file kptproject.cc. |
|
Returns the total planned cost for this project.
Reimplemented from KPlato::Node. Definition at line 838 of file kptproject.cc. |
|
Planned cost up to and including date.
Reimplemented from KPlato::Node. Definition at line 860 of file kptproject.cc. |
|
Returns the total planned effort for this project (or subproject) on date.
Reimplemented from KPlato::Node. Definition at line 784 of file kptproject.cc. |
|
Returns the total planned effort for this project (or subproject).
Reimplemented from KPlato::Node. Definition at line 773 of file kptproject.cc. |
|
Returns the planned effort up to and including date.
Reimplemented from KPlato::Node. Definition at line 795 of file kptproject.cc. |
|
Remove the calendar with identity id from the register.
Definition at line 205 of file kptproject.h. |
|
Remove the node with identity id from the register.
Reimplemented from KPlato::Node. Definition at line 176 of file kptproject.h. |
|
Remove the resourcegroup with identity id from the register.
Definition at line 186 of file kptproject.h. |
|
Remove the resource with identity id from the register.
Definition at line 195 of file kptproject.h. |
|
Returns the resource with identity id.
Definition at line 760 of file kptproject.cc. |
|
Setting a project to be baselined means the project data can not be edited anymore.
Definition at line 215 of file kptproject.h. |
|
Set current schedule to schedule with identity id, for me and my children.
Reimplemented from KPlato::Node. Definition at line 995 of file kptproject.cc. |
|
Set parent schedule for my children.
Reimplemented from KPlato::Node. Definition at line 523 of file kptproject.cc. |
|
Defines the length of days, weeks, months and years. Used for estimation and calculation of effort, and presentation in gantt chart. Definition at line 163 of file kptproject.h. |
|
Return the scheduled start time.
Reimplemented from KPlato::Node. Definition at line 149 of file kptproject.cc. |
|
Returns the node type. Can be Type_Project or Type_Subproject.
Implements KPlato::Node. Definition at line 73 of file kptproject.cc. |
The documentation for this class was generated from the following files: