KPlato::NodeSchedule Class Reference

#include <kptschedule.h>

Inherits KPlato::Schedule.

Inherited by KPlato::MainSchedule.

Inheritance diagram for KPlato::NodeSchedule:

[legend]
List of all members.

Public Member Functions

 NodeSchedule ()
 NodeSchedule (Node *node, QString name, Schedule::Type type, long id)
 NodeSchedule (Schedule *parent, Node *node)
virtual ~NodeSchedule ()
virtual bool isDeleted () const
void setDeleted (bool on)
virtual bool loadXML (const QDomElement &element)
virtual void saveXML (QDomElement &element) const
virtual void addAppointment (Schedule *resource, DateTime &start, DateTime &end, double load=100)
 Adds appointment to both this resource schedule and node schedule.
virtual void takeAppointment (Appointment *appointment)
 removes appointment without deleting it.
virtual Nodenode () const
virtual void setNode (Node *n)
virtual void printDebug (QString ident)

Protected Member Functions

void init ()

Private Attributes

Nodem_node

Detailed Description

NodeSchedule holds scheduling information for a node (task).

Definition at line 231 of file kptschedule.h.


Constructor & Destructor Documentation

KPlato::NodeSchedule::NodeSchedule (  ) 

Definition at line 372 of file kptschedule.cc.

References init().

KPlato::NodeSchedule::NodeSchedule ( Node node,
QString  name,
Schedule::Type  type,
long  id 
)

Definition at line 380 of file kptschedule.cc.

References init().

KPlato::NodeSchedule::NodeSchedule ( Schedule parent,
Node node 
)

Definition at line 388 of file kptschedule.cc.

References init().

KPlato::NodeSchedule::~NodeSchedule (  )  [virtual]

Definition at line 397 of file kptschedule.cc.


Member Function Documentation

virtual bool KPlato::NodeSchedule::isDeleted (  )  const [inline, virtual]

Reimplemented from KPlato::Schedule.

Reimplemented in KPlato::MainSchedule.

Definition at line 239 of file kptschedule.h.

References KPlato::Schedule::isDeleted(), and KPlato::Schedule::m_parent.

void KPlato::NodeSchedule::setDeleted ( bool  on  )  [virtual]

Reimplemented from KPlato::Schedule.

Definition at line 412 of file kptschedule.cc.

References KPlato::Schedule::m_appointments, and KPlato::Schedule::m_deleted.

bool KPlato::NodeSchedule::loadXML ( const QDomElement &  element  )  [virtual]

Reimplemented from KPlato::Schedule.

Definition at line 426 of file kptschedule.cc.

References KPlato::Schedule::duration, KPlato::Schedule::earliestStart, KPlato::Schedule::endTime, KPlato::Duration::fromString(), KPlato::DateTime::fromString(), KPlato::Schedule::inCriticalPath, KPlato::Schedule::latestFinish, KPlato::Schedule::loadXML(), KPlato::Schedule::notScheduled, KPlato::Schedule::resourceError, KPlato::Schedule::resourceNotAvailable, KPlato::Schedule::resourceOverbooked, KPlato::Schedule::schedulingError, KPlato::Schedule::startTime, KPlato::Schedule::workEndTime, and KPlato::Schedule::workStartTime.

void KPlato::NodeSchedule::saveXML ( QDomElement &  element  )  const [virtual]

Reimplemented from KPlato::Schedule.

Reimplemented in KPlato::MainSchedule.

Definition at line 461 of file kptschedule.cc.

References KPlato::Schedule::duration, KPlato::Schedule::earliestStart, KPlato::Schedule::endTime, KPlato::Schedule::inCriticalPath, KPlato::Schedule::latestFinish, KPlato::Schedule::notScheduled, KPlato::Schedule::resourceError, KPlato::Schedule::resourceNotAvailable, KPlato::Schedule::resourceOverbooked, KPlato::Schedule::saveCommonXML(), KPlato::Schedule::schedulingError, KPlato::Schedule::startTime, KPlato::Duration::toString(), KPlato::Schedule::workEndTime, and KPlato::Schedule::workStartTime.

void KPlato::NodeSchedule::addAppointment ( Schedule resource,
DateTime start,
DateTime end,
double  load = 100 
) [virtual]

Adds appointment to both this resource schedule and node schedule.

Reimplemented from KPlato::Schedule.

Definition at line 491 of file kptschedule.cc.

References KPlato::Schedule::add(), KPlato::Appointment::addInterval(), KPlato::Schedule::end(), KPlato::Schedule::findAppointment(), KPlato::Schedule::resource(), and KPlato::Schedule::start().

void KPlato::NodeSchedule::takeAppointment ( Appointment appointment  )  [virtual]

removes appointment without deleting it.

Reimplemented from KPlato::Schedule.

Definition at line 505 of file kptschedule.cc.

References KPlato::Schedule::m_appointments, KPlato::Appointment::resource(), and KPlato::Schedule::takeAppointment().

virtual Node* KPlato::NodeSchedule::node (  )  const [inline, virtual]

Reimplemented from KPlato::Schedule.

Definition at line 250 of file kptschedule.h.

References m_node.

virtual void KPlato::NodeSchedule::setNode ( Node n  )  [inline, virtual]

Definition at line 251 of file kptschedule.h.

References m_node.

void KPlato::NodeSchedule::init (  )  [protected]

Definition at line 402 of file kptschedule.cc.

References KPlato::Schedule::inCriticalPath, KPlato::Schedule::notScheduled, KPlato::Schedule::resourceError, KPlato::Schedule::resourceNotAvailable, KPlato::Schedule::resourceOverbooked, and KPlato::Schedule::schedulingError.

Referenced by KPlato::MainSchedule::MainSchedule(), and NodeSchedule().

void KPlato::NodeSchedule::printDebug ( QString  ident  )  [virtual]

Reimplemented from KPlato::Schedule.

Reimplemented in KPlato::MainSchedule.

Definition at line 683 of file kptschedule.cc.

References KPlato::Schedule::duration, KPlato::Schedule::earliestStart, KPlato::Schedule::endTime, KPlato::Schedule::inCriticalPath, KPlato::Schedule::latestFinish, KPlato::Schedule::m_appointments, KPlato::Schedule::m_parent, KPlato::Schedule::notScheduled, KPlato::Schedule::overbookedResources(), KPlato::Schedule::printDebug(), KPlato::Schedule::resourceError, KPlato::Schedule::resourceNotAvailable, KPlato::Schedule::resourceOverbooked, KPlato::Schedule::schedulingError, KPlato::Duration::seconds(), KPlato::Schedule::startTime, KPlato::Duration::toString(), KPlato::Schedule::workEndTime, and KPlato::Schedule::workStartTime.


Member Data Documentation

Node* KPlato::NodeSchedule::m_node [private]

Definition at line 257 of file kptschedule.h.

Referenced by node(), and setNode().


The documentation for this class was generated from the following files:
Generated on Wed Nov 22 23:21:51 2006 for KPlato by  doxygen 1.5.1-p1