author | Robert Ammon <ammo6818@vandals.uidaho.edu> |
Fri, 02 Jun 2017 14:45:29 +0200 | |
changeset 12904 | e949b994faad |
parent 12753 | 3fbb703f257f |
permissions | -rw-r--r-- |
7901 | 1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
|
3 |
* Copyright (c) 2011 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: Jaume Nin <jaume.nin@cttc.es> |
|
8402 | 19 |
* Nicola Baldo <nbaldo@cttc.es> |
7901 | 20 |
*/ |
21 |
||
8402 | 22 |
#ifndef PDCP_TAG_H |
23 |
#define PDCP_TAG_H |
|
7901 | 24 |
|
25 |
#include "ns3/packet.h" |
|
26 |
#include "ns3/nstime.h" |
|
27 |
||
28 |
||
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
29 |
namespace ns3 { |
7901 | 30 |
|
31 |
class Tag; |
|
32 |
||
33 |
/** |
|
8402 | 34 |
* Tag to calculate the per-PDU delay from eNb PDCP to UE PDCP |
7901 | 35 |
*/ |
36 |
||
8402 | 37 |
class PdcpTag : public Tag |
7901 | 38 |
{ |
39 |
public: |
|
12753
3fbb703f257f
lte: doxygen updates of model (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents:
10425
diff
changeset
|
40 |
/** |
3fbb703f257f
lte: doxygen updates of model (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents:
10425
diff
changeset
|
41 |
* \brief Get the type ID. |
3fbb703f257f
lte: doxygen updates of model (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents:
10425
diff
changeset
|
42 |
* \return the object TypeId |
3fbb703f257f
lte: doxygen updates of model (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents:
10425
diff
changeset
|
43 |
*/ |
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
44 |
static TypeId GetTypeId (void); |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
45 |
virtual TypeId GetInstanceTypeId (void) const; |
7901 | 46 |
|
47 |
/** |
|
8402 | 48 |
* Create an empty PDCP tag |
7901 | 49 |
*/ |
8402 | 50 |
PdcpTag (); |
7901 | 51 |
/** |
8402 | 52 |
* Create an PDCP tag with the given senderTimestamp |
12904
e949b994faad
lte: Additional doxygen corrections (patch set 5)
Robert Ammon <ammo6818@vandals.uidaho.edu>
parents:
12753
diff
changeset
|
53 |
* \param senderTimestamp the time stamp |
7901 | 54 |
*/ |
8402 | 55 |
PdcpTag (Time senderTimestamp); |
7901 | 56 |
|
8148
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
57 |
virtual void Serialize (TagBuffer i) const; |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
58 |
virtual void Deserialize (TagBuffer i); |
09e2d03022a2
run check-style on src/lte/model
Nicola Baldo <nbaldo@cttc.es>
parents:
7901
diff
changeset
|
59 |
virtual uint32_t GetSerializedSize () const; |
7901 | 60 |
virtual void Print (std::ostream &os) const; |
61 |
||
62 |
/** |
|
8402 | 63 |
* Get the instant when the PDCP delivers the PDU to the MAC SAP provider |
10425
1867d8c25aa7
doxygen warnings for lte module
Budiarto Herman <budiarto.herman@magister.fi>
parents:
8704
diff
changeset
|
64 |
* @return the sender timestamp |
7901 | 65 |
*/ |
8704
207fc5214d3c
removed inline methods from LtePdcpTag
Nicola Baldo <nbaldo@cttc.es>
parents:
8402
diff
changeset
|
66 |
Time GetSenderTimestamp (void) const; |
7901 | 67 |
|
68 |
/** |
|
69 |
* Set the sender timestamp |
|
8402 | 70 |
* @param senderTimestamp time stamp of the instant when the PDCP delivers the PDU to the MAC SAP provider |
7901 | 71 |
*/ |
8704
207fc5214d3c
removed inline methods from LtePdcpTag
Nicola Baldo <nbaldo@cttc.es>
parents:
8402
diff
changeset
|
72 |
void SetSenderTimestamp (Time senderTimestamp); |
7901 | 73 |
|
74 |
private: |
|
12753
3fbb703f257f
lte: doxygen updates of model (many thanks to Robert Ammon for initial patch)
Biljana Bojovic <biljana.bojovic@gmail.com>
parents:
10425
diff
changeset
|
75 |
Time m_senderTimestamp; ///< sender timestamp |
7901 | 76 |
|
77 |
}; |
|
78 |
||
79 |
} //namespace ns3 |
|
80 |
||
8402 | 81 |
#endif /* PDCP_TAG_H */ |