| 69 | } |
| 70 | |
| 71 | boost::optional<openstudio::model::Model> OSRunner::lastOpenStudioModel() const { |
| 72 | if (m_lastOpenStudioModel) { |
| 73 | return m_lastOpenStudioModel; |
| 74 | } |
| 75 | |
| 76 | if (m_lastOpenStudioModelPath) { |
| 77 | m_lastOpenStudioModel = model::Model::load(*m_lastOpenStudioModelPath); |
| 78 | } |
| 79 | |
| 80 | return m_lastOpenStudioModel; |
| 81 | } |
| 82 | |
| 83 | boost::optional<openstudio::Workspace> OSRunner::lastEnergyPlusWorkspace() const { |
| 84 | if (m_lastEnergyPlusWorkspace) { |
no outgoing calls
no test coverage detected