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

Method renameEMSSubComponents

src/model/CoilUserDefined.cpp:462–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460 }
461
462 void CoilUserDefined_Impl::renameEMSSubComponents() {
463 auto newName = nameString();
464 std::replace(newName.begin(), newName.end(), ' ', '_');
465 newName += "_";
466 overallModelSimulationProgramCallingManager().setName(newName + "overallModelSimulationProgramCallingManager");
467 modelSetupandSizingProgramCallingManager().setName(newName + "modelSetupandSizingProgramCallingManager");
468 overallSimulationProgram().setName(newName + "overallSimulationProgram");
469 initializationSimulationProgram().setName(newName + "initializationSimulationProgram");
470 airOutletTemperatureActuator().setName(newName + "airOutletTemperatureActuator");
471 airOutletHumidityRatioActuator().setName(newName + "airOutletHumidityRatioActuator");
472 airMassFlowRateActuator().setName(newName + "airMassFlowRateActuator");
473 plantMinimumMassFlowRateActuator().setName(newName + "plantMinimumMassFlowRateActuator");
474 plantMaximumMassFlowRateActuator().setName(newName + "plantMaximumMassFlowRateActuator");
475 plantDesignVolumeFlowRateActuator().setName(newName + "plantDesignVolumeFlowRateActuator");
476 plantMassFlowRateActuator().setName(newName + "plantMassFlowRateActuator");
477 plantOutletTemperatureActuator().setName(newName + "plantOutletTemperatureActuator");
478 }
479
480 ComponentType CoilUserDefined_Impl::componentType() const {
481 return ComponentType::Both; // TODO: Really not sure how to determine this...

Callers 1

TEST_FFunction · 0.80

Calls 4

replaceFunction · 0.85
beginMethod · 0.80
endMethod · 0.45
setNameMethod · 0.45

Tested by 1

TEST_FFunction · 0.64