diff -r 4e8cb1577144 -r 4b28e9740e3b src/common/error-model.cc --- a/src/common/error-model.cc Mon Apr 14 16:19:17 2008 -0700 +++ b/src/common/error-model.cc Thu Apr 17 13:42:25 2008 -0700 @@ -42,7 +42,7 @@ static TypeId tid = TypeId ("ns3::ErrorModel") .SetParent () .AddAttribute ("IsEnabled", "Whether this ErrorModel is enabled or not.", - Boolean (true), + BooleanValue (true), MakeBooleanAccessor (&ErrorModel::m_enable), MakeBooleanChecker ()) ; @@ -111,17 +111,17 @@ .SetParent () .AddConstructor () .AddAttribute ("ErrorUnit", "The error unit", - Enum (EU_BYTE), + EnumValue (EU_BYTE), MakeEnumAccessor (&RateErrorModel::m_unit), MakeEnumChecker (EU_BYTE, "EU_BYTE", EU_PKT, "EU_PKT", EU_BIT, "EU_BIT")) .AddAttribute ("ErrorRate", "The error rate.", - Double (0.0), + DoubleValue (0.0), MakeDoubleAccessor (&RateErrorModel::m_rate), MakeDoubleChecker ()) .AddAttribute ("RanVar", "The decision variable attached to this error model.", - UniformVariable (0.0, 1.0), + RandomVariableValue (UniformVariable (0.0, 1.0)), MakeRandomVariableAccessor (&RateErrorModel::m_ranvar), MakeRandomVariableChecker ()) ;