Class population_dynamics_metrics

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public rmetrics::base_metrics

Derived Type

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

Public Members

size_t count
rtypes::timestep interval_accum
struct queue_status

Public Members

struct queue_op_status dequeue
struct queue_op_status enqueue
double lambda
double mu
size_t size