R/ModelODEInfusion.R

#' Class "ModelODEInfusion"
#'
#' @description The class \code{ModelODEInfusion} defines information concerning the construction of an ode model in infusion.
#' The class \code{ModelODEInfusion} inherits from the class \code{ModelInfusion}.
#'
#' @name ModelODEInfusion-class
#' @aliases ModelODEInfusion
#' @include ModelInfusion.R
#' @export

ModelODEInfusion = setClass(
  Class = "ModelODEInfusion",
  contains = "ModelInfusion")


#' @rdname getVariables
#' @export

setMethod("getVariables",
          signature("ModelInfusion"),
          function( object )
          {
            equationsDuringInfusion = getEquationsDuringInfusion( object )

            variablesNamesDerivatives = names( equationsDuringInfusion )

            variablesNames = gsub( "Deriv_", "", variablesNamesDerivatives )

            return( list( variablesNames = variablesNames, variablesNamesDerivatives = variablesNamesDerivatives ) )

          })

##########################################################################################################
# END Class ModelODEInfusion
##########################################################################################################

Try the PFIM package in your browser

Any scripts or data that you put into this service are public.

PFIM documentation built on Oct. 30, 2024, 9:10 a.m.