rate
>minslackrate
<rate >
| |||
---|---|---|---|
Description | Specifies the minimum percentage of slack a task path can have before it is marked as critical. A path is any list of explicitely or implicitely connected tasks measured from first task to last task. The slack is the time between start of the first task and end of the last task that is not covered by any task of the path. | ||
Attributes | Name | Type | Description |
rate | REAL | ||
Context | scenario, | ||
Inheritable | Yes | Scenario Spec. | Yes |
project prj "Critical Path Example" "1.0" 2006-08-22 +1m { scenario plan "Planned Scenario" { # All pathes with less than 15% slack should be marked as # critical. minslackrate 15.0 } } task t1 "Task 1" { start 2006-08-22 duration 2d } task t2 "Task 2" { depends t1 { gaplength 2d } duration 3d } task t3 "Task 3" { depends t1 { gaplength 1d } duration 4d } taskreport "Tasks" { columns no, name, chart } htmltaskreport "CriticalTasks.html" { # Generate a list of all tasks that are on a critical path. hidetask ~isOnCriticalPath(plan) }