Sha256: 9cd63b1ed666650f5b2f9e88b15c1cfc710d5ba55af3addde924902ffedc3bd8

Contents?: true

Size: 1.53 KB

Versions: 4

Compression:

Stored size: 1.53 KB

Contents

project limits "Limits" "1.0" 2007-03-01 +1y

# Default limit that affects all subsequently defined resources
limits { weeklymax 4d }

# *** EXAMPLE: 1 +
# *** EXAMPLE: 2 +
# *** EXAMPLE: 3 +
# *** EXAMPLE: 4 +
resource r1 "R1" { 
  # Limit the usage of this resource to a maximum of 2 hours per day,
  # 6 hours per week and 2.5 days per month.
  limits { dailymax 2h weeklymax 6h monthlymax 2.5d }
}

resource r2 "R2"

# *** EXAMPLE: 2 -
# *** EXAMPLE: 3 -
# *** EXAMPLE: 4 -
task t1 "Task 1" {
  start 2007-03-30
  effort 10d
  allocate r2
  limits { dailymax 3h }
}
# *** EXAMPLE: 4 +
task t2 "Task 2" {
  start 2007-03-30
  effort 10d
  allocate r2 
  limits { dailymin 5h }
}
# *** EXAMPLE: 1 -
# *** EXAMPLE: 2 +
# *** EXAMPLE: 4 -
task t3 "Task 3" {
  start 2007-03-30
  effort 10d
  allocate r2 
  limits { weeklymax 2d }
}
# *** EXAMPLE: 2 -
# *** EXAMPLE: 3 +
task t4 "Task 4" {
  start 2007-03-30
  effort 10d
  allocate r2 
  limits { monthlymax 1w }
}
# *** EXAMPLE: 1 +
# *** EXAMPLE: 2 +
# *** EXAMPLE: 4 +
task t5 "Task 5" {
  start 2007-03-01
  duration 60d
  # allocation is subject to resource limits
  allocate r1
}
task t6 "Task 6" {
  start 2007-03-01
  duration 60d
  # limits can also be specified per allocation
  allocate r2
  limits { dailymax 4h weeklymax 3d monthlymax 2w }
}
# *** EXAMPLE: 1 -
# *** EXAMPLE: 2 -
# *** EXAMPLE: 3 -
# *** EXAMPLE: 4 -
# *** EXAMPLE: 5 +
task t7 "Task 7" {
  start 2007-06-20
  duration 20d
  allocate r1, r2
  # Limit r1 to half days only
  limits { dailymax 4h { resources r1 } }
}
# *** EXAMPLE: 5 -

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
taskjuggler-0.0.8 test/TestSuite/Syntax/Correct/Limits-1.tjp
taskjuggler-0.0.7 test/TestSuite/Syntax/Correct/Limits-1.tjp
taskjuggler-0.0.6 test/TestSuite/Syntax/Correct/Limits-1.tjp
taskjuggler-0.0.5 test/TestSuite/Syntax/Correct/Limits-1.tjp