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
429c83d7
Commit
429c83d7
authored
May 14, 2018
by
Tobias Meuser
Browse files
Minor changes
parent
f476dae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/vehicular/caching/DefaultCachingComponent.java
View file @
429c83d7
...
...
@@ -131,8 +131,8 @@ implements CachingComponent, ConnectivityListener {
@Override
public
<
T
extends
PointInformation
>
boolean
containsEntry
(
T
pCacheEntry
)
{
if
(
_cache
.
containsKey
(
pCacheEntry
))
{
List
<?
extends
Object
>
cacheEntries
=
_cache
.
get
(
pCacheEntry
);
if
(
_cache
.
containsKey
(
pCacheEntry
.
getClass
()
))
{
List
<?
extends
Object
>
cacheEntries
=
_cache
.
get
(
pCacheEntry
.
getClass
()
);
return
cacheEntries
.
contains
(
pCacheEntry
);
}
return
false
;
...
...
src/de/tud/kom/p2psim/impl/vehicular/caching/decision/MajorityVotingVectoralCacheDecisionStrategy.java
View file @
429c83d7
...
...
@@ -66,11 +66,11 @@ public class MajorityVotingVectoralCacheDecisionStrategy implements CacheDecisio
}
}
TemporalDependencyMatrix
dependencyMatrix
=
currentProperty
.
getDependencyMatrix
();
// TemporalDependencyMatrix dependencyMatrix = currentProperty.getDependencyMatrix();
//
// VectoralProperty agedProperty = currentProperty.age((Time.getCurrentTime() - maxTimestamp) / SCALING, dependencyMatrix);
VectoralProperty
agedProperty
=
currentProperty
.
age
((
Time
.
getCurrentTime
()
-
maxTimestamp
)
/
SCALING
,
dependencyMatrix
);
RoadInformation
roadInformation
=
new
RoadInformation
(
agedProperty
);
RoadInformation
roadInformation
=
new
RoadInformation
(
currentProperty
);
copyAttributes
((
RoadInformation
)
pSimilarPointInformation
.
get
(
0
),
roadInformation
);
...
...
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