kplato
KPlato::Effort Class Reference
#include <kptnode.h>
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 Duration & | effort (int use) |
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 (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
|
Return the duaration as deviation from in percent. This should be a negativ value. Definition at line 861 of file kptnode.cc. |
|
Return the duaration as the deviation from in percent. This should be a positive value. Definition at line 872 of file kptnode.cc. |
|
Set the optimistic duration should be a negativ value.
Definition at line 855 of file kptnode.cc. |
|
Set the pessimistic duration should be a positive value.
Definition at line 867 of file kptnode.cc. |
Member Data Documentation
|
No effort.
|
The documentation for this class was generated from the following files: