Easy Navigation
Loading...
Searching...
No Matches
FaultyMapsManager Class Reference

Maps manager that misbehaves on purpose, to test how EasyNav copes with it. More...

#include <FaultyMapsManager.hpp>

Inheritance diagram for FaultyMapsManager:
Collaboration diagram for FaultyMapsManager:

Public Member Functions

void on_initialize () override
 Reads the parameters; throws on an unknown fault.
void update (NavState &nav_state) override
 Does nothing, or injects the fault.
int updates () const
 Updates run so far (to check that it keeps being called).

Detailed Description

Maps manager that misbehaves on purpose, to test how EasyNav copes with it.

Manages no map (like DummyMapsManager) and, after "<name>.fault_after" updates, injects the fault in "<name>.fault":

  • "none": keeps working.
  • "throw": throws from update().
  • "hang": blocks update() for "<name>.hang_time" seconds on each update.

Member Function Documentation

◆ on_initialize()

void on_initialize ( )
override

Reads the parameters; throws on an unknown fault.

◆ update()

void update ( NavState & nav_state)
override

Does nothing, or injects the fault.

◆ updates()

int updates ( ) const
nodiscard

Updates run so far (to check that it keeps being called).


The documentation for this class was generated from the following files: