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

Method runPeriod

src/model/Model.cpp:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 }
512
513 boost::optional<RunPeriod> Model_Impl::runPeriod() const {
514 if (m_cachedRunPeriod) {
515 return m_cachedRunPeriod;
516 }
517
518 boost::optional<RunPeriod> result = this->model().getOptionalUniqueModelObject<RunPeriod>();
519 if (result) {
520 m_cachedRunPeriod = result;
521 result->getImpl<RunPeriod_Impl>()->RunPeriod_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedRunPeriod>(
522 const_cast<openstudio::model::detail::Model_Impl*>(this));
523 }
524
525 return m_cachedRunPeriod;
526 }
527
528 boost::optional<RunPeriodControlDaylightSavingTime> Model_Impl::runPeriodControlDaylightSavingTime() const {
529 if (m_cachedRunPeriodControlDaylightSavingTime) {

Callers 7

withinRunPeriodMethod · 0.80
overlapsRunPeriodMethod · 0.80
modelPeakDemandMethod · 0.80
translateModelPrivateMethod · 0.80
translateModelMethod · 0.80

Calls 1

modelMethod · 0.95

Tested by

no test coverage detected