kplato
KPlato::Schedule Class Reference
#include <kptschedule.h>
Inheritance diagram for KPlato::Schedule:

Detailed Description
The Schedule class holds data calculated during project calculation and scheduling, eg start- and end-times and appointments.There is one schedule per node and one per resource. Schedules can be of type Expected, Optimistic or Pessimistic refering to which estimate is used for the calculation. Schedule is subclassed into: MainSchedule Used by the main project. NodeSchedule Used by all other nodes (tasks). ResourceSchedule Used by resources.
Definition at line 53 of file kptschedule.h.
Public Types | |
enum | Type { Expected = 0, Optimistic = 1, Pessimistic = 2 } |
Public Member Functions | |
Schedule () | |
Schedule (Schedule *parent) | |
Schedule (QString name, Type type, long id) | |
~Schedule () | |
QString | name () const |
void | setName (QString name) |
Type | type () const |
void | setType (Type type) |
void | setType (QString type) |
QString | typeToString (bool translate=false) const |
long | id () const |
void | setId (long id) |
void | setParent (Schedule *parent) |
Schedule * | parent () const |
virtual bool | isDeleted () const |
virtual void | setDeleted (bool on) |
virtual Resource * | resource () const |
virtual Node * | node () const |
virtual bool | loadXML (const QDomElement &element) |
virtual void | saveXML (QDomElement &element) const |
void | saveCommonXML (QDomElement &element) const |
void | saveAppointments (QDomElement &element) const |
QPtrList< Appointment > & | appointments () |
virtual bool | add (Appointment *appointment) |
virtual void | addAppointment (Schedule *, DateTime &, DateTime &, double=100) |
void | removeAppointment (Appointment *appointment) |
void | takeAppointment (Appointment *appointment) |
Appointment * | findAppointment (Schedule *resource, Schedule *node) |
Appointment | appointmentIntervals () const |
virtual bool | isOverbooked () const |
virtual bool | isOverbooked (const DateTime &, const DateTime &) const |
virtual EffortCostMap | plannedEffortCostPrDay (const QDate &start, const QDate &end) const |
virtual Duration | plannedEffort () const |
virtual Duration | plannedEffort (const QDate &date) const |
virtual Duration | plannedEffortTo (const QDate &date) const |
virtual Duration | actualEffort () const |
virtual Duration | actualEffort (const QDate &date) const |
virtual Duration | actualEffortTo (const QDate &date) const |
virtual double | plannedCost () const |
virtual double | plannedCost (const QDate &date) const |
virtual double | plannedCostTo (const QDate &date) const |
virtual double | actualCost () const |
virtual double | actualCost (const QDate &date) const |
virtual double | actualCostTo (const QDate &date) const |
double | effortPerformanceIndex (const QDate &, bool *) |
double | costPerformanceIndex (const QDate &, bool *) |
virtual double | normalRatePrHour () const |
void | setEarliestStart (DateTime &dt) |
void | setLatestFinish (DateTime &dt) |
virtual void | initiateCalculation () |
virtual void | calcResourceOverbooked () |
void | setScheduled (bool on) |
bool | isScheduled () const |
DateTime | start () const |
DateTime | end () const |
virtual void | printDebug (QString ident) |
Protected Attributes | |
QString | m_name |
Type | m_type |
long | m_id |
bool | m_deleted |
QPtrList< Appointment > | m_appointments |
Schedule * | m_parent |
DateTime | earliestStart |
DateTime | latestFinish |
DateTime | startTime |
DateTime | endTime |
Duration | duration |
bool | resourceError |
bool | resourceOverbooked |
bool | resourceNotAvailable |
bool | schedulingError |
bool | notScheduled |
DateTime | workStartTime |
DateTime | workEndTime |
bool | inCriticalPath |
Friends | |
class | Node |
class | Task |
class | Project |
class | Resource |
Member Function Documentation
|
Actual cost on date.
Definition at line 312 of file kptschedule.cc. |
|
Actual cost is the sum total of the reported costs actually used for this node.
Definition at line 302 of file kptschedule.cc. |
|
Actual cost up to and including date.
Definition at line 322 of file kptschedule.cc. |
|
Returns the total actual effort for this task (or subtasks) on date.
Definition at line 252 of file kptschedule.cc. |
|
Returns the total actual effort for this task (or subtasks).
Definition at line 242 of file kptschedule.cc. |
|
Returns the total actual effort for this task (or subtasks) up to and including date.
Definition at line 262 of file kptschedule.cc. |
|
Adds appointment to this schedule only.
Definition at line 164 of file kptschedule.cc. |
|
Adds appointment to both this resource schedule and node schedule.
Reimplemented in KPlato::NodeSchedule, and KPlato::ResourceSchedule. Definition at line 93 of file kptschedule.h. |
|
Return the list of appointments.
Definition at line 89 of file kptschedule.h. |
|
Cost performance index.
Definition at line 147 of file kptschedule.h. |
|
Effort based performance index.
Definition at line 145 of file kptschedule.h. |
|
Planned cost on date.
Definition at line 282 of file kptschedule.cc. |
|
Planned cost is the sum total of all resources and other costs planned for this node.
Definition at line 272 of file kptschedule.cc. |
|
Planned cost from start of activity up to and including date is the sum of all resource costs and other costs planned for this node.
Definition at line 292 of file kptschedule.cc. |
|
Returns the total planned effort for this task (or subtasks) on date.
Definition at line 222 of file kptschedule.cc. |
|
Returns the total planned effort for this task (or subtasks).
Definition at line 212 of file kptschedule.cc. |
|
Returns the planned effort up to and including date.
Definition at line 232 of file kptschedule.cc. |
|
removes appointment and deletes it (independent of setAutoDelete)
Definition at line 175 of file kptschedule.cc. |
|
removes appointment without deleting it (independent of setAutoDelete)
Definition at line 180 of file kptschedule.cc. |
Member Data Documentation
|
duration is the scheduled duration which depends on e.g. estimated effort, allocated resources and risk Definition at line 203 of file kptschedule.h. |
|
earliestStart is calculated by PERT/CPM. A task may be scheduled to start later because of constraints or resource availability etc. Definition at line 181 of file kptschedule.h. |
|
m_endTime is the scheduled finish time. It depends on constraints (i.e. ASAP/ALAP) and resource availability. It will always be earlier or equal to latestFinish Definition at line 198 of file kptschedule.h. |
|
latestFinish is calculated by PERT/CPM. A task may be scheduled to finish earlier because of constraints or resource availability etc. Definition at line 187 of file kptschedule.h. |
|
Set if the node has not been scheduled.
Definition at line 214 of file kptschedule.h. |
|
Set if EffortType == Effort, but no resource is requested.
Definition at line 206 of file kptschedule.h. |
|
Set if the requested resource is not available.
Definition at line 210 of file kptschedule.h. |
|
Set if the assigned resource is overbooked.
Definition at line 208 of file kptschedule.h. |
|
Set if the task cannot be scheduled to fullfill all the constraints.
Definition at line 212 of file kptschedule.h. |
|
startTime is the scheduled start time. It depends on constraints (i.e. ASAP/ALAP) and resource availability. It will always be later or equal to earliestStart Definition at line 192 of file kptschedule.h. |
The documentation for this class was generated from the following files: