satellite-node-info.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2013 Magister Solutions Ltd
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: Jani Puttonen <jani.puttonen@magister.fi>
19  */
20 
21 #ifndef SATELLITE_NODE_INFO_H_
22 #define SATELLITE_NODE_INFO_H_
23 
24 #include "satellite-enums.h"
25 
26 #include <ns3/mac48-address.h>
27 #include <ns3/simple-ref-count.h>
28 
29 #include <stdint.h>
30 
31 namespace ns3
32 {
33 
42 class SatNodeInfo : public SimpleRefCount<SatNodeInfo>
43 {
44  public:
48  SatNodeInfo();
49 
56  SatNodeInfo(SatEnums::SatNodeType_t nodeType, uint32_t nodeId, Mac48Address macAddress);
57 
61  virtual ~SatNodeInfo();
62 
67  uint32_t GetNodeId() const;
68 
74 
79  Mac48Address GetMacAddress() const;
80 
81  private:
82  uint32_t m_nodeId;
84  Mac48Address m_macAddress;
85 };
86 
87 } // namespace ns3
88 
89 #endif /* SATELLITE_NODE_INFO_H_ */
SatNodeType_t
Node type used for packet tracing.
The SatNodeInfo implements a container for all needed node related information.
virtual ~SatNodeInfo()
Destructor for SatNodeInfo.
SatEnums::SatNodeType_t m_nodeType
uint32_t GetNodeId() const
Get node identifier.
Mac48Address GetMacAddress() const
Get MAC address.
SatEnums::SatNodeType_t GetNodeType() const
Get Node type (UT, SAT, GW, NCC, TER)
Mac48Address m_macAddress
SatNodeInfo()
Default constructor.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.