fpmas-metamodel 1.0
|
#include <cell.h>
Public Member Functions | |
float | utility (GridAttractor attractor, DiscretePoint point) const override |
virtual float | utility (GridAttractor attractor, DiscretePoint point) const =0 |
Utility::LINEAR implementation.
The utility is set to 1 at the center of the attractor, decreases linearly to 0 until the radius of the attractor, and is set to 0 after the radius.
|
overridevirtual |
Returns an utility value associated to the specified point according to the given attractor.
attractor | Attractor from which the utility is computed |
point | A discrete point of the grid environment |
Implements UtilityFunction.