kplato

#include <kptnode.h>

Public Types

enum  Type { Type_Effort = 0 , Type_FixedDuration = 1 }
enum  Risktype { Risk_None , Risk_Low , Risk_High }
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)
Type type () const
void setType (Type type)
void setType (TQString type)
TQString typeToString () const
Risktype risktype () const
void setRisktype (Risktype type)
void setRisktype (TQString type)
TQString risktypeToString () const
Duration effort (int use) const
const Duration & optimistic () const
const Duration & pessimistic () const
const Duration & expected () 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 (TQDomElement &element)
void save (TQDomElement &element) const
void setOptimisticRatio (int percent)
int optimisticRatio () const
void setPessimisticRatio (int percent)
int pessimisticRatio () const
Duration variance () const
Duration pertExpected () const
Duration pertOptimistic () const
Duration pertPessimistic () const
void printDebug (TQCString indent)

Static Public Attributes

static const Effort zeroEffort

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 556 of file kptnode.h.

Member Enumeration Documentation

◆ Risktype

enum KPlato::Effort::Risktype

Definition at line 574 of file kptnode.h.

◆ Type

enum KPlato::Effort::Type

Definition at line 566 of file kptnode.h.

◆ Use

enum KPlato::Effort::Use

Definition at line 580 of file kptnode.h.

Constructor & Destructor Documentation

◆ Effort() [1/2]

Definition at line 778 of file kptnode.cpp.

◆ Effort() [2/2]

KPlato::Effort::Effort ( const Effort & effort)

Definition at line 786 of file kptnode.cpp.

◆ ~Effort()

KPlato::Effort::~Effort ( )

Definition at line 792 of file kptnode.cpp.

Member Function Documentation

◆ effort()

Duration KPlato::Effort::effort ( int use) const

Definition at line 852 of file kptnode.cpp.

◆ expected()

const Duration & KPlato::Effort::expected ( ) const
inline

Definition at line 584 of file kptnode.h.

◆ expectedEffort()

void KPlato::Effort::expectedEffort ( unsigned * days,
unsigned * hours,
unsigned * minutes )

Definition at line 824 of file kptnode.cpp.

◆ load()

bool KPlato::Effort::load ( TQDomElement & element)

Definition at line 863 of file kptnode.cpp.

◆ optimistic()

const Duration & KPlato::Effort::optimistic ( ) const
inline

Definition at line 582 of file kptnode.h.

◆ optimisticRatio()

int KPlato::Effort::optimisticRatio ( ) const

Return the "optimistic" duration as deviation from "expected" in percent.

This should be a negativ value.

Definition at line 926 of file kptnode.cpp.

◆ pertExpected()

Duration KPlato::Effort::pertExpected ( ) const

Definition at line 831 of file kptnode.cpp.

◆ pertOptimistic()

Duration KPlato::Effort::pertOptimistic ( ) const

Definition at line 839 of file kptnode.cpp.

◆ pertPessimistic()

Duration KPlato::Effort::pertPessimistic ( ) const

Definition at line 845 of file kptnode.cpp.

◆ pessimistic()

const Duration & KPlato::Effort::pessimistic ( ) const
inline

Definition at line 583 of file kptnode.h.

◆ pessimisticRatio()

int KPlato::Effort::pessimisticRatio ( ) const

Return the "pessimistic" duration as the deviation from "expected" in percent.

This should be a positive value.

Definition at line 937 of file kptnode.cpp.

◆ printDebug()

void KPlato::Effort::printDebug ( TQCString indent)

Definition at line 996 of file kptnode.cpp.

◆ risktype()

Risktype KPlato::Effort::risktype ( ) const
inline

Definition at line 575 of file kptnode.h.

◆ risktypeToString()

TQString KPlato::Effort::risktypeToString ( ) const

Definition at line 900 of file kptnode.cpp.

◆ save()

void KPlato::Effort::save ( TQDomElement & element) const

Definition at line 872 of file kptnode.cpp.

◆ set() [1/3]

void KPlato::Effort::set ( Duration e,
Duration p = Duration::zeroDuration,
Duration o = Duration::zeroDuration )

Definition at line 799 of file kptnode.cpp.

◆ set() [2/3]

void KPlato::Effort::set ( int e,
int p = -1,
int o = -1 )

Definition at line 806 of file kptnode.cpp.

◆ set() [3/3]

void KPlato::Effort::set ( unsigned days,
unsigned hours,
unsigned minutes )

Definition at line 818 of file kptnode.cpp.

◆ setOptimisticRatio()

void KPlato::Effort::setOptimisticRatio ( int percent)

Set the optimistic duration.

Parameters
percentshould be a negativ value.

Definition at line 920 of file kptnode.cpp.

◆ setPessimisticRatio()

void KPlato::Effort::setPessimisticRatio ( int percent)

Set the pessimistic duration.

Parameters
percentshould be a positive value.

Definition at line 932 of file kptnode.cpp.

◆ setRisktype() [1/2]

void KPlato::Effort::setRisktype ( Risktype type)
inline

Definition at line 576 of file kptnode.h.

◆ setRisktype() [2/2]

void KPlato::Effort::setRisktype ( TQString type)

Definition at line 911 of file kptnode.cpp.

◆ setType() [1/2]

void KPlato::Effort::setType ( TQString type)

Definition at line 891 of file kptnode.cpp.

◆ setType() [2/2]

void KPlato::Effort::setType ( Type type)
inline

Definition at line 570 of file kptnode.h.

◆ type()

Type KPlato::Effort::type ( ) const
inline

Definition at line 569 of file kptnode.h.

◆ typeToString()

TQString KPlato::Effort::typeToString ( ) const

Definition at line 882 of file kptnode.cpp.

◆ variance()

Duration KPlato::Effort::variance ( ) const

Definition at line 828 of file kptnode.cpp.

Member Data Documentation

◆ zeroEffort

const Effort KPlato::Effort::zeroEffort
static

No effort.

Definition at line 618 of file kptnode.h.


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