A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
lte-simple-net-device.h
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Manuel Requena <manuel.requena@cttc.es>
19  */
20 
21 #ifndef LTE_SIMPLE_NET_DEVICE_H
22 #define LTE_SIMPLE_NET_DEVICE_H
23 
24 #include "ns3/event-id.h"
25 #include "ns3/node.h"
26 #include "ns3/error-model.h"
27 #include "ns3/simple-channel.h"
28 #include "ns3/simple-net-device.h"
29 #include "ns3/lte-rlc.h"
30 
31 namespace ns3 {
32 
33 
39 {
40 
41 public:
42  static TypeId GetTypeId (void);
43 
44  LteSimpleNetDevice (void);
46 
47  virtual ~LteSimpleNetDevice (void);
48  virtual void DoDispose ();
49 
50 
51  // inherited from NetDevice
52  virtual bool Send (Ptr<Packet> packet, const Address& dest, uint16_t protocolNumber);
53 
54 
55 protected:
56  // inherited from Object
57  virtual void DoInitialize (void);
58 
59 };
60 
61 } // namespace ns3
62 
63 
64 #endif // LTE_SIMPLE_NET_DEVICE_H
a polymophic address class
Definition: address.h:86
virtual void DoInitialize(void)
simple net device for simple things and testing
virtual bool Send(Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
a unique identifier for an interface.
Definition: type-id.h:44