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
f609c951
Commit
f609c951
authored
Sep 18, 2017
by
Tobias Meuser
Browse files
Added PointInformation to support non-vehicular scenarios
parent
fb69918d
Changes
4
Show whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/vehicular/caching/DefaultCachingComponent.java
View file @
f609c951
...
...
@@ -64,6 +64,15 @@ public class DefaultCachingComponent implements CachingComponent, ConnectivityLi
return
null
;
}
@Override
public
<
T
>
boolean
containsEntry
(
T
pCacheEntry
)
{
if
(
_cache
.
containsKey
(
pCacheEntry
))
{
List
<?
extends
Object
>
cacheEntries
=
_cache
.
get
(
pCacheEntry
);
return
cacheEntries
.
contains
(
pCacheEntry
);
}
return
false
;
}
@Override
public
<
T
>
void
storeCacheEntry
(
T
pCacheEntry
)
{
if
(!
_cache
.
containsKey
(
pCacheEntry
.
getClass
()))
{
...
...
src/de/tud/kom/p2psim/impl/vehicular/caching/invalidation/DefaultCacheInvalidationStrategy.java
View file @
f609c951
...
...
@@ -21,7 +21,7 @@
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.
relevance
.VehicularPointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.
information
.VehicularPointInformation
;
public
class
DefaultCacheInvalidationStrategy
implements
CacheInvalidationStrategy
{
...
...
src/de/tud/kom/p2psim/impl/vehicular/caching/replacement/DefaultCacheReplacementStrategy.java
View file @
f609c951
...
...
@@ -21,7 +21,7 @@
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.
relevance
.VehicularPointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.
information
.VehicularPointInformation
;
public
class
DefaultCacheReplacementStrategy
implements
CacheReplacementStrategy
{
...
...
src/de/tud/kom/p2psim/impl/vehicular/relevance/PredictionBasedEventRelevanceCalculationComponent.java
View file @
f609c951
...
...
@@ -28,8 +28,8 @@ import java.util.Queue;
import
de.tudarmstadt.maki.simonstrator.api.Host
;
import
de.tudarmstadt.maki.simonstrator.api.Time
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.VehicleInformationComponent
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.information.VehicularPointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.relevance.EventRelevanceCalculationComponent
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.relevance.VehicularPointInformation
;
import
de.tudarmstadt.maki.simonstrator.api.component.vehicular.roadnetwork.RoadNetworkEdge
;
public
class
PredictionBasedEventRelevanceCalculationComponent
implements
EventRelevanceCalculationComponent
{
...
...
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