Ticket #4636: energymode.mo

File energymode.mo, 841 bytes (added by Per Östlund, 7 years ago)
Line 
1block TimeProgramEnergyModeFunctionality
2 ScheduleWeekly weeklySchedule(inputIntervalsAndValue = PAR_WSCH);
3 parameter Real[:, 5] PAR_WSCH = {weeklySchedule.startTime, {0, 7, 30, 0, 3.0}};
4end TimeProgramEnergyModeFunctionality;
5
6partial block PartialFunction
7 replaceable PartialFunctionality functionality;
8end PartialFunction;
9
10partial block PartialFunctionality end PartialFunctionality;
11
12block ScheduleWeekly
13 parameter Real[5] startTime = {0, 0, 0, 0, 0.0};
14 parameter Real[:, 5] inputIntervalsAndValue = {{0, 8, 11, 0, 0.0}, {0, 8, 11, 0, 0.5}} ;
15end ScheduleWeekly;
16
17block TimeProgramEnergyMode
18 extends PartialFunction(redeclare TimeProgramEnergyModeFunctionality functionality(PAR_WSCH = PAR_WSCH));
19 parameter Real[:, 5] PAR_WSCH = {functionality.weeklySchedule.startTime, {0, 7, 30, 0, 3.0}};
20end TimeProgramEnergyMode;