View | Details | Raw Unified | Return to bug 2446
Collapse All | Expand All

(-)a/src/core/test/attribute-test-suite.cc (-4 / +3 lines)
 Lines 823-839    Link Here 
823
  //
823
  //
824
  // Try to set a UniformRandomVariable
824
  // Try to set a UniformRandomVariable
825
  //
825
  //
826
  ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
826
  ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
827
  NS_TEST_ASSERT_MSG_EQ (ok, true, "Could not SetAttributeFailSafe() a UniformRandomVariable");
827
  NS_TEST_ASSERT_MSG_EQ (ok, true, "Could not SetAttributeFailSafe() a UniformRandomVariable");
828
828
829
  //
829
  //
830
  // Try to set a <snicker> ConstantRandomVariable
830
  // Try to set a <snicker> ConstantRandomVariable
831
  //
831
  //
832
  //  ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::ConstantRandomVariable[Constant=10.0]"));
832
  // ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::ConstantRandomVariable[Constant=10.0]"));
833
  //ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
833
  // ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
834
834
835
  ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"));
835
  ok = p->SetAttributeFailSafe ("TestRandom", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"));
836
837
  NS_TEST_ASSERT_MSG_EQ (ok, true, "Could not SetAttributeFailSafe() a ConstantRandomVariable");
836
  NS_TEST_ASSERT_MSG_EQ (ok, true, "Could not SetAttributeFailSafe() a ConstantRandomVariable");
838
}
837
}
839
838
(-)a/src/traffic-control/examples/pfifo-vs-red.cc (-2 / +2 lines)
 Lines 138-145    Link Here 
138
138
139
  // Install on/off app on all right side nodes
139
  // Install on/off app on all right side nodes
140
  OnOffHelper clientHelper ("ns3::TcpSocketFactory", Address ());
140
  OnOffHelper clientHelper ("ns3::TcpSocketFactory", Address ());
141
  clientHelper.SetAttribute ("OnTime", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
141
  clientHelper.SetAttribute ("OnTime", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
142
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
142
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
143
  Address sinkLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port));
143
  Address sinkLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port));
144
  PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", sinkLocalAddress);
144
  PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", sinkLocalAddress);
145
  ApplicationContainer sinkApps; 
145
  ApplicationContainer sinkApps; 
(-)a/src/traffic-control/examples/red-vs-ared.cc (-2 / +2 lines)
 Lines 138-145    Link Here 
138
138
139
  // Install on/off app on all right side nodes
139
  // Install on/off app on all right side nodes
140
  OnOffHelper clientHelper ("ns3::TcpSocketFactory", Address ());
140
  OnOffHelper clientHelper ("ns3::TcpSocketFactory", Address ());
141
  clientHelper.SetAttribute ("OnTime", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
141
  clientHelper.SetAttribute ("OnTime", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
142
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable[Min=0.,Max=1.]"));
142
  clientHelper.SetAttribute ("OffTime", StringValue ("ns3::UniformRandomVariable[Min=0.|Max=1.]"));
143
  Address sinkLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port));
143
  Address sinkLocalAddress (InetSocketAddress (Ipv4Address::GetAny (), port));
144
  PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", sinkLocalAddress);
144
  PacketSinkHelper packetSinkHelper ("ns3::TcpSocketFactory", sinkLocalAddress);
145
  ApplicationContainer sinkApps;
145
  ApplicationContainer sinkApps;

Return to bug 2446