geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Public Member Functions | Friends | List of all members
geopm::PowerBalancerAgent::RootRole Class Reference

#include <PowerBalancerAgent.hpp>

Inheritance diagram for geopm::PowerBalancerAgent::RootRole:
Inheritance graph
[legend]
Collaboration diagram for geopm::PowerBalancerAgent::RootRole:
Collaboration graph
[legend]

Public Member Functions

 RootRole (int level, const std::vector< int > &fan_in, double min_power, double max_power)
 
virtual ~RootRole ()=default
 
bool descend (const std::vector< double > &in_policy, std::vector< std::vector< double > > &out_policy) override
 
bool ascend (const std::vector< std::vector< double > > &in_sample, std::vector< double > &out_sample) override
 
- Public Member Functions inherited from geopm::PowerBalancerAgent::TreeRole
 TreeRole (int level, const std::vector< int > &fan_in)
 
virtual ~TreeRole ()=default
 
- Public Member Functions inherited from geopm::PowerBalancerAgent::Role
virtual bool adjust_platform (const std::vector< double > &in_policy)
 
virtual bool sample_platform (std::vector< double > &out_sample)
 
virtual void trace_values (std::vector< double > &values)
 

Friends

class SendDownLimitStep
 
class MeasureRuntimeStep
 
class ReduceLimitStep
 

Additional Inherited Members

- Public Attributes inherited from geopm::PowerBalancerAgent::Role
std::vector< double > m_policy
 
const int M_NUM_NODE
 
- Protected Member Functions inherited from geopm::PowerBalancerAgent::Role
int step (size_t step_count) const
 
int step (void) const
 
const Stepstep_imp ()
 
 Role (int num_node)
 
virtual ~Role ()=default
 
- Protected Attributes inherited from geopm::PowerBalancerAgent::TreeRole
const std::vector< std::function< double(const std::vector< double > &)> > M_AGG_FUNC
 
const int M_NUM_CHILDREN
 
bool m_is_step_complete
 
- Protected Attributes inherited from geopm::PowerBalancerAgent::Role
const std::vector< std::shared_ptr< const Step > > M_STEP_IMP
 
int m_step_count
 

Constructor & Destructor Documentation

◆ RootRole()

geopm::PowerBalancerAgent::RootRole::RootRole ( int  level,
const std::vector< int > &  fan_in,
double  min_power,
double  max_power 
)

◆ ~RootRole()

virtual geopm::PowerBalancerAgent::RootRole::~RootRole ( )
virtualdefault

Member Function Documentation

◆ ascend()

bool geopm::PowerBalancerAgent::RootRole::ascend ( const std::vector< std::vector< double > > &  in_sample,
std::vector< double > &  out_sample 
)
overridevirtual

Tree role classes must implement this method, leaf roles do not.

Reimplemented from geopm::PowerBalancerAgent::TreeRole.

◆ descend()

bool geopm::PowerBalancerAgent::RootRole::descend ( const std::vector< double > &  in_policy,
std::vector< std::vector< double > > &  out_policy 
)
overridevirtual

Tree role classes must implement this method, leaf roles do not.

Reimplemented from geopm::PowerBalancerAgent::TreeRole.

Friends And Related Function Documentation

◆ MeasureRuntimeStep

friend class MeasureRuntimeStep
friend

◆ ReduceLimitStep

friend class ReduceLimitStep
friend

◆ SendDownLimitStep

friend class SendDownLimitStep
friend

The documentation for this class was generated from the following files: