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
API
Commits
9c5fc670
Commit
9c5fc670
authored
Sep 18, 2017
by
Tobias Meuser
Browse files
Changed cache replacement and invaldiation to support PointInfo
parent
ae9dfaf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/caching/invalidation/CacheInvalidationStrategy.java
View file @
9c5fc670
...
...
@@ -20,7 +20,7 @@
package
de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.invalidation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.
Vehicular
PointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation
;
public
interface
CacheInvalidationStrategy
{
...
...
@@ -33,5 +33,5 @@ public interface CacheInvalidationStrategy {
* @return true, if the existing cache entry should still be cached, false
* otherwise.
*/
boolean
checkInformation
(
Vehicular
PointInformation
pCachedInformation
);
boolean
checkInformation
(
PointInformation
pCachedInformation
);
}
src/de/tudarmstadt/maki/simonstrator/api/component/vehicular/caching/replacement/CacheReplacementStrategy.java
View file @
9c5fc670
...
...
@@ -20,7 +20,7 @@
package
de.tudarmstadt.maki.simonstrator.api.component.vehicular.caching.replacement
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.
Vehicular
PointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.PointInformation
;
public
interface
CacheReplacementStrategy
{
...
...
@@ -35,6 +35,5 @@ public interface CacheReplacementStrategy {
* @return true, if the existing cache entry should be replaced, false
* otherwise.
*/
boolean
replaceInformation
(
VehicularPointInformation
pCachedInformation
,
VehicularPointInformation
pSensedInformation
);
boolean
replaceInformation
(
PointInformation
pCachedInformation
,
PointInformation
pSensedInformation
);
}
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