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
PeerfactSim.KOM
Commits
4c01e7c4
Commit
4c01e7c4
authored
Apr 25, 2019
by
Louis Neumann
Browse files
added setAgeofLocation to PositionVector
parent
27154ed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/util/PositionVector.java
View file @
4c01e7c4
...
...
@@ -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 {
}
}
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