Commit 9c5fc670 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Changed cache replacement and invaldiation to support PointInfo

parent ae9dfaf9
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.invalidation; package de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.invalidation;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.VehicularPointInformation; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation;
public interface CacheInvalidationStrategy { public interface CacheInvalidationStrategy {
...@@ -33,5 +33,5 @@ public interface CacheInvalidationStrategy { ...@@ -33,5 +33,5 @@ public interface CacheInvalidationStrategy {
* @return true, if the existing cache entry should still be cached, false * @return true, if the existing cache entry should still be cached, false
* otherwise. * otherwise.
*/ */
boolean checkInformation(VehicularPointInformation pCachedInformation); boolean checkInformation(PointInformation pCachedInformation);
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
package de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.replacement; package de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.replacement;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.VehicularPointInformation; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation;
public interface CacheReplacementStrategy { public interface CacheReplacementStrategy {
...@@ -35,6 +35,5 @@ public interface CacheReplacementStrategy { ...@@ -35,6 +35,5 @@ public interface CacheReplacementStrategy {
* @return true, if the existing cache entry should be replaced, false * @return true, if the existing cache entry should be replaced, false
* otherwise. * otherwise.
*/ */
boolean replaceInformation(VehicularPointInformation pCachedInformation, boolean replaceInformation(PointInformation pCachedInformation, PointInformation pSensedInformation);
VehicularPointInformation pSensedInformation);
} }
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