38#ifndef __SIM_MATHEXPR_POWERMODEL_PM_HH__
39#define __SIM_MATHEXPR_POWERMODEL_PM_HH__
41#include <unordered_map>
43#include "params/MathExprPowerModel.hh"
63 typedef MathExprPowerModelParams
Params;
106 std::unordered_map<std::string, const statistics::Info*>
statsMap;
MathExprPowerModelParams Params
double getStatValue(const std::string &name) const
Get the value for a variable (maps to a stat)
double eval(const MathExpr &expr) const
Evaluate an expression in the context of this object, fatal if evaluation fails.
MathExprPowerModel(const Params &p)
double getDynamicPower() const override
Get the dynamic power consumption.
std::unordered_map< std::string, const statistics::Info * > statsMap
void startup() override
startup() is the final initialization call before simulation.
void regStats() override
Callback to set stat parameters.
double getStaticPower() const override
Get the static power consumption.
virtual std::string name() const
A PowerModelState is an abstract class used as interface to get power figures out of SimObjects.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.