We cannot default-construct the position of a mobility model.

This commit is contained in:
Mathieu Lacage
2008-09-02 14:44:25 -07:00
parent 39daae1374
commit 4cfeba2bf7

View File

@@ -31,7 +31,7 @@ MobilityModel::GetTypeId (void)
static TypeId tid = TypeId ("ns3::MobilityModel")
.SetParent<Object> ()
.AddAttribute ("Position", "The current position of the mobility model.",
TypeId::ATTR_SGC,
TypeId::ATTR_SET | TypeId::ATTR_GET,
VectorValue (Vector (0.0, 0.0, 0.0)),
MakeVectorAccessor (&MobilityModel::SetPosition,
&MobilityModel::GetPosition),