functiongetOutput

Get the next occupancy or non-occupancy outputs

Extends from Modelica.Icons.Function (Icon for functions).

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.TimetCurrent model time
Modelica.Units.SI.TimeperiodPeriodicity
Real[nRow]occupancyOccupancy table, each entry switching occupancy on or off
BooleanfirstEntryOccupiedSet to true if first entry in occupancy denotes a changed from unoccupied to occupied
IntegernRowNumber of rows in the schedule

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.TimetOccTime when next occupancy starts
Modelica.Units.SI.TimetNonOccTime when next non-occupancy starts
BooleanoccupiedOutputs true if occupied at current time
Modelica.Units.SI.TimetNextTime of next switch in schedule