adapnex::platforms::simulation::Simulation

Simulation implements a test fixture that allows standard scheduling APIs like Application::CreateCyclicTaskGroup() to be used in a unit test, where the application can be simulated faster than real‐time. To use the simulation test fixture declare a test using TEST_F(Simulation, ...) { ... }. Call Simulate() to run the simulation.

Synopsis

Declared in </home/runner/work/adapnex/adapnex/platforms/simulation/include/adapnex/platforms/simulation/simulation.h>

class Simulation
    : public testing::Test

Base Classes

Name Description

testing::Test

Types

Name

Impl

Member Functions

Name

Description

Simulation [constructor]

Default constructor

~Simulation [destructor] [virtual]

Destructor

Simulate [virtual]

Runs the simulation for the given duration. The duration does not represent wall‐clock time but the time inside the simulation. This method should be called by unit tests based on the Simulation test fixture.

Protected Member Functions

Name

SetUp [virtual]

TearDown [virtual]

Created with MrDocs