geopm  3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
CombinedControl.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef COMBINEDCONTROL_HPP_INCLUDE
7 #define COMBINEDCONTROL_HPP_INCLUDE
8 
9 
10 namespace geopm
11 {
15  {
16  public:
18  CombinedControl(double factor);
19  virtual ~CombinedControl() = default;
21  virtual double adjust(double setting);
22  private:
23  double m_factor;
24  };
25 }
26 
27 #endif
Used by PlatformIO to define a control as a function of other controls.
Definition: CombinedControl.hpp:15
virtual ~CombinedControl()=default
virtual double adjust(double setting)
Multiply setting by factor and return.
Definition: CombinedControl.cpp:22
CombinedControl()
Definition: CombinedControl.cpp:10
Definition: Agg.cpp:20