|
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.]")); |
|
|
834 |
|
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"); |
833 |
NS_TEST_ASSERT_MSG_EQ (ok, true, "Could not SetAttributeFailSafe() a ConstantRandomVariable"); |
838 |
} |
834 |
} |
839 |
|
835 |
|