![]() |
FIMS
v0.8.1
|
FisheryModelBase is a base class for fishery models in FIMS. More...
#include <fishery_model_base.hpp>
Public Types | |
| typedef std::map< uint32_t, std::shared_ptr< fims_popdy::Fleet< Type > > >::iterator | fleet_iterator |
| Fleet-based iterator. | |
| typedef std::map< uint32_t, std::map< std::string, fims::Vector< Type > > > | DerivedQuantitiesMap |
| Type definitions for derived quantities and dimension information maps. | |
| typedef DerivedQuantitiesMap::iterator | DerivedQuantitiesMapIterator |
| Iterator for the derived quantities map. | |
| typedef std::map< uint32_t, std::map< std::string, DimensionInfo > > | DimensionInfoMap |
| Type definitions for dimension information maps. | |
Public Member Functions | |
| FisheryModelBase () | |
| Construct a new Fishery Model Base object. | |
| FisheryModelBase (const FisheryModelBase &other) | |
| Construct a new Fishery Model Base object. | |
| virtual | ~FisheryModelBase () |
| Destroy the Fishery Model Base object. | |
| std::map< uint32_t, std::map< std::string, DimensionInfo > > & | GetFleetDimensionInfo () |
| Get the fleet dimension information. | |
| std::map< uint32_t, std::map< std::string, DimensionInfo > > & | GetPopulationDimensionInfo () |
| Get the population dimension information. | |
| DerivedQuantitiesMap & | GetFleetDerivedQuantities () |
| Get the fleet derived quantities. | |
| DerivedQuantitiesMap & | GetPopulationDerivedQuantities () |
| Get the population derived quantities. | |
| std::map< std::string, fims::Vector< Type > > & | GetFleetDerivedQuantities (uint32_t fleet_id) |
| Get the fleet derived quantities for a specified fleet. | |
| void | InitializeFleetDerivedQuantities (uint32_t fleet_id) |
| Initialize the derived quantities map for a fleet. | |
| void | InitializePopulationDerivedQuantities (uint32_t population_id) |
| Initialize the derived quantities map for a population. | |
| std::map< std::string, fims::Vector< Type > > & | GetPopulationDerivedQuantities (uint32_t population_id) |
| Get the population derived quantities for a specified population. | |
| std::map< std::string, DimensionInfo > & | GetFleetDimensionInfo (uint32_t fleet_id) |
| Get the fleet dimension information for a specified fleet. | |
| std::map< std::string, DimensionInfo > & | GetPopulationDimensionInfo (uint32_t population_id) |
| Get the population dimension information for a specified population. | |
| virtual void | Initialize () |
| Initialize a model. | |
| virtual void | Prepare () |
| Prepare the model. | |
| virtual void | ResetVector (fims::Vector< Type > &v, Type value=0.0) |
| Reset a vector from start to end with a value. | |
| virtual void | Evaluate () |
| Evaluate the model. | |
| virtual void | Report () |
| Report the model results via TMB. | |
| uint32_t | GetId () |
| Get the Id object. | |
Public Member Functions inherited from fims_model_object::FIMSObject< Type > | |
| uint32_t | GetId () const |
| Getter that returns the unique id for parameters in the model. | |
| bool | CheckDimensions (size_t actual, size_t expected) |
| Check the dimensions of an object. | |
Public Attributes | |
| std::string | model_type_m |
| A string specifying the model type. | |
| std::set< uint32_t > | population_ids |
| Unique identifier for the fishery model. | |
| std::vector< std::shared_ptr< fims_popdy::Population< Type > > > | populations |
| A vector of populations in the fishery model. | |
| std::map< uint32_t, std::shared_ptr< fims_popdy::Fleet< Type > > > | fleets |
| A map of fleets in the fishery model, indexed by fleet id. Unique instances to eliminate duplicate initialization. | |
| std::shared_ptr< DerivedQuantitiesMap > | fleet_derived_quantities |
| Shared pointer for the fleet derived quantities map. | |
| std::shared_ptr< DerivedQuantitiesMap > | population_derived_quantities |
| Shared pointer for the population derived quantities map. | |
| std::shared_ptr< DimensionInfoMap > | fleet_dimension_info |
| Shared pointer for the fleet dimension information map. | |
| std::shared_ptr< DimensionInfoMap > | population_dimension_info |
| Shared pointer for the population dimension information map. | |
Public Attributes inherited from fims_model_object::FIMSObject< Type > | |
| uint32_t | id |
| std::vector< Type * > | parameters |
| std::vector< Type * > | random_effects_parameters |
| std::vector< Type * > | fixed_effects_parameters |
FisheryModelBase is a base class for fishery models in FIMS.
|
inline |
Construct a new Fishery Model Base object.
| other |
|
inlinevirtual |
Evaluate the model.
Reimplemented in fims_popdy::CatchAtAge< Type >.
|
inline |
Get the fleet derived quantities.
|
inline |
Get the fleet derived quantities for a specified fleet.
| fleet_id | The ID of the fleet. |
|
inline |
Get the fleet dimension information.
|
inline |
Get the fleet dimension information for a specified fleet.
| fleet_id | The ID of the fleet. |
|
inline |
Get the Id object.
|
inline |
Get the population derived quantities.
|
inline |
Get the population derived quantities for a specified population.
| population_id | The ID of the population. |
|
inline |
Get the population dimension information.
|
inline |
Get the population dimension information for a specified population.
| population_id | The ID of the population. |
|
inlinevirtual |
Initialize a model.
Reimplemented in fims_popdy::CatchAtAge< Type >.
|
inline |
Initialize the derived quantities map for a fleet.
Ensures the derived quantities map for the specified fleet exists. If not, creates an empty map for the fleet ID.
| fleet_id | The ID of the fleet to initialize. |
|
inline |
Initialize the derived quantities map for a population.
Ensures the derived quantities map for the specified population exists. If not, creates an empty map for the population ID.
| population_id | The ID of the population to initialize. |
|
inlinevirtual |
Prepare the model.
Reimplemented in fims_popdy::CatchAtAge< Type >.
|
inlinevirtual |
Report the model results via TMB.
Reimplemented in fims_popdy::CatchAtAge< Type >.
|
inlinevirtual |
Reset a vector from start to end with a value.
| v | A vector to reset. |
| value | The value you want to use for all elements in the vector. The default is 0.0. |