kplato

KPlato::MainSchedule Class Reference

#include <kptschedule.h>

Inheritance diagram for KPlato::MainSchedule:
KPlato::NodeSchedule KPlato::Schedule

Public Member Functions

 MainSchedule (Node *node, TQString name, Schedule::Type type, long id)
 
virtual bool isDeleted () const
 
virtual bool loadXML (const TQDomElement &element, Project &project)
 
virtual void saveXML (TQDomElement &element) const
 
virtual void printDebug (TQString ident)
 
- Public Member Functions inherited from KPlato::NodeSchedule
 NodeSchedule (Node *node, TQString name, Schedule::Type type, long id)
 
 NodeSchedule (Schedule *parent, Node *node)
 
void setDeleted (bool on)
 
virtual bool loadXML (const TQDomElement &element)
 
virtual void addAppointment (Schedule *resource, DateTime &start, DateTime &end, double load=100)
 
virtual Node * node () const
 
virtual void setNode (Node *n)
 
- Public Member Functions inherited from KPlato::Schedule
 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 Resource * resource () const
 
void saveCommonXML (TQDomElement &element) const
 
void saveAppointments (TQDomElement &element) const
 
TQPtrList< Appointment > & appointments ()
 
virtual bool add (Appointment *appointment)
 
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
 

Additional Inherited Members

- Public Types inherited from KPlato::Schedule
enum  Type { Expected =0 , Optimistic =1 , Pessimistic =2 }
 
- Protected Member Functions inherited from KPlato::NodeSchedule
void init ()
 
- Protected Attributes inherited from KPlato::Schedule
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
 

Detailed Description

MainSchedule holds scheduling information for the main project node.

Definition at line 303 of file kptschedule.h.

Constructor & Destructor Documentation

◆ MainSchedule() [1/2]

KPlato::MainSchedule::MainSchedule ( )

Definition at line 555 of file kptschedule.cpp.

◆ MainSchedule() [2/2]

KPlato::MainSchedule::MainSchedule ( Node *  node,
TQString  name,
Schedule::Type  type,
long  id 
)

Definition at line 561 of file kptschedule.cpp.

◆ ~MainSchedule()

KPlato::MainSchedule::~MainSchedule ( )

Definition at line 567 of file kptschedule.cpp.

Member Function Documentation

◆ isDeleted()

virtual bool KPlato::MainSchedule::isDeleted ( ) const
inlinevirtual

Reimplemented from KPlato::NodeSchedule.

Definition at line 309 of file kptschedule.h.

◆ loadXML()

bool KPlato::MainSchedule::loadXML ( const TQDomElement &  element,
Project &  project 
)
virtual

Definition at line 571 of file kptschedule.cpp.

◆ printDebug()

void KPlato::MainSchedule::printDebug ( TQString  ident)
virtual

Reimplemented from KPlato::NodeSchedule.

Definition at line 658 of file kptschedule.cpp.

◆ saveXML()

void KPlato::MainSchedule::saveXML ( TQDomElement &  element) const
virtual

Reimplemented from KPlato::NodeSchedule.

Definition at line 603 of file kptschedule.cpp.


The documentation for this class was generated from the following files: