GHS
Leader Election Based on GHS Minimum Spanning Tree
Public Types | Public Attributes | List of all members
demo::Config Struct Reference

A struct that holds the union of all configuration variables. More...

#include <ghs-demo-config.h>

Public Types

enum  { LOAD =0, TEST, START }
 A special command enumeration. More...
 

Public Attributes

float wait_s = 0
 The time to wait before starting the main algorithm.
 
int n_agents =N_UNSET
 The number of agents currently loaded.
 
char endpoints [MAX_N][MAX_ENDPOINT_SZ] ={0}
 The endpoint for each agent, as read from the config.
 
int test =0
 A bool to determine if we should do a test-and-die routine or not.
 
int my_id =ID_UNSET
 This agent's id.
 
enum demo::Config:: { ... }  command =LOAD
 A special command enumeration. More...
 
bool retry_connections =false
 If we fail to dial up an agent, should we retry later (true) or drop the message (false)
 

Detailed Description

A struct that holds the union of all configuration variables.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

A special command enumeration.

Enumerator
LOAD 

Load config and do nothing else.

TEST 

run test-and-die routine

START 

Start MST construction after specified delay.

Member Data Documentation

◆ command

enum { ... } demo::Config::command

A special command enumeration.

The start mode


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