MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / getScheduleTypeKeys

Method getScheduleTypeKeys

src/model/ThermostatSetpointDualSetpoint.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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>(

Callers

nothing calls this directly

Calls 5

beginMethod · 0.80
ScheduleTypeKeyClass · 0.70
handleMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected