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

#include <probe.h>

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

Public Member Functions

 GraphBalanceProbe (fpmas::api::model::AgentGraph &graph, fpmas::api::model::LoadBalancing &probed_lb, fpmas::api::utils::perf::Probe &lb_algorithm_probe, fpmas::api::utils::perf::Probe &graph_balance_probe)
 
void run () override
 

Public Attributes

fpmas::scheduler::Job job
 

Detailed Description

Task used to probe the total DistributedGraph::balance() time, that includes the load balancing algorithm application and the distribution process.

Constructor & Destructor Documentation

◆ GraphBalanceProbe()

GraphBalanceProbe::GraphBalanceProbe ( fpmas::api::model::AgentGraph &  graph,
fpmas::api::model::LoadBalancing &  probed_lb,
fpmas::api::utils::perf::Probe &  lb_algorithm_probe,
fpmas::api::utils::perf::Probe &  graph_balance_probe 
)
inline

DistributeProbeTask constructor.

Parameters
graphDistributed graph to balance
probed_lbLoad balancing algorithm to apply and probe
lb_algorithm_probeProbe used to measure only the load balancing algorithm execution time
graph_balance_probeProbe used to measure the complete DistributedGraph::balance() execution time, including the distribution process

Member Function Documentation

◆ run()

void GraphBalanceProbe::run ( )
override

Runs the LoadBalancingTask and probes it.

The LoadBalancingTask calls the DistributedGraph::balance() method, that includes load balancing and distribution.

Member Data Documentation

◆ job

fpmas::scheduler::Job GraphBalanceProbe::job

Job that can be directly scheduled instead of Model::loabBalancingJob() in order to probe load balancing and distribution times.


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