A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
uan-transducer-hd.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 University of Washington
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: Leonard Tracy <lentracy@gmail.com>
19
*/
20
21
#ifndef UAN_TRANSDUCER_HD_H
22
#define UAN_TRANSDUCER_HD_H
23
24
#include "
uan-transducer.h
"
25
#include "ns3/simulator.h"
26
namespace
ns3 {
27
34
class
UanTransducerHd
:
public
UanTransducer
35
{
36
public
:
37
UanTransducerHd
();
38
virtual
~UanTransducerHd
();
39
40
static
TypeId
GetTypeId
(
void
);
41
42
// inherited methods
43
virtual
State
GetState
(
void
)
const
;
44
virtual
bool
IsRx
(
void
)
const
;
45
virtual
bool
IsTx
(
void
)
const
;
46
virtual
const
ArrivalList
&
GetArrivalList
(
void
)
const
;
47
virtual
void
Receive
(
Ptr<Packet>
packet,
double
rxPowerDb,
UanTxMode
txMode,
UanPdp
pdp);
48
virtual
void
Transmit
(
Ptr<UanPhy>
src,
Ptr<Packet>
packet,
double
txPowerDb,
UanTxMode
txMode);
49
virtual
void
SetChannel
(
Ptr<UanChannel>
chan);
50
virtual
Ptr<UanChannel>
GetChannel
(
void
)
const
;
51
virtual
void
AddPhy
(
Ptr<UanPhy>
);
52
virtual
const
UanPhyList
&
GetPhyList
(
void
)
const
;
53
virtual
void
Clear
(
void
);
54
55
private
:
56
State
m_state
;
57
ArrivalList
m_arrivalList
;
58
UanPhyList
m_phyList
;
59
Ptr<UanChannel>
m_channel
;
60
EventId
m_endTxEvent
;
61
Time
m_endTxTime
;
62
bool
m_cleared
;
63
64
void
RemoveArrival
(
UanPacketArrival
arrival);
65
void
EndTx
(
void
);
66
protected
:
67
virtual
void
DoDispose
();
68
};
69
70
}
71
72
#endif
/* UAN_TRANSDUCER_HD_H */
src
uan
model
uan-transducer-hd.h
Generated on Tue May 14 2013 11:08:34 for ns-3 by
1.8.1.2