Commit eec8b45b authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Adjusted method to fixed methods in interface

parent 5a51bd62
...@@ -21,13 +21,12 @@ ...@@ -21,13 +21,12 @@
package de.tud.kom.p2psim.impl.vehicular.caching.invalidation; package de.tud.kom.p2psim.impl.vehicular.caching.invalidation;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.invalidation.CacheInvalidationStrategy; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.invalidation.CacheInvalidationStrategy;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.VehicularPointInformation; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation;
public class DefaultCacheInvalidationStrategy implements CacheInvalidationStrategy { public class DefaultCacheInvalidationStrategy implements CacheInvalidationStrategy {
@Override @Override
public boolean checkInformation( public boolean checkInformation(PointInformation pCachedInformation) {
VehicularPointInformation pCachedInformation) {
return false; return false;
} }
......
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
package de.tud.kom.p2psim.impl.vehicular.caching.replacement; package de.tud.kom.p2psim.impl.vehicular.caching.replacement;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.replacement.CacheReplacementStrategy; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.replacement.CacheReplacementStrategy;
import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.VehicularPointInformation; import de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation;
public class DefaultCacheReplacementStrategy implements CacheReplacementStrategy { public class DefaultCacheReplacementStrategy implements CacheReplacementStrategy {
@Override @Override
public boolean replaceInformation( public boolean replaceInformation(PointInformation pCachedInformation,
VehicularPointInformation pCachedInformation, PointInformation pSensedInformation) {
VehicularPointInformation pSensedInformation) { return true;
return pCachedInformation.equals(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