Factory for creating concrete Transition instances. This factory supports creation of various transition types used in the RESPOND model.
#include <transition_factory.hpp>
|
| static std::unique_ptr< Transition > | CreateTransition (const std::string &type, const std::string &log_name) |
| | Creates a transition of the specified type.
|
| |
◆ CreateTransition()
| static std::unique_ptr< Transition > respond::TransitionFactory::CreateTransition |
( |
const std::string & |
type, |
|
|
const std::string & |
log_name |
|
) |
| |
|
static |
- Parameters
-
| type | The type of transition to create. Supported types (case-insensitive):
- "migration": Population migration transitions
- "behavior": Behavioral state transitions
- "intervention": Intervention-driven transitions
- "overdose": Overdose-related transitions
- "background_death": Background mortality transitions
|
| log_name | The logger name for error reporting (e.g., "console"). |
- Returns
- A unique_ptr to the created Transition, or nullptr if type is unsupported.
The documentation for this class was generated from the following file: