Class population_dynamics_metrics
Defined in File population_dynamics_metrics.hpp
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public rmetrics::base_metrics
Derived Type
public cosm::tv::population_dynamics
(Class population_dynamics)
Class Documentation
-
class population_dynamics_metrics : public virtual rmetrics::base_metrics
Defines the metrics to be collected from population_dynamics about the different types of population dynamics that can be applied to the swarm.
Metrics are collected and output every timestep.
Subclassed by cosm::tv::population_dynamics
Public Functions
-
population_dynamics_metrics(void) = default
-
virtual queue_status birth_queue_status(void) const = 0
-
virtual queue_status death_queue_status(void) const = 0
-
virtual queue_status repair_queue_status(void) const = 0
-
virtual size_t swarm_active_population(void) const = 0
Return the total number of robots in the arena that are active (i.e. in the arena and NOT being repaired).
-
virtual size_t swarm_max_population(void) const = 0
Return the maximum size of the swarm, which is assumed to be constant.
-
virtual size_t swarm_total_population(void) const = 0
Return the total number of robots in the arena, regardless of whether they are active or not (i.e. including ones being repaired).
-
struct queue_op_status
-
struct queue_status
Public Members
-
struct queue_op_status dequeue
-
struct queue_op_status enqueue
-
double lambda
-
double mu
-
size_t size
-
struct queue_op_status dequeue
-
population_dynamics_metrics(void) = default