Index: src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc |
=================================================================== |
--- a/src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc |
+++ b/src/spectrum/examples/adhoc-aloha-ideal-phy-with-microwave-oven.cc |
@@ -191,8 +191,8 @@ |
socket.SetProtocol (1); |
OnOffHelper onoff ("ns3::PacketSocketFactory", Address (socket)); |
- onoff.SetAttribute ("OnTime", RandomVariableValue (ExponentialVariable (0.4))); |
- onoff.SetAttribute ("OffTime", RandomVariableValue (ExponentialVariable (0.1))); |
+ onoff.SetAttribute ("OnTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.4]")); |
+ onoff.SetAttribute ("OffTime", StringValue ("ns3::ExponentialRandomVariable[Mean=0.1]")); |
onoff.SetAttribute ("DataRate", DataRateValue (DataRate ("0.4Mbps"))); |
onoff.SetAttribute ("PacketSize", UintegerValue (1500)); |