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
Show 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 @@
...
@@ -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.
Vehicular
PointInformation
;
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
(
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 @@
...
@@ -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.
Vehicular
PointInformation
;
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
);
}
}
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