Commit 4c01e7c4 authored by Louis Neumann's avatar Louis Neumann
Browse files

added setAgeofLocation to PositionVector

parent 27154ed5
......@@ -56,6 +56,8 @@ import de.tudarmstadt.maki.simonstrator.api.component.sensor.location.Location;
*
* - 14.03.2019 Louis Neumann: added timestamp when creating a PositionVector and adjusted ageOfLocation()
*
* - 18.04.2019 Louis Neumann: added setAgeofLocation()
*
* @author Bjoern Richerzhagen, Julian Zobel, Louis Neumann
* @version 1.2, 10.09.2018
*/
......@@ -555,6 +557,13 @@ public class PositionVector implements Location {
return Time.getCurrentTime() - created;
}
/**
*
* @param ageOfLocation the ageOfLocation to set
*/
public void setAgeofLocation(long ageOfLocation) {
this.created = ageOfLocation;
}
@Override
public double distanceTo(Location dest) {
......@@ -598,4 +607,6 @@ public class PositionVector implements Location {
}
}
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