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
cid-factory.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2007,2008,2009 INRIA, UDcast
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
* Authors: Jahanzeb Farooq <jahanzeb.farooq@sophia.inria.fr>
19
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
20
* <amine.ismail@UDcast.com>
21
*/
22
23
24
#ifndef CONNECTION_IDENTIFIER_FACTORY_H
25
#define CONNECTION_IDENTIFIER_FACTORY_H
26
27
#include <stdint.h>
28
#include "
cid.h
"
29
30
namespace
ns3
{
31
45
class
CidFactory
46
{
47
public
:
51
CidFactory
(
void
);
56
Cid
AllocateBasic
(
void
);
61
Cid
AllocatePrimary
(
void
);
66
Cid
AllocateTransportOrSecondary
(
void
);
71
Cid
AllocateMulticast
(
void
);
72
73
Cid
Allocate
(
enum
Cid::Type
type);
74
75
bool
IsTransport
(
Cid
cid)
const
;
76
bool
IsPrimary
(
Cid
cid)
const
;
77
bool
IsBasic
(
Cid
cid)
const
;
78
83
void
FreeCid
(
Cid
cid);
84
85
private
:
86
uint16_t
m_m
;
87
88
uint16_t
m_basicIdentifier
;
89
uint16_t
m_primaryIdentifier
;
90
uint16_t
m_transportOrSecondaryIdentifier
;
91
uint16_t
m_multicastPollingIdentifier
;
92
};
93
94
}
// namespace ns3
95
96
#endif
/* CONNECTION_IDENTIFIER_FACTORY_H */
ns3::CidFactory::CidFactory
CidFactory(void)
Create a cid factory with a default value for m of 0x5500.
Definition:
cid-factory.cc:30
ns3::CidFactory::m_basicIdentifier
uint16_t m_basicIdentifier
Definition:
cid-factory.h:88
ns3::CidFactory::AllocateBasic
Cid AllocateBasic(void)
This function returns the next basic CID.
Definition:
cid-factory.cc:41
ns3::CidFactory::IsBasic
bool IsBasic(Cid cid) const
Definition:
cid-factory.cc:111
ns3::CidFactory::m_multicastPollingIdentifier
uint16_t m_multicastPollingIdentifier
Definition:
cid-factory.h:91
ns3::CidFactory::FreeCid
void FreeCid(Cid cid)
Notify the factory that the connection associated to this cid has been killed and that this cid can b...
Definition:
cid-factory.cc:119
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::CidFactory::AllocatePrimary
Cid AllocatePrimary(void)
This function returns the next primary basic CID.
Definition:
cid-factory.cc:49
ns3::Cid
Definition:
cid.h:35
ns3::CidFactory::m_transportOrSecondaryIdentifier
uint16_t m_transportOrSecondaryIdentifier
Definition:
cid-factory.h:90
ns3::CidFactory::m_m
uint16_t m_m
Definition:
cid-factory.h:86
ns3::CidFactory::IsTransport
bool IsTransport(Cid cid) const
Definition:
cid-factory.cc:99
cid.h
ns3::CidFactory::AllocateMulticast
Cid AllocateMulticast(void)
This function returns the next Multicast CID.
Definition:
cid-factory.cc:65
ns3::CidFactory::Allocate
Cid Allocate(enum Cid::Type type)
Definition:
cid-factory.cc:74
ns3::CidFactory
This class is used exclusively by the BS to allocate CIDs to new connections.
Definition:
cid-factory.h:45
ns3::CidFactory::AllocateTransportOrSecondary
Cid AllocateTransportOrSecondary(void)
This function returns the next Transport (or Secondary) CID.
Definition:
cid-factory.cc:57
ns3::CidFactory::IsPrimary
bool IsPrimary(Cid cid) const
Definition:
cid-factory.cc:105
ns3::Cid::Type
Type
Definition:
cid.h:38
ns3::CidFactory::m_primaryIdentifier
uint16_t m_primaryIdentifier
Definition:
cid-factory.h:89
src
wimax
model
cid-factory.h
Generated on Thu Feb 5 2015 18:33:58 for ns-3 by
1.8.9.1