Commit 48d81aee authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Add weight and radius property to AttractionPoints

parent 731ed28f
...@@ -35,6 +35,40 @@ public interface AttractionPoint extends Location { ...@@ -35,6 +35,40 @@ public interface AttractionPoint extends Location {
*/ */
public String getName(); public String getName();
/**
* A weight (should be normalized between 0 and 1), can be used for example
* in the social movement model. This refers to the "importance" of an
* {@link AttractionPoint}.
*
* @return weight between 0 and 1
*/
public double getWeight();
/**
* A radius (optional), basically the radius of influence of the given
* attraction point.
*
* @return radius in meters
*/
public double getRadius();
/**
* A weight (should be normalized between 0 and 1), can be used for example
* in the social movement model. This refers to the "importance" of an
* {@link AttractionPoint}.
*
* @param weight
*/
public void setWeight(double weight);
/**
* A radius (optional), basically the radius of influence of the given
* attraction point.
*
* @param radius
*/
public void setRadius(double radius);
/** /**
* Clones the current attraction point and manipulates the new AP's name. * Clones the current attraction point and manipulates the new AP's name.
* The location of the new AP can then be manipulated through the * The location of the new AP can then be manipulated through the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment