A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-simple-net-device.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 */
8
9#ifndef LTE_SIMPLE_NET_DEVICE_H
10#define LTE_SIMPLE_NET_DEVICE_H
11
12#include "ns3/error-model.h"
13#include "ns3/event-id.h"
14#include "ns3/lte-rlc.h"
15#include "ns3/node.h"
16#include "ns3/simple-channel.h"
17#include "ns3/simple-net-device.h"
18
19namespace ns3
20{
21
22/**
23 * \ingroup lte
24 * The LteSimpleNetDevice class implements the LTE simple net device.
25 * This class is used to provide a limited LteNetDevice functionalities that
26 * are necessary for testing purposes.
27 */
29{
30 public:
31 /**
32 * \brief Get the type ID.
33 * \return the object TypeId
34 */
35 static TypeId GetTypeId();
36
38 /**
39 * Constructor
40 *
41 * \param node the Node
42 */
44
45 ~LteSimpleNetDevice() override;
46 void DoDispose() override;
47
48 // inherited from NetDevice
49 bool Send(Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber) override;
50
51 protected:
52 // inherited from Object
53 void DoInitialize() override;
54};
55
56} // namespace ns3
57
58#endif // LTE_SIMPLE_NET_DEVICE_H
a polymophic address class
Definition address.h:90
The LteSimpleNetDevice class implements the LTE simple net device.
bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) override
static TypeId GetTypeId()
Get the type ID.
void DoDispose() override
Destructor implementation.
void DoInitialize() override
Initialize() implementation.
Smart pointer class similar to boost::intrusive_ptr.
This device assumes 48-bit mac addressing; there is also the possibility to add an ErrorModel if you ...
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.