-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp1906-TouchCom-message-carrier.h
71 lines (59 loc) · 1.89 KB
/
p1906-TouchCom-message-carrier.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
/* -*- 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 P1906_TOUCHCOM_MESSAGE_CARRIER
#define P1906_TOUCHCOM_MESSAGE_CARRIER
#include "ns3/object.h"
#include "ns3/nstime.h"
#include "ns3/ptr.h"
#include "ns3/p1906-message-carrier.h"
namespace ns3 {
class Packet;
/**
* \ingroup P1906 framework
*
* \class EstensionNameP1906MessageCarrier
*
* \brief Base class implementing the Message Carrier component of
* the P1906 framework
*/
class P1906TouchComMessageCarrier : public P1906MessageCarrier
{
public:
static TypeId GetTypeId (void);
P1906TouchComMessageCarrier ();
virtual ~P1906TouchComMessageCarrier ();
void SetSwarmSize(double ss);
double GetSwarmSize(void);
void SetLifespan(Time t);
Time GetLifespan(void);
private:
double m_swarmSize;
Time m_lifespan;
};
}
#endif /* P1906_TOUCHCOM_MESSAGE_CARRIER */