R/Objective-proto.R

#' @include internal.R pproto.R ProjectModifier-proto.R
NULL

#' @export
if (!methods::isClass("Objective")) methods::setOldClass("Objective")
NULL

#' Objective prototype
#'
#' This prototype is used to represent an objective that can be added to a
#' [ProjectProblem-class] object. **This prototype
#' represents a recipe to make an objective, to actually add an objective to a
#' planning  problem: see [objectives]. Only experts should use this
#' class directly.**
#'
#' @name Objective-class
#'
#' @aliases Objective
NULL

#' @export
Objective <- pproto("Objective", ProjectModifier,
                    feature_phylogeny = function(self)
                      stop("no phylogeny defined"))

Try the oppr package in your browser

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

oppr documentation built on Sept. 8, 2022, 5:07 p.m.