src/node/node.cc
changeset 2933 c7983cfa2cb3
parent 2735 f810ed605e00
child 2965 4b28e9740e3b
equal deleted inserted replaced
2932:db96af55f46e 2933:c7983cfa2cb3
    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> ())