RESPOND 2.4.0
Researching Effective Strategies to Prevent Opioid Death
Loading...
Searching...
No Matches
respond::TransitionFactory Class Reference

Factory for creating concrete Transition instances. This factory supports creation of various transition types used in the RESPOND model.

#include <transition_factory.hpp>

Static Public Member Functions

static std::unique_ptr< TransitionCreateTransition (const std::string &type, const std::string &log_name)
 Creates a transition of the specified type.
 

Member Function Documentation

◆ CreateTransition()

static std::unique_ptr< Transition > respond::TransitionFactory::CreateTransition ( const std::string &  type,
const std::string &  log_name 
)
static
Parameters
typeThe 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_nameThe 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: