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

Minor changes

parent f476dae3
......@@ -131,8 +131,8 @@ implements CachingComponent, ConnectivityListener {
@Override
public <T extends PointInformation> boolean containsEntry(T pCacheEntry) {
if (_cache.containsKey(pCacheEntry)) {
List<? extends Object> cacheEntries = _cache.get(pCacheEntry);
if (_cache.containsKey(pCacheEntry.getClass())) {
List<? extends Object> cacheEntries = _cache.get(pCacheEntry.getClass());
return cacheEntries.contains(pCacheEntry);
}
return false;
......
......@@ -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(agedProperty);
RoadInformation roadInformation = new RoadInformation(currentProperty);
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