functiongetOutput
Get the next occupancy or non-occupancy outputs
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | t | Current model time | |
| Modelica.Units.SI.Time | period | Periodicity | |
| Real[nRow] | occupancy | Occupancy table, each entry switching occupancy on or off | |
| Boolean | firstEntryOccupied | Set to true if first entry in occupancy denotes a changed from unoccupied to occupied | |
| Integer | nRow | Number of rows in the schedule |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Time | tOcc | Time when next occupancy starts | |
| Modelica.Units.SI.Time | tNonOcc | Time when next non-occupancy starts | |
| Boolean | occupied | Outputs true if occupied at current time | |
| Modelica.Units.SI.Time | tNext | Time of next switch in schedule |