#include <kptschedule.h>
Public Types | |
| enum | Type { Expected =0 , Optimistic =1 , Pessimistic =2 } |
Public Member Functions | |
| Schedule (Schedule *parent) | |
| Schedule (TQString name, Type type, long id) | |
| TQString | name () const |
| void | setName (TQString name) |
| Type | type () const |
| void | setType (Type type) |
| void | setType (TQString type) |
| TQString | 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 TQDomElement &element) |
| virtual void | saveXML (TQDomElement &element) const |
| void | saveCommonXML (TQDomElement &element) const |
| void | saveAppointments (TQDomElement &element) const |
| TQPtrList< 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 TQStringList | overbookedResources () const |
| virtual EffortCostMap | plannedEffortCostPrDay (const TQDate &start, const TQDate &end) const |
| virtual Duration | plannedEffort () const |
| virtual Duration | plannedEffort (const TQDate &date) const |
| virtual Duration | plannedEffortTo (const TQDate &date) const |
| virtual Duration | actualEffort () const |
| virtual Duration | actualEffort (const TQDate &date) const |
| virtual Duration | actualEffortTo (const TQDate &date) const |
| virtual double | plannedCost () const |
| virtual double | plannedCost (const TQDate &date) const |
| virtual double | plannedCostTo (const TQDate &date) const |
| virtual double | actualCost () const |
| virtual double | actualCost (const TQDate &date) const |
| virtual double | actualCostTo (const TQDate &date) const |
| double | effortPerformanceIndex (const TQDate &, bool *) |
| double | costPerformanceIndex (const TQDate &, 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 (TQString ident) |
Protected Attributes | |
| TQString | m_name |
| Type | m_type |
| long | m_id |
| bool | m_deleted |
| TQPtrList< 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 |
| class | RecalculateProjectCmd |
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 54 of file kptschedule.h.
Member Enumeration Documentation
◆ Type
| enum KPlato::Schedule::Type |
Definition at line 58 of file kptschedule.h.
Constructor & Destructor Documentation
◆ Schedule() [1/3]
| KPlato::Schedule::Schedule | ( | ) |
Definition at line 37 of file kptschedule.cpp.
◆ Schedule() [2/3]
| KPlato::Schedule::Schedule | ( | Schedule * | parent | ) |
Definition at line 44 of file kptschedule.cpp.
◆ Schedule() [3/3]
| KPlato::Schedule::Schedule | ( | TQString | name, |
| Type | type, | ||
| long | id | ||
| ) |
Definition at line 60 of file kptschedule.cpp.
◆ ~Schedule()
| KPlato::Schedule::~Schedule | ( | ) |
Definition at line 72 of file kptschedule.cpp.
Member Function Documentation
◆ actualCost() [1/2]
|
virtual |
Actual cost is the sum total of the reported costs actually used for this node.
Definition at line 315 of file kptschedule.cpp.
◆ actualCost() [2/2]
|
virtual |
Actual cost on date.
Definition at line 325 of file kptschedule.cpp.
◆ actualCostTo()
|
virtual |
Actual cost up to and including date.
Definition at line 335 of file kptschedule.cpp.
◆ actualEffort() [1/2]
|
virtual |
Returns the total actual effort for this task (or subtasks)
Definition at line 255 of file kptschedule.cpp.
◆ actualEffort() [2/2]
|
virtual |
Returns the total actual effort for this task (or subtasks) on date.
Definition at line 265 of file kptschedule.cpp.
◆ actualEffortTo()
|
virtual |
Returns the total actual effort for this task (or subtasks) up to and including date.
Definition at line 275 of file kptschedule.cpp.
◆ add()
|
virtual |
Adds appointment to this schedule only.
Definition at line 177 of file kptschedule.cpp.
◆ addAppointment()
|
inlinevirtual |
Adds appointment to both this resource schedule and node schedule.
Reimplemented in KPlato::ResourceSchedule, and KPlato::NodeSchedule.
Definition at line 94 of file kptschedule.h.
◆ appointments()
|
inline |
Return the list of appointments.
Definition at line 90 of file kptschedule.h.
◆ calcResourceOverbooked()
|
virtual |
Definition at line 127 of file kptschedule.cpp.
◆ costPerformanceIndex()
|
inline |
Cost performance index.
Definition at line 149 of file kptschedule.h.
◆ effortPerformanceIndex()
|
inline |
Effort based performance index.
Definition at line 147 of file kptschedule.h.
◆ end()
|
inline |
Definition at line 163 of file kptschedule.h.
◆ findAppointment()
| Appointment * KPlato::Schedule::findAppointment | ( | Schedule * | resource, |
| Schedule * | node | ||
| ) |
Definition at line 205 of file kptschedule.cpp.
◆ id()
|
inline |
Definition at line 74 of file kptschedule.h.
◆ initiateCalculation()
|
virtual |
Definition at line 118 of file kptschedule.cpp.
◆ isDeleted()
|
virtual |
Definition at line 84 of file kptschedule.cpp.
◆ isOverbooked() [1/2]
|
inlinevirtual |
Definition at line 103 of file kptschedule.h.
◆ isOverbooked() [2/2]
|
inlinevirtual |
Definition at line 104 of file kptschedule.h.
◆ isScheduled()
|
inline |
Definition at line 160 of file kptschedule.h.
◆ loadXML()
|
virtual |
Definition at line 149 of file kptschedule.cpp.
◆ name()
|
inline |
Definition at line 68 of file kptschedule.h.
◆ node()
|
inlinevirtual |
Definition at line 82 of file kptschedule.h.
◆ normalRatePrHour()
|
inlinevirtual |
Definition at line 151 of file kptschedule.h.
◆ overbookedResources()
|
virtual |
Definition at line 138 of file kptschedule.cpp.
◆ parent()
|
inline |
Definition at line 77 of file kptschedule.h.
◆ plannedCost() [1/2]
|
virtual |
Planned cost is the sum total of all resources and other costs planned for this node.
Definition at line 285 of file kptschedule.cpp.
◆ plannedCost() [2/2]
|
virtual |
Planned cost on date.
Definition at line 295 of file kptschedule.cpp.
◆ plannedCostTo()
|
virtual |
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 305 of file kptschedule.cpp.
◆ plannedEffort() [1/2]
|
virtual |
Returns the total planned effort for this task (or subtasks)
Definition at line 225 of file kptschedule.cpp.
◆ plannedEffort() [2/2]
|
virtual |
Returns the total planned effort for this task (or subtasks) on date.
Definition at line 235 of file kptschedule.cpp.
◆ plannedEffortCostPrDay()
|
virtual |
Definition at line 214 of file kptschedule.cpp.
◆ plannedEffortTo()
|
virtual |
Returns the planned effort up to and including date.
Definition at line 245 of file kptschedule.cpp.
◆ printDebug()
|
virtual |
Definition at line 611 of file kptschedule.cpp.
◆ removeAppointment()
| void KPlato::Schedule::removeAppointment | ( | Appointment * | appointment | ) |
removes appointment and deletes it (independent of setAutoDelete)
Definition at line 188 of file kptschedule.cpp.
◆ resource()
|
inlinevirtual |
Definition at line 81 of file kptschedule.h.
◆ saveAppointments()
| void KPlato::Schedule::saveAppointments | ( | TQDomElement & | element | ) | const |
Definition at line 169 of file kptschedule.cpp.
◆ saveCommonXML()
| void KPlato::Schedule::saveCommonXML | ( | TQDomElement & | element | ) | const |
Definition at line 162 of file kptschedule.cpp.
◆ saveXML()
|
virtual |
Definition at line 156 of file kptschedule.cpp.
◆ setDeleted()
|
virtual |
Definition at line 79 of file kptschedule.cpp.
◆ setEarliestStart()
|
inline |
Definition at line 153 of file kptschedule.h.
◆ setId()
|
inline |
Definition at line 75 of file kptschedule.h.
◆ setLatestFinish()
|
inline |
Definition at line 154 of file kptschedule.h.
◆ setName()
|
inline |
Definition at line 69 of file kptschedule.h.
◆ setParent()
| void KPlato::Schedule::setParent | ( | Schedule * | parent | ) |
Definition at line 75 of file kptschedule.cpp.
◆ setScheduled()
|
inline |
Definition at line 159 of file kptschedule.h.
◆ setType() [1/2]
| void KPlato::Schedule::setType | ( | TQString | type | ) |
Definition at line 88 of file kptschedule.cpp.
◆ setType() [2/2]
|
inline |
Definition at line 71 of file kptschedule.h.
◆ start()
|
inline |
Definition at line 162 of file kptschedule.h.
◆ takeAppointment()
| void KPlato::Schedule::takeAppointment | ( | Appointment * | appointment | ) |
removes appointment without deleting it (independent of setAutoDelete)
Definition at line 193 of file kptschedule.cpp.
◆ type()
|
inline |
Definition at line 70 of file kptschedule.h.
◆ typeToString()
| TQString KPlato::Schedule::typeToString | ( | bool | translate = false | ) | const |
Definition at line 98 of file kptschedule.cpp.
Friends And Related Symbol Documentation
◆ Node
|
friend |
Definition at line 174 of file kptschedule.h.
◆ Project
|
friend |
Definition at line 176 of file kptschedule.h.
◆ RecalculateProjectCmd
|
friend |
Definition at line 178 of file kptschedule.h.
◆ Resource
|
friend |
Definition at line 177 of file kptschedule.h.
◆ Task
|
friend |
Definition at line 175 of file kptschedule.h.
Member Data Documentation
◆ duration
|
protected |
duration is the scheduled duration which depends on e.g.
estimated effort, allocated resources and risk
Definition at line 206 of file kptschedule.h.
◆ earliestStart
|
protected |
earliestStart is calculated by PERT/CPM.
A task may be scheduled to start later because of constraints or resource availability etc.
Definition at line 184 of file kptschedule.h.
◆ endTime
|
protected |
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 201 of file kptschedule.h.
◆ inCriticalPath
|
protected |
Definition at line 221 of file kptschedule.h.
◆ latestFinish
|
protected |
latestFinish is calculated by PERT/CPM.
A task may be scheduled to finish earlier because of constraints or resource availability etc.
Definition at line 190 of file kptschedule.h.
◆ m_appointments
|
protected |
Definition at line 171 of file kptschedule.h.
◆ m_deleted
|
protected |
Definition at line 169 of file kptschedule.h.
◆ m_id
|
protected |
Definition at line 168 of file kptschedule.h.
◆ m_name
|
protected |
Definition at line 166 of file kptschedule.h.
◆ m_parent
|
protected |
Definition at line 172 of file kptschedule.h.
◆ m_type
|
protected |
Definition at line 167 of file kptschedule.h.
◆ notScheduled
|
protected |
Set if the node has not been scheduled.
Definition at line 217 of file kptschedule.h.
◆ resourceError
|
protected |
Set if EffortType == Effort, but no resource is requested.
Definition at line 209 of file kptschedule.h.
◆ resourceNotAvailable
|
protected |
Set if the requested resource is not available.
Definition at line 213 of file kptschedule.h.
◆ resourceOverbooked
|
protected |
Set if the assigned resource is overbooked.
Definition at line 211 of file kptschedule.h.
◆ schedulingError
|
protected |
Set if the task cannot be scheduled to fullfill all the constraints.
Definition at line 215 of file kptschedule.h.
◆ startTime
|
protected |
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 195 of file kptschedule.h.
◆ workEndTime
|
protected |
Definition at line 220 of file kptschedule.h.
◆ workStartTime
|
protected |
Definition at line 219 of file kptschedule.h.
The documentation for this class was generated from the following files:
