Commit 429c83d7 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Minor changes

parent f476dae3
...@@ -131,8 +131,8 @@ implements CachingComponent, ConnectivityListener { ...@@ -131,8 +131,8 @@ implements CachingComponent, ConnectivityListener {
@Override @Override
public <T extends PointInformation> boolean containsEntry(T pCacheEntry) { public <T extends PointInformation> boolean containsEntry(T pCacheEntry) {
if (_cache.containsKey(pCacheEntry)) { if (_cache.containsKey(pCacheEntry.getClass())) {
List<? extends Object> cacheEntries = _cache.get(pCacheEntry); List<? extends Object> cacheEntries = _cache.get(pCacheEntry.getClass());
return cacheEntries.contains(pCacheEntry); return cacheEntries.contains(pCacheEntry);
} }
return false; return false;
......
...@@ -66,11 +66,11 @@ public class MajorityVotingVectoralCacheDecisionStrategy implements CacheDecisio ...@@ -66,11 +66,11 @@ public class MajorityVotingVectoralCacheDecisionStrategy implements CacheDecisio
} }
} }
TemporalDependencyMatrix dependencyMatrix = currentProperty.getDependencyMatrix(); // TemporalDependencyMatrix dependencyMatrix = currentProperty.getDependencyMatrix();
//
// VectoralProperty agedProperty = currentProperty.age((Time.getCurrentTime() - maxTimestamp) / SCALING, dependencyMatrix);
VectoralProperty agedProperty = currentProperty.age((Time.getCurrentTime() - maxTimestamp) / SCALING, dependencyMatrix); RoadInformation roadInformation = new RoadInformation(currentProperty);
RoadInformation roadInformation = new RoadInformation(agedProperty);
copyAttributes((RoadInformation) pSimilarPointInformation.get(0), roadInformation); copyAttributes((RoadInformation) pSimilarPointInformation.get(0), roadInformation);
......
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