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
Method new()
Initialize new object.
Usage
TargetMethod$new(name, type, fun, args, frame)Method print()
Print the object.
Method calculate_targets()
Calculate targets expressed in the type of units defined for the method
(per $type).
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
Method calculate_targets_km2()
Calculate targets as km2.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
Method calculate_relative_targets()
Calculate targets as km2.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
Method calculate_absolute_targets()
Calculate targets expressed as absolute units.
Arguments
xproblem()object.featuresintegerfeature indices.callNULLor calling environment.
