std::shared_ptr<XmlNode> DomainTemperature_002::getXml(UIntN domainIndex) { auto root = XmlNode::createWrapperElement("temperature_control"); root->addChild(XmlNode::createDataElement("control_knob_version", "002")); root->addChild(getTemperatureStatus(getParticipantIndex(), domainIndex).getXml()); root->addChild(getTemperatureThresholds(getParticipantIndex(), domainIndex).getXml()); return root; }
int HardwareState::getStatus(int module){ switch (module){ case HW_ENERGY_MODULE: return getEnergyStatus(); case HW_PAYLOAD_MODULE: return getPayloadStatus(); case HW_SBAND_MODULE: return getSbandStatus(); case HW_SOLARP_MODULE: return getSolarPanelsStatus(); case HW_TEMP_MODULE: return getTemperatureStatus(); case HW_TERMAL_CTRL_MODULE: return getThermalControlStatus(); } }