FIMS  v0.8.0
Loading...
Searching...
No Matches
FIMSRcppInterfaceBase Class Reference

Base class for all interface objects. More...

#include <rcpp_interface_base.hpp>

Inheritance diagram for FIMSRcppInterfaceBase:
DataInterfaceBase DistributionsInterfaceBase FisheryModelInterfaceBase FleetInterfaceBase GrowthInterfaceBase MaturityInterfaceBase PopulationInterfaceBase RecruitmentInterfaceBase SelectivityInterfaceBase

Public Member Functions

virtual bool add_to_fims_tmb ()
 A virtual method to inherit to add objects to the TMB model.
 
virtual void finalize ()
 Extracts derived quantities back to the Rcpp interface object from the Information object.
 
virtual std::string to_json ()
 Convert the data to json representation for the output.
 
void get_se_values (std::string name, std::map< std::string, std::vector< double > > &se_values, fims::Vector< double > &values)
 Method to extract standard error values from the se_values working map.
 
virtual void set_uncertainty (std::map< std::string, std::vector< double > > &se_values)
 Set uncertainty values for the interface object.
 
std::string value_to_string (double value)
 Report the parameter value as a string.
 
std::string make_dimensions (uint32_t start, uint32_t end, uint32_t rep=1)
 Make a string of dimensions for the model.
 

Public Attributes

bool finalized = false
 Is the object already finalized? The default is false.
 

Static Public Attributes

static std::vector< std::shared_ptr< FIMSRcppInterfaceBase > > fims_interface_objects
 FIMS interface object vectors.
 

Detailed Description

Base class for all interface objects.

Member Function Documentation

◆ add_to_fims_tmb()

virtual bool FIMSRcppInterfaceBase::add_to_fims_tmb ( )
inlinevirtual

A virtual method to inherit to add objects to the TMB model.

Reimplemented in DataInterfaceBase.

◆ finalize()

virtual void FIMSRcppInterfaceBase::finalize ( )
inlinevirtual

◆ set_uncertainty()

virtual void FIMSRcppInterfaceBase::set_uncertainty ( std::map< std::string, std::vector< double > > &  se_values)
inlinevirtual

Set uncertainty values for the interface object.

This virtual method is intended to be overridden in derived classes to set uncertainty (standard error) values for model parameters or quantities using the provided map of standard error values. The default implementation logs a warning.

Parameters
se_valuesA map from parameter names to vectors of standard error values.

Reimplemented in LogisticMaturityInterface, BevertonHoltRecruitmentInterface, LogisticSelectivityInterface, and DoubleLogisticSelectivityInterface.

◆ to_json()

◆ value_to_string()

std::string FIMSRcppInterfaceBase::value_to_string ( double  value)
inline

Report the parameter value as a string.

Parameters
value
Returns
std::string

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