fpmas-metamodel 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LoadBalancingProbe Class Reference

#include <probe.h>

Inheritance diagram for LoadBalancingProbe:
Inheritance graph
[legend]
Collaboration diagram for LoadBalancingProbe:
Collaboration graph
[legend]

Public Member Functions

 LoadBalancingProbe (fpmas::api::utils::perf::Probe &lb_algorithm_probe, fpmas::api::model::LoadBalancing &lb)
 
fpmas::graph::PartitionMap balance (fpmas::graph::NodeMap< fpmas::model::AgentPtr > node_map, fpmas::api::graph::PartitionMode mode) override
 
fpmas::graph::PartitionMap balance (fpmas::graph::NodeMap< fpmas::model::AgentPtr > node_map) override
 

Detailed Description

A wrapper for an existing LoadBalancing algorithm, that adds probes to measure its execution time.

Constructor & Destructor Documentation

◆ LoadBalancingProbe()

LoadBalancingProbe::LoadBalancingProbe ( fpmas::api::utils::perf::Probe &  lb_algorithm_probe,
fpmas::api::model::LoadBalancing &  lb 
)
inline

LoadBalancingProbe constructor.

Parameters
lb_algorithm_probeProbe that measures only the load balancing algorithm execution time
lbLoad balancing algorithm to probe

Member Function Documentation

◆ balance() [1/2]

fpmas::graph::PartitionMap LoadBalancingProbe::balance ( fpmas::graph::NodeMap< fpmas::model::AgentPtr >  node_map,
fpmas::api::graph::PartitionMode  mode 
)
override

Returns the results of the existing LoadBalancing algorithm, measuring only the LoadBalancing::balance() execution time, without including the distribution time.

This method is automatically called by the FPMAS LoadBalancingTask.

Parameters
node_mapnodes to balance
modePartition mode, PARTITION or REPARTITION

◆ balance() [2/2]

fpmas::graph::PartitionMap LoadBalancingProbe::balance ( fpmas::graph::NodeMap< fpmas::model::AgentPtr >  node_map)
inlineoverride

Deprecated, implemented for compatibility with an old API.


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