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 namespace ns3
30 {
31 
40 class SatNodeInfo : public SimpleRefCount<SatNodeInfo>
41 {
42  public:
46  SatNodeInfo();
47 
54  SatNodeInfo(SatEnums::SatNodeType_t nodeType, uint32_t nodeId, Mac48Address macAddress);
55 
59  virtual ~SatNodeInfo();
60 
65  uint32_t GetNodeId() const;
66 
72 
77  Mac48Address GetMacAddress() const;
78 
79  private:
80  uint32_t m_nodeId;
82  Mac48Address m_macAddress;
83 };
84 
85 } // namespace ns3
86 
87 #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.