R/well.R

#' @name well
#' @title R6 class well
#' @description Create R6 reference object class well
#' @importFrom R6 R6Class
# well ----
well <- R6::R6Class(classname = "well",
                    public = list(
                      # initialize ----
                      #' @description Initialize function for R6 well class.
                      #' @param trip_id Object of class {\link[base]{character}} expected. Trip identification.
                      #' @param well_id Object of class {\link[base]{character}} expected. Well identification.
                      #' @param well_minus10_weigth Object of class {\link[base]{integer}} expected. Catch weight of individus less than 10 tonnes (by well, in tonne, all species considerated).
                      #' @param well_plus10_weigth Object of class {\link[base]{integer}} expected. Catch weight of individus more than 10 tonnes (by well, in tonne, all species considerated).
                      #' @param well_global_weigth Object of class {\link[base]{integer}} expected. Catch weight of individus (less and more 10 tonnes categories, by well, in tonne, all species considerated).
                      initialize = function(trip_id,
                                            well_id,
                                            well_minus10_weigth,
                                            well_plus10_weigth,
                                            well_global_weigth) {
                        # attribute "trip_id" verification
                        check_trip_id(trip_id)
                        # attribute "well_id" verification
                        check_well_id(well_id)
                        # attribute "well_minus10_weigth" verification
                        check_well_minus10_weigth(well_minus10_weigth)
                        # attribute "well_plus10_weigth" verification
                        check_well_plus10_weigth(well_plus10_weigth)
                        # attribute "well_global_weigth" verification
                        check_well_global_weigth(well_global_weigth)
                        # attributions
                        private$trip_id <- trip_id
                        private$well_id <- well_id
                        private$well_minus10_weigth <- well_minus10_weigth
                        private$well_plus10_weigth <- well_plus10_weigth
                        private$well_global_weigth <- well_global_weigth}),
                    private = list(
                      trip_id = NULL,
                      well_id = NULL,
                      well_minus10_weigth = NULL,
                      well_plus10_weigth = NULL,
                      well_global_weigth = NULL,
                      elementarysampleraw = NULL,
                      elementarysample = NULL,
                      standardisedsample = NULL,
                      standardisedsampleset = NULL,
                      wellsets = NULL,
                      proportion_verification = NULL,
                      well_prop_minus10_weigth = NULL,
                      well_prop_plus10_weigth = NULL,
                      wellplan = NULL))
OB7-IRD/t3 documentation built on May 11, 2024, 7:02 a.m.