kptproject.h
Calendar defines the working and nonworking days and hours.
Definition kptcalendar.h:204
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
virtual double plannedCost()
Returns the total planned cost for this project.
Definition kptproject.cpp:898
virtual void setCurrentSchedule(long id)
Set current schedule to schedule with identity id, for me and my children.
Definition kptproject.cpp:1051
ResourceGroup * group(TQString id)
Returns the resourcegroup with identity id.
Definition kptproject.cpp:816
void setBaselined(bool on)
Setting a project to be baselined means the project data can not be edited anymore.
Definition kptproject.h:216
bool removeResourceGroupId(const TQString &id)
Remove the resourcegroup with identity id from the register.
Definition kptproject.h:189
virtual bool removeCalendarId(const TQString &id)
Remove the calendar with identity id from the register.
Definition kptproject.cpp:1071
virtual void setParentSchedule(Schedule *sch)
Set parent schedule for my children.
Definition kptproject.cpp:526
virtual Duration plannedEffort()
Returns the total planned effort for this project (or subproject).
Definition kptproject.cpp:833
virtual Duration actualEffortTo(const TQDate &date)
Returns the actual effort up to and including date.
Definition kptproject.cpp:888
void insertResourceId(const TQString &id, const Resource *resource)
Insert the resource with identity id.
Definition kptproject.h:201
virtual double plannedCostTo(const TQDate &date)
Planned cost up to and including date.
Definition kptproject.cpp:920
Duration * getExpectedDuration()
Returns the duration calculated as latestFinish - earliestStart.
Definition kptproject.cpp:164
bool registerNodeId(Node *node)
Register node. The nodes id must be unique and non-empty.
Definition kptproject.cpp:798
bool legalToLink(Node *par, Node *child)
Check if node par can be linked to node child.
Definition kptproject.cpp:989
virtual Calendar * findCalendar(const TQString &id) const
Find the calendar with identity id.
Definition kptproject.h:205
void insertResourceGroupId(const TQString &id, const ResourceGroup *group)
Insert the resourcegroup with identity id.
Definition kptproject.h:192
Calendar * calendar(const TQString id) const
Returns the calendar with identity id.
Definition kptproject.cpp:967
virtual double actualCostTo(const TQDate &date)
Actual cost up to and including date.
Definition kptproject.cpp:952
void generateWBS(int count, WBSDefinition &def, TQString wbs=TQString())
Generate WBS.
Definition kptproject.cpp:1040
virtual Duration plannedEffortTo(const TQDate &date)
Returns the planned effort up to and including date.
Definition kptproject.cpp:855
virtual Node * findNode(const TQString &id) const
Find the node with identity id.
Definition kptproject.h:175
MainSchedule * createSchedule(TQString name, Schedule::Type type)
Create new schedule with unique id.
Definition kptproject.cpp:1060
virtual void insertId(const TQString &id, const Node *node)
Insert the node with identity id.
Definition kptproject.cpp:793
bool removeResourceId(const TQString &id)
Remove the resource with identity id from the register.
Definition kptproject.h:198
Duration * getRandomDuration()
Instead of using the expected duration, generate a random value using the Distribution of each Task.
Definition kptproject.cpp:169
virtual int type() const
Returns the node type. Can be Type_Project or Type_Subproject.
Definition kptproject.cpp:72
virtual double actualCost()
Returns the actually reported cost for this project.
Definition kptproject.cpp:930
virtual void insertCalendarId(const TQString &id, const Calendar *calendar)
Insert the calendar with identity id.
Definition kptproject.cpp:1076
StandardWorktime * standardWorktime()
Defines the length of days, weeks, months and years and the standard working week.
Definition kptproject.h:166
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
