Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SEAM
seamcat
Commits
43f6292c
Commit
43f6292c
authored
1 year ago
by
Stephan Korsholm
Browse files
Options
Download
Email Patches
Plain Diff
#153
: Fix bug, add test
parent
a97c05a1
master
#187_FDP
#253_IMT2020_Results_enh
#256_EPP_15_ClutterHeight
119-geo-satellite-down-link-plugin
119-geo-satellite-down-link-system-plugin-as-interferer
119-merge
174-load-relative-positioning-from-file
204-alternative-approaches
204-cpu-time-only-approx-40-is-used
215-compare-tool-improvements-2
221-opening-workspaces-with-embedded-jar
251-add-info-parameter-to-samples
254-extending-event-results-enhancements-to-other-cellular
254-extending-event-results-enhancements-to-other-cellular-ofdma
254_alt
Advanced_EPPTest
5.5.1-loctime-1
5.5.1-ALPHA-5
5.5.1-ALPHA-4
5.5.1-ALPHA-3
5.5.1-ALPHA-2
5.5.0-official
5.5.0-beta-2
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/src/main/java/org/seamcat/model/systems/ofdmadownlink/simulation/OFDMADownLinkSimulation.java
+1
-1
...ems/ofdmadownlink/simulation/OFDMADownLinkSimulation.java
core/src/test/java/org/seamcat/model/systems/ofdmadownlink/simulation/TestOFDMADownLinkSimulation.java
+25
-0
...ofdmadownlink/simulation/TestOFDMADownLinkSimulation.java
core/src/test/resources/integrationtests/Workspace_2.sws
+0
-0
core/src/test/resources/integrationtests/Workspace_2.sws
with
26 additions
and
1 deletion
+26
-1
core/src/main/java/org/seamcat/model/systems/ofdmadownlink/simulation/OFDMADownLinkSimulation.java
+
1
-
1
View file @
43f6292c
...
...
@@ -229,7 +229,7 @@ public class OFDMADownLinkSimulation implements SimulationInstance {
}
private
static
void
addMSParameters
(
VictimImpl
victim
,
AntennaResult
msRes
)
{
msRes
.
setValue
(
AchievedSINR
,
round
(
victim
.
get
AchievedBitrate
()));
msRes
.
setValue
(
AchievedSINR
,
round
(
victim
.
get
Sinr
()));
msRes
.
setValue
(
FQ
,
round
(
victim
.
getConnection
().
getUserTerminal
().
getFrequency
()));
msRes
.
setValue
(
BANDWIDTH
,
round
(
victim
.
getConnection
().
getUserTerminal
().
getBandwidth
()));
}
...
...
This diff is collapsed.
Click to expand it.
core/src/test/java/org/seamcat/model/systems/ofdmadownlink/simulation/TestOFDMADownLinkSimulation.java
0 → 100644
+
25
-
0
View file @
43f6292c
package
org.seamcat.model.systems.ofdmadownlink.simulation
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
seamcat
.
model
.
factory
.
Factory
.
results
;
import
org.junit.Test
;
import
org.seamcat.integrationtests.DeterministicWorkspaceLoader
;
import
org.seamcat.model.simulation.result.*
;
import
org.seamcat.model.types.Unit
;
public
class
TestOFDMADownLinkSimulation
extends
DeterministicWorkspaceLoader
{
@Test
public
void
testAchievedSINR
()
throws
Exception
{
loadWorkspace
(
"/Workspace_2.sws"
);
workspace
.
setNumberOfEvents
(
1
);
EventResult
eventResult
=
runSimulation
(
1
);
UniqueValueDef
AchievedSINR
=
results
().
uniqueValue
(
null
,
ValueName
.
ACHIEVED_SINR
,
Unit
.
dB
,
true
);
for
(
Victim
victim
:
eventResult
.
getVictimResult
().
getVictims
())
{
LinkResult
result
=
victim
.
getLinkResult
();
AntennaResult
rxResult
=
result
.
rxAntenna
();
Double
achievedSINR
=
rxResult
.
getValue
(
AchievedSINR
);
assertEquals
(((
VictimImpl
)
victim
).
getSinr
(),
achievedSINR
.
doubleValue
(),
0.001
);
}
}
}
This diff is collapsed.
Click to expand it.
core/src/test/resources/integrationtests/Workspace_2.sws
0 → 100644
+
0
-
0
View file @
43f6292c
File added
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets