Internal lookup tables that translate the human-readable switch strings a
user supplies (e.g. "Logistic", "NPFMC") into the integer
codes the TMB template consumes (and back again, via
revert_switches()). They are the single source of truth for the set
of valid switch values; validate_switches() errors on anything not
listed here. See the lifecycle note at the top of R/0-switches.R for
how the maps are applied.
Details
sel_mapSelectivity form (
fleet_control$Selectivity).tv_sel_mapTime-varying selectivity structure (
fleet_control$Time_varying_sel).sel_norm_scope_mapWhether selectivity normalization pools its reference across sexes (
fleet_control$Sel_norm_scope).q_mapCatchability form (
fleet_control$Catchability).tv_q_mapTime-varying catchability structure (
fleet_control$Time_varying_q).comp_loglike_mapComposition likelihood (
fleet_control$Comp_distributionandCAAL_distribution).fleet_mapFleet type (
fleet_control$Fleet_type).initMode_mapInitial age-structure mode (
data_list$initMode; seefit_mod).suitMode_mapPredator-prey suitability mode, per predator (
data_list$suitMode).hcr_mapHarvest control rule (see
build_hcr).