Workloads
A Workload describes a finite capacity requirement of a Task, it is meant to be assigned to a single Resource. The total duration of a Workload is the same as that of its Task (all Workloads of a Task have the same duration), however a Workload can have Interrupts and varying Capacity requirements.
A Workload has the following elements:
- Aptitude is the Aptitude a resource needs to handle the Workload
- Capacity is the nominal Capacity required (and used) by the Workload, outside of Interrupts
- Workgroup is the optional Workgroup ID a Workload is currently assigned to (valid only if Resource is not defined)
- Resource is the optional Resource ID a Workload is currently assigned to (valid only if Workgroup is not defined)
- Interrupts is an optional Calendar of Interrupts
- Type is an optional Workload type specification (see below).
Either Workgroup or Resource must be set.
The Interrupts Calendar is expressed in times relative to the Start of the Task, and all Interrupts have to be contained within the Task duration.
The following values are accepted for the Type element:
- Range (default value) represents a standard Workload where the capacity applies only to the Task range (excluding Interrupts)
- IncStart adds capacity at the start of the Task (ignores Interrupts)
- IncEnd adds capacity at the end of the Task (ignores Interrupts)
- DecStart removes capacity at the start of the Task (ignores Interrupts)
- DecEnd removes capacity at the end of the Task (ignores Interrupts)
Inc/Dec types are applied up to the date specified in the CalendarOptions TimeLimit field (and not beyond).
Examples
"Resource": "R1-10",
"Aptitude": "Milling",
"Capacity": 1,
"Interrupts": [ [10,20,0] ]
}
"Workgroup": "CNC",
"Aptitude": "CNC Milling",
"Capacity": 1
}