A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lr-wpan
model
lr-wpan-lqi-tag.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2013 Fraunhofer FKIE
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:
19
* Sascha Alexander Jopen <jopen@cs.uni-bonn.de>
20
*/
21
#ifndef LR_WPAN_LQI_TAG_H
22
#define LR_WPAN_LQI_TAG_H
23
24
#include <ns3/tag.h>
25
26
namespace
ns3
{
27
28
class
LrWpanLqiTag
:
public
Tag
29
{
30
public
:
36
static
TypeId
GetTypeId
(
void
);
37
38
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
39
43
LrWpanLqiTag
(
void
);
44
49
LrWpanLqiTag
(uint8_t lqi);
50
51
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
52
virtual
void
Serialize
(
TagBuffer
i)
const
;
53
virtual
void
Deserialize
(
TagBuffer
i);
54
virtual
void
Print
(std::ostream &os)
const
;
55
61
void
Set
(uint8_t lqi);
62
68
uint8_t
Get
(
void
)
const
;
69
private
:
73
uint8_t
m_lqi
;
74
};
75
76
77
}
78
#endif
/* LR_WPAN_LQI_TAG_H */
ns3::LrWpanLqiTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
lr-wpan-lqi-tag.cc:66
ns3::LrWpanLqiTag::m_lqi
uint8_t m_lqi
The current LQI value of the tag.
Definition:
lr-wpan-lqi-tag.h:73
ns3::LrWpanLqiTag
Introspection did not find any typical Config paths.
Definition:
lr-wpan-lqi-tag.h:28
ns3::LrWpanLqiTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
lr-wpan-lqi-tag.cc:29
ns3::LrWpanLqiTag::Print
virtual void Print(std::ostream &os) const
Definition:
lr-wpan-lqi-tag.cc:78
ns3::LrWpanLqiTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
lr-wpan-lqi-tag.cc:72
ns3::LrWpanLqiTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
lr-wpan-lqi-tag.cc:60
ns3::LrWpanLqiTag::Get
uint8_t Get(void) const
Get the LQI value.
Definition:
lr-wpan-lqi-tag.cc:90
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:36
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LrWpanLqiTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
lr-wpan-lqi-tag.cc:44
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::LrWpanLqiTag::LrWpanLqiTag
LrWpanLqiTag(void)
Create a LrWpanLqiTag with the default LQI 0.
Definition:
lr-wpan-lqi-tag.cc:49
ns3::LrWpanLqiTag::Set
void Set(uint8_t lqi)
Set the LQI to the given value.
Definition:
lr-wpan-lqi-tag.cc:84
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
Generated on Wed Nov 7 2018 10:01:58 for ns-3 by
1.8.14