37 static TypeId tid = TypeId ("ns3::Node") |
37 static TypeId tid = TypeId ("ns3::Node") |
38 .SetParent<Object> () |
38 .SetParent<Object> () |
39 .AddAttribute ("DeviceList", "The list of devices associated to this Node.", |
39 .AddAttribute ("DeviceList", "The list of devices associated to this Node.", |
40 ObjectVector (), |
40 ObjectVector (), |
41 MakeObjectVectorAccessor (&Node::m_devices), |
41 MakeObjectVectorAccessor (&Node::m_devices), |
42 MakeObjectVectorChecker ()) |
42 MakeObjectVectorChecker<NetDevice> ()) |
43 .AddAttribute ("ApplicationList", "The list of applications associated to this Node.", |
43 .AddAttribute ("ApplicationList", "The list of applications associated to this Node.", |
44 ObjectVector (), |
44 ObjectVector (), |
45 MakeObjectVectorAccessor (&Node::m_applications), |
45 MakeObjectVectorAccessor (&Node::m_applications), |
46 MakeObjectVectorChecker ()) |
46 MakeObjectVectorChecker<Application> ()) |
47 .AddAttribute ("Id", "The id (unique integer) of this Node.", |
47 .AddAttribute ("Id", "The id (unique integer) of this Node.", |
48 TypeId::ATTR_GET, // allow only getting it. |
48 TypeId::ATTR_GET, // allow only getting it. |
49 Uinteger (0), |
49 Uinteger (0), |
50 MakeUintegerAccessor (&Node::m_id), |
50 MakeUintegerAccessor (&Node::m_id), |
51 MakeUintegerChecker<uint32_t> ()) |
51 MakeUintegerChecker<uint32_t> ()) |