This super-prototype is used to represent prototypes that in turn are used to
modify a ConservationProblem-class
object. Specifically, the
Constraint-class
, Decision-class
,
Objective-class
, and Target-class
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
ConservationProblem-class
object
OptimizationProblem-class
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 ConservationModifier
or
ConservationProblem
objects.
function
used to generate an output from the object.
This method is only used for Target-class
objects.
function
used to apply the modifier to an
OptimizationProblem-class
object.
This is used by Constraint-class
,
Decision-class
, and Objective-class
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 div
containing all the parameters" widgets.