$darkmode
cloe::component::NoisySensorConf Struct Reference
Inheritance diagram for cloe::component::NoisySensorConf:
Collaboration diagram for cloe::component::NoisySensorConf:

Public Member Functions

 CONFABLE_SCHEMA (NoisySensorConf)
 
void to_json (Json &j) const override
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void from_conf (const Conf &c)
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Public Attributes

bool enabled = true
 
bool reuse_seed = true
 
unsigned long seed = 0
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

Member Data Documentation

◆ enabled

bool cloe::component::NoisySensorConf::enabled = true

This flag exists so that an action can modify it at runtime.

◆ reuse_seed

bool cloe::component::NoisySensorConf::reuse_seed = true

If reuse_seed is true, then in every reset we want to use the same random seed. This is generally the behavior that we want when restarting a simulation, as this preserves the same noise pattern.

◆ seed

unsigned long cloe::component::NoisySensorConf::seed = 0

When set to 0, a new random seed is retrieved.


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