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
PeerfactSim.KOM
Commits
eec8b45b
Commit
eec8b45b
authored
Sep 18, 2017
by
Tobias Meuser
Browse files
Adjusted method to fixed methods in interface
parent
5a51bd62
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/vehicular/caching/invalidation/DefaultCacheInvalidationStrategy.java
View file @
eec8b45b
...
@@ -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.
Vehicular
PointInformation
;
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
;
}
}
...
...
src/de/tud/kom/p2psim/impl/vehicular/caching/replacement/DefaultCacheReplacementStrategy.java
View file @
eec8b45b
...
@@ -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.
Vehicular
PointInformation
;
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
);
}
}
}
}
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