|
fpmas-metamodel 1.0
|
#include <metamodel.h>
Public Member Functions | |
| MetaModelFactory (Environment environment, SyncMode sync_mode) | |
| BasicMetaModel * | 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) |
A factory class used to instantiate MetaGridModel and MetaGraphCell instances depending on the specified Environment and SyncMode.
| MetaModelFactory::MetaModelFactory | ( | Environment | environment, |
| SyncMode | sync_mode | ||
| ) |
MetaModelFactory constructor.
| 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.
| name | Name of the model |
| config | Model configuration |
| scheduler | Scheduler instance used by the MetaModel to plan agent execution |
| runtime | Runtime instance used to execute the MetaModel |
| lb_algorithm | Load balancing algorithm to apply to the MetaModel |
| lb_period | Period at which the load balancing algorithm should be scheduled, starting at time step 0 |