This super-prototype is used to represent prototypes that in turn are used to modify a ProjectProblem object. Specifically, the Constraint, Decision, Objective, and Target prototypes inherit from this class. Only experts should interact with this class directly because changes to these class will have profound and far reaching effects.
character name of object.
list object used to customize the modifier.
list object with data.
logical can this constraint be applied
to the compressed version of the conservation planning problem?. Defaults
to TRUE.
x$print()
x$show()
x$repr()
x$get_data(name)
x$set_data(name, value)
x$calculate(cp)
x$output()
x$apply(op,cp)
x$get_parameter(id)
x$get_all_parameters()
x$set_parameter(id, value)
x$render_parameter(id)
x$render_all_parameter()
character name for object
any object
id or name of parameter
ProjectProblem object
OptimizationProblem object
print the object.
show the object.
return character representation of the object.
return an object stored in the data field with
the corresponding name. If the object is not present in the
data field, a waiver object is returned.
store an object stored in the data field with
the corresponding name. If an object with that name already
exists then the object is overwritten.
function used to perform preliminary calculations
and store the data so that they can be reused later without
performing the same calculations multiple times. Data can be stored
in the data slot of the input ProjectModifier or
ProjectProblem objects.
function used to generate an output from the object.
This method is only used for Target objects.
function used to apply the modifier to an
OptimizationProblem object.
This is used by Constraint,
Decision, and Objective objects.
retrieve the value of a parameter.
generate list containing all the
parameters.
change the value of a parameter to new value.
generate a shiny widget to modify the
the value of a parameter (specified by argument id).
generate a shiny::div()
containing all the parameters" widgets.