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

#include <metamodel.h>

Public Member Functions

 MetaModelFactory (Environment environment, SyncMode sync_mode)
 
BasicMetaModelbuild (std::string name, ModelConfig config, fpmas::api::scheduler::Scheduler &scheduler, fpmas::api::runtime::Runtime &runtime, fpmas::api::model::LoadBalancing &lb_algorithm, fpmas::scheduler::TimeStep lb_period)
 

Detailed Description

A factory class used to instantiate MetaGridModel and MetaGraphCell instances depending on the specified Environment and SyncMode.

Constructor & Destructor Documentation

◆ MetaModelFactory()

MetaModelFactory::MetaModelFactory ( Environment  environment,
SyncMode  sync_mode 
)

MetaModelFactory constructor.

Parameters
environmentEnvironment type of the built MetaModel
sync_modeSynchronization mode used by the built MetaModel

Member Function Documentation

◆ build()

BasicMetaModel * MetaModelFactory::build ( std::string  name,
ModelConfig  config,
fpmas::api::scheduler::Scheduler &  scheduler,
fpmas::api::runtime::Runtime &  runtime,
fpmas::api::model::LoadBalancing &  lb_algorithm,
fpmas::scheduler::TimeStep  lb_period 
)

Builds a MetaModel instance from the specified parameters.

Parameters
nameName of the model
configModel configuration
schedulerScheduler instance used by the MetaModel to plan agent execution
runtimeRuntime instance used to execute the MetaModel
lb_algorithmLoad balancing algorithm to apply to the MetaModel
lb_periodPeriod at which the load balancing algorithm should be scheduled, starting at time step 0

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