satellite-on-off-application.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2014 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: Sami Rantanen <sami.rantanen@magister.fi>
19  */
20 #ifndef SAT_ONOFF_APPLICATION_H
21 #define SAT_ONOFF_APPLICATION_H
22 
23 #include <ns3/onoff-application.h>
24 
25 namespace ns3
26 {
27 
28 class Socket;
29 
38 class SatOnOffApplication : public OnOffApplication
39 {
40  public:
43  static TypeId GetTypeId(void);
44 
49 
53  virtual ~SatOnOffApplication();
54 
60  void EnableStatisticTags(bool enableStatus);
61 
67  bool IsStatisticTagsEnabled() const;
68 
74  void SendPacketTrace(Ptr<const Packet> packet);
75 
76  private:
79 };
80 
81 } // namespace ns3
82 
83 #endif /* SAT_ONOFF_APPLICATION_H */
This class implements Satellite specific OnOff application.
void SendPacketTrace(Ptr< const Packet > packet)
Trace callback for on-off application Tx.
void EnableStatisticTags(bool enableStatus)
Enable or disable statistic tags.
bool m_isStatisticsTagsEnabled
EnableStatisticsTags attribute.
SatOnOffApplication()
Constructor for Satellite specific on-off application.
bool IsStatisticTagsEnabled() const
Get enable status of statistic tags.
virtual ~SatOnOffApplication()
Destructor Satellite specific on-off application.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.