1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Quintiq file version 2.0
| #parent: #root
| Method SetShift (
| ShiftPattern shiftpattern
| )
| {
| Description: 'Updates the shift pattern for this unit period.'
| TextBody:
| [*
| // Note: Setting 'isbatcheditshiftpattern' to true, even though this is not batch edit,
| // in order to ensure that the method uses the given shift pattern. Otherwise, the old one would be kept.
| UnitAvailability::CreateOrUpdateForUnitPeriodTime( this,
| false, this.Period_MP().TimeUnit(), this.Maintenance(),
| false, this.Efficiency(),
| false, this.Allocation(),
| true, shiftpattern,
| false, this.MaximumLoadPercentage(),
| false, this.NrOfOpen(),
| false, // set isthisperiodonwards to false in order to update only the current unit period.
| false, this.MinimumLoadThreshold() );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|