Loading...
Searching...
No Matches
satellite-node-info.cc
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#include "satellite-node-info.h"
22
23#include "ns3/log.h"
24
25NS_LOG_COMPONENT_DEFINE("SatNodeInfo");
26
27namespace ns3
28{
29
31 : m_nodeId(0),
32 m_nodeType(SatEnums::NT_UNDEFINED),
34{
35}
36
37SatNodeInfo::SatNodeInfo(SatEnums::SatNodeType_t nodeType, uint32_t nodeId, Mac48Address macAddress)
38 : m_nodeId(nodeId),
39 m_nodeType(nodeType),
40 m_macAddress(macAddress)
41{
42}
43
47
48uint32_t
50{
51 NS_LOG_FUNCTION(this);
52 return m_nodeId;
53}
54
57{
58 NS_LOG_FUNCTION(this);
59 return m_nodeType;
60}
61
62Mac48Address
64{
65 NS_LOG_FUNCTION(this);
66 return m_macAddress;
67}
68
69} // namespace ns3
SatEnums class is for simplifying the use of enumerators in the satellite module.
SatNodeType_t
Node type used for packet tracing.
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.