kplato

KPlato::Effort Class Reference

#include <kptnode.h>

List of all members.


Detailed Description

Any Node will store how much time it takes to complete the node (typically a Task) in the traditional scheduling software the effort which is needed to complete the node is not simply a timespan but is stored as an optimistic, a pessimistic and an expected timespan.

Definition at line 554 of file kptnode.h.


Public Types

enum  Type { Type_Effort = 0, Type_FixedDuration = 1 }
enum  Use { Use_Expected = 0, Use_Optimistic = 1, Use_Pessimistic = 2 }

Public Member Functions

 Effort (Duration e=Duration::zeroDuration, Duration p=Duration::zeroDuration, Duration o=Duration::zeroDuration)
 Effort (double e, double p=0, double o=0)
 Effort (const Effort &effort)
 ~Effort ()
Type type () const
void setType (Type type)
void setType (QString type)
QString typeToString () const
const Durationeffort (int use)
const Durationoptimistic () const
const Durationpessimistic () const
const Durationexpected () const
void set (Duration e, Duration p=Duration::zeroDuration, Duration o=Duration::zeroDuration)
void set (int e, int p=-1, int o=-1)
void set (unsigned days, unsigned hours, unsigned minutes)
void expectedEffort (unsigned *days, unsigned *hours, unsigned *minutes)
bool load (QDomElement &element)
void save (QDomElement &element) const
void setOptimisticRatio (int percent)
int optimisticRatio () const
void setPessimisticRatio (int percent)
int pessimisticRatio () const
void printDebug (QCString indent)

Static Public Attributes

static const Effort zeroEffort

Member Function Documentation

int KPlato::Effort::optimisticRatio  )  const
 

Return the duaration as deviation from in percent.

This should be a negativ value.

Definition at line 861 of file kptnode.cc.

int KPlato::Effort::pessimisticRatio  )  const
 

Return the duaration as the deviation from in percent.

This should be a positive value.

Definition at line 872 of file kptnode.cc.

void KPlato::Effort::setOptimisticRatio int  percent  ) 
 

Set the optimistic duration should be a negativ value.

Definition at line 855 of file kptnode.cc.

void KPlato::Effort::setPessimisticRatio int  percent  ) 
 

Set the pessimistic duration should be a positive value.

Definition at line 867 of file kptnode.cc.


Member Data Documentation

const Effort KPlato::Effort::zeroEffort [static]
 

No effort.

Definition at line 619 of file kptnode.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys