Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
48d81aee
Commit
48d81aee
authored
Dec 08, 2016
by
Björn Richerzhagen
Browse files
Add weight and radius property to AttractionPoints
parent
731ed28f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/location/AttractionPoint.java
View file @
48d81aee
...
...
@@ -35,6 +35,40 @@ public interface AttractionPoint extends Location {
*/
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.
* The location of the new AP can then be manipulated through the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment