-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp1906-TouchCom-medium.h
73 lines (60 loc) · 2.07 KB
/
p1906-TouchCom-medium.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright � 2015 by IEEE.
*
* This source file is an essential part of IEEE P1906.1,
* Recommended Practice for Nanoscale and Molecular
* Communication Framework.
* Verbatim copies of this source file may be used and
* distributed without restriction. Modifications to this source
* file as permitted in IEEE P1906.1 may also be made and
* distributed. All other uses require permission from the IEEE
* Standards Department ([email protected]). All other rights
* reserved.
*
* This source file is provided on an AS IS basis.
* The IEEE disclaims ANY WARRANTY EXPRESS OR IMPLIED INCLUDING
* ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR USE FOR A
* PARTICULAR PURPOSE.
* The user of the source file shall indemnify and hold
* IEEE harmless from any damages or liability arising out of
* the use thereof.
*
* Author: Giuseppe Piro - Telematics Lab Research Group
* Politecnico di Bari
* telematics.poliba.it/piro
*/
#ifndef EXTENSION_NAME_P1906_MEDIUM_H
#define EXTENSION_NAME_P1906_MEDIUM_H
#include "ns3/net-device.h"
#include "ns3/channel.h"
#include "ns3/packet.h"
#include "ns3/p1906-medium.h"
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
namespace ns3 {
/**
* \ingroup P1906 framework
*
* \class ExtensionNameP1906Medium
*
* \brief This class implements the medium of the P1906 framework.
*/
class ExtensionNameP1906Medium : public P1906Medium
{
public:
ExtensionNameP1906Medium ();
virtual ~ExtensionNameP1906Medium ();
static TypeId GetTypeId ();
void HandleTransmission (Ptr<P1906CommunicationInterface> src,
Ptr<P1906MessageCarrier> message,
Ptr<P1906Field> field);
void HandleReception (Ptr<P1906CommunicationInterface> src, Ptr<P1906CommunicationInterface> dst, Ptr<P1906MessageCarrier> message);
protected:
virtual void DoDispose ();
};
}
#endif /* EXTENSION_NAME_P1906_MEDIUM_H */