OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /*· |
| 3 * Copyright (c) YEAR COPYRIGHTHOLDER |
| 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: Michal Paszta· |
| 19 */ |
| 20 |
| 21 #ifndef SMECN_HELPER_H_ |
| 22 #define SMECN_HELPER_H_ |
| 23 |
| 24 #include "ns3/object-factory.h" |
| 25 #include "ns3/node.h" |
| 26 #include "ns3/node-container.h" |
| 27 #include "ns3/ipv4-routing-helper.h" |
| 28 |
| 29 namespace ns3 { |
| 30 |
| 31 /** |
| 32 * \ingroup smecn |
| 33 * \brief Helper class that adds SMECN routing to nodes. |
| 34 */ |
| 35 class SmecnHelper : public Ipv4RoutingHelper |
| 36 { |
| 37 public: |
| 38 SmecnHelper(); |
| 39 |
| 40 /** |
| 41 * \internal |
| 42 * \returns pointer to clone of this Helper |
| 43 * |
| 44 * This method is mainly for internal use by the other helpers; |
| 45 * clients are expected to free the dynamic memory allocated by this method |
| 46 */ |
| 47 SmecnHelper* Copy (void) const; |
| 48 |
| 49 /** |
| 50 * \param node the node on which the routing protocol will run |
| 51 * \returns a newly-created routing protocol |
| 52 * |
| 53 * This method will be called by ns3::InternetStackHelper::Install |
| 54 */ |
| 55 virtual Ptr<Ipv4RoutingProtocol> Create (Ptr<Node> node) const; |
| 56 /** |
| 57 * \param name the name of the attribute to set |
| 58 * \param value the value of the attribute to set. |
| 59 * |
| 60 * This method controls the attributes of ns3::smecn::RoutingProtocol |
| 61 */ |
| 62 void Set (std::string name, const AttributeValue &value); |
| 63 |
| 64 private: |
| 65 ObjectFactory m_agentFactory; |
| 66 }; |
| 67 |
| 68 } // namespace ns3 |
| 69 |
| 70 #endif /* SMECN_HELPER_H_ */ |
OLD | NEW |