Lines Matching refs:stateCoeffs
40 std::string powerEntityName, std::map<std::string, int32_t> stateCoeffs) { in createEntityConsumer() argument
41 return createMeterAndEntityConsumer(p, type, name, {}, powerEntityName, stateCoeffs); in createEntityConsumer()
47 std::map<std::string, int32_t> stateCoeffs) { in createMeterAndEntityConsumer() argument
51 if (ret->addEnergyMeter(channelNames) && ret->addPowerEntity(powerEntityName, stateCoeffs)) { in createMeterAndEntityConsumer()
62 std::map<std::string, int32_t> stateCoeffs) { in createMeterAndAttrConsumer() argument
66 if (ret->addEnergyMeter(channelNames) && ret->addAttribution(paths, stateCoeffs)) { in createMeterAndAttrConsumer()
92 std::map<std::string, int32_t> stateCoeffs) { in addPowerEntity() argument
93 if (powerEntityName.empty() || stateCoeffs.empty()) { in addPowerEntity()
104 if (stateCoeffs.count(s.name)) { in addPowerEntity()
105 mCoefficients.emplace(s.id, stateCoeffs.at(s.name)); in addPowerEntity()
112 return (mCoefficients.size() == stateCoeffs.size()); in addPowerEntity()
116 std::map<std::string, int32_t> stateCoeffs) { in addAttribution() argument
129 if (stateCoeffs.empty()) { in addAttribution()
135 if (stateCoeffs.count(stateName)) { in addAttribution()
138 mCoefficients.emplace(stateId, stateCoeffs.at(stateName)); in addAttribution()
144 return (mCoefficients.size() == stateCoeffs.size()); in addAttribution()