| 45 | } |
| 46 | |
| 47 | std::vector<ScheduleTypeKey> ThermostatSetpointDualSetpoint_Impl::getScheduleTypeKeys(const Schedule& schedule) const { |
| 48 | std::vector<ScheduleTypeKey> result; |
| 49 | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); |
| 50 | UnsignedVector::const_iterator b(fieldIndices.begin()); |
| 51 | UnsignedVector::const_iterator e(fieldIndices.end()); |
| 52 | if (std::find(b, e, OS_ThermostatSetpoint_DualSetpointFields::HeatingSetpointTemperatureScheduleName) != e) { |
| 53 | result.push_back(ScheduleTypeKey("ThermostatSetpointDualSetpoint", "Heating Setpoint Temperature")); |
| 54 | } |
| 55 | if (std::find(b, e, OS_ThermostatSetpoint_DualSetpointFields::CoolingSetpointTemperatureScheduleName) != e) { |
| 56 | result.push_back(ScheduleTypeKey("ThermostatSetpointDualSetpoint", "Cooling Setpoint Temperature")); |
| 57 | } |
| 58 | return result; |
| 59 | } |
| 60 | |
| 61 | boost::optional<Schedule> ThermostatSetpointDualSetpoint_Impl::heatingSetpointTemperatureSchedule() const { |
| 62 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
nothing calls this directly
no test coverage detected