This class is used to represent methods for setting targets. Only experts should use the fields and methods for this class directly.
Public fields
namecharactervalue with name of method.typecharactervalue denoting the target type.funfunctionfor calculating targets.argslistcontaining arguments.framedefused `call for generating error messages.
Methods
TargetMethod$new()
Initialize new object.
Usage
TargetMethod$new(name, type, fun, args, frame)TargetMethod$calculate_targets()
Calculate targets expressed in the type of units defined for the method
(per $type).
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
TargetMethod$calculate_targets_km2()
Calculate targets as km2.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
TargetMethod$calculate_relative_targets()
Calculate targets as km2.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
TargetMethod$calculate_absolute_targets()
Calculate targets expressed as absolute units.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
