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
0900a883
Commit
0900a883
authored
Dec 13, 2023
by
Julian Zobel
Browse files
Allow to change the bandwidth of a PHY by config
parent
0b56ab7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/RangedTopologyView.java
View file @
0900a883
...
...
@@ -112,6 +112,12 @@ public class RangedTopologyView extends AbstractTopologyView<RangedLink> {
public
RangedTopologyView
(
String
phy
,
double
range
)
{
this
(
PhyType
.
valueOf
(
phy
),
range
);
}
@XMLConfigurableConstructor
({
"phy"
,
"range"
,
"rawBandwidth"
})
public
RangedTopologyView
(
String
phy
,
double
range
,
long
rawBandwidth
)
{
this
(
PhyType
.
valueOf
(
phy
),
range
);
this
.
getPhyType
().
setBandwdith
(
rawBandwidth
);
}
@Override
protected
void
addedMac
(
MacLayer
mac
)
{
...
...
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