The FisheryModelInterfaceBase class is the base class for all fishery models in the FIMS Rcpp interface. It inherits from the FIMSRcppInterfaceBase.
More...
#include <rcpp_models.hpp>
The FisheryModelInterfaceBase class is the base class for all fishery models in the FIMS Rcpp interface. It inherits from the FIMSRcppInterfaceBase.
◆ FisheryModelInterfaceBase()
Construct a new Data Interface Base object.
- Parameters
-
◆ calculate_reference_points()
| virtual Rcpp::List FisheryModelInterfaceBase::calculate_reference_points |
( |
| ) |
|
|
inlinevirtual |
A function to calculate reference points for the fishery model.
- Returns
- Rcpp::List
◆ get_id()
Get the ID for the child fleet interface objects to inherit.
Implemented in CatchAtAgeInterface.
◆ to_json()
| virtual std::string FisheryModelInterfaceBase::to_json |
( |
bool |
do_sd_report = true | ) |
|
|
inlinevirtual |
Serialize the fishery model to a JSON string.
This method provides a standardized interface for converting the state of a fishery model into a JSON-formatted string. The JSON output is intended for use in reporting, diagnostics, or data exchange between C++ and R. Derived classes should override this method to provide model-specific serialization logic.
- Parameters
-
| do_sd_report | A boolean to include standard deviation report calculations in the output if true. This is typically set to false when maximum likelihood estimation optimization is not performed, to avoid unnecessary computations. Default is true. |
- Returns
- A JSON string representing the current state of the model. The base implementation returns a placeholder string indicating the method is not yet implemented.
Reimplemented in CatchAtAgeInterface.
The documentation for this class was generated from the following file: