A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
ss-manager.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
#ifndef SS_MANAGER_H
24
#define SS_MANAGER_H
25
26
#include <stdint.h>
27
#include "
cid.h
"
28
#include "
ss-record.h
"
29
30
namespace
ns3
{
31
37
class
SSManager
:
public
Object
38
{
39
public
:
44
static
TypeId
GetTypeId
(
void
);
45
SSManager
(
void
);
46
~SSManager
(
void
);
52
SSRecord
*
CreateSSRecord
(
const
Mac48Address
&macAddress);
58
SSRecord
*
GetSSRecord
(
const
Mac48Address
&macAddress)
const
;
67
SSRecord
*
GetSSRecord
(
Cid
cid)
const
;
72
std::vector<SSRecord*>*
GetSSRecords
(
void
)
const
;
78
bool
IsInRecord
(
const
Mac48Address
&macAddress)
const
;
84
bool
IsRegistered
(
const
Mac48Address
&macAddress)
const
;
89
void
DeleteSSRecord
(
Cid
cid);
95
Mac48Address
GetMacAddress
(
Cid
cid)
const
;
100
uint32_t
GetNSSs
(
void
)
const
;
105
uint32_t
GetNRegisteredSSs
(
void
)
const
;
106
private
:
107
std::vector<SSRecord*> *
m_ssRecords
;
108
};
109
110
}
// namespace ns3
111
112
#endif
/* SS_MANAGER_H */
cid.h
ns3::Cid
Cid class.
Definition:
cid.h:38
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:44
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::SSManager
this class manages a list of SSrecords
Definition:
ss-manager.h:38
ns3::SSManager::~SSManager
~SSManager(void)
Definition:
ss-manager.cc:47
ns3::SSManager::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
ss-manager.cc:34
ns3::SSManager::IsInRecord
bool IsInRecord(const Mac48Address &macAddress) const
Check if address is in record.
Definition:
ss-manager.cc:114
ns3::SSManager::GetSSRecord
SSRecord * GetSSRecord(const Mac48Address &macAddress) const
Get SS record.
Definition:
ss-manager.cc:66
ns3::SSManager::GetNSSs
uint32_t GetNSSs(void) const
Get number of SSs.
Definition:
ss-manager.cc:166
ns3::SSManager::GetSSRecords
std::vector< SSRecord * > * GetSSRecords(void) const
Get SS records.
Definition:
ss-manager.cc:108
ns3::SSManager::CreateSSRecord
SSRecord * CreateSSRecord(const Mac48Address &macAddress)
Create SS record.
Definition:
ss-manager.cc:58
ns3::SSManager::IsRegistered
bool IsRegistered(const Mac48Address &macAddress) const
Check if address is registered.
Definition:
ss-manager.cc:127
ns3::SSManager::DeleteSSRecord
void DeleteSSRecord(Cid cid)
Delete SS record.
Definition:
ss-manager.cc:134
ns3::SSManager::GetNRegisteredSSs
uint32_t GetNRegisteredSSs(void) const
Get number of registered SSs.
Definition:
ss-manager.cc:172
ns3::SSManager::SSManager
SSManager(void)
Definition:
ss-manager.cc:42
ns3::SSManager::GetMacAddress
Mac48Address GetMacAddress(Cid cid) const
Get MAC address by CID.
Definition:
ss-manager.cc:160
ns3::SSManager::m_ssRecords
std::vector< SSRecord * > * m_ssRecords
the SS records
Definition:
ss-manager.h:107
ns3::SSRecord
This class is used by the base station to store some information related to subscriber station in the...
Definition:
ss-record.h:44
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ss-record.h
src
wimax
model
ss-manager.h
Generated on Tue Feb 6 2024 19:21:30 for ns-3 by
1.9.1