|
|
| 22 |
#define IPV6_ROUTING_HELPER_H |
22 |
#define IPV6_ROUTING_HELPER_H |
| 23 |
|
23 |
|
| 24 |
#include "ns3/ptr.h" |
24 |
#include "ns3/ptr.h" |
|
|
25 |
#include "ns3/nstime.h" |
| 26 |
#include "ns3/output-stream-wrapper.h" |
| 25 |
|
27 |
|
| 26 |
namespace ns3 { |
28 |
namespace ns3 { |
| 27 |
|
29 |
|
|
|
| 61 |
* \returns a newly-created routing protocol |
63 |
* \returns a newly-created routing protocol |
| 62 |
*/ |
64 |
*/ |
| 63 |
virtual Ptr<Ipv6RoutingProtocol> Create (Ptr<Node> node) const = 0; |
65 |
virtual Ptr<Ipv6RoutingProtocol> Create (Ptr<Node> node) const = 0; |
|
|
66 |
|
| 67 |
/** |
| 68 |
* \brief prints the routing tables of all nodes at a particular time. |
| 69 |
* \param printTime the time at which the routing table is supposed to be printed. |
| 70 |
* \param stream The output stream object to use |
| 71 |
* |
| 72 |
* This method calls the PrintRoutingTable() method of the |
| 73 |
* Ipv6RoutingProtocol stored in the Ipv6 object, for all nodes at the |
| 74 |
* specified time; the output format is routing protocol-specific. |
| 75 |
*/ |
| 76 |
void PrintRoutingTableAllAt (Time printTime, Ptr<OutputStreamWrapper> stream) const; |
| 77 |
|
| 78 |
/** |
| 79 |
* \brief prints the routing tables of all nodes at regular intervals specified by user. |
| 80 |
* \param printInterval the time interval for which the routing table is supposed to be printed. |
| 81 |
* \param stream The output stream object to use |
| 82 |
* |
| 83 |
* This method calls the PrintRoutingTable() method of the |
| 84 |
* Ipv6RoutingProtocol stored in the Ipv6 object, for all nodes at the |
| 85 |
* specified time interval; the output format is routing protocol-specific. |
| 86 |
*/ |
| 87 |
void PrintRoutingTableAllEvery (Time printInterval, Ptr<OutputStreamWrapper> stream) const; |
| 88 |
|
| 89 |
/** |
| 90 |
* \brief prints the routing tables of a node at a particular time. |
| 91 |
* \param printTime the time at which the routing table is supposed to be printed. |
| 92 |
* \param node The node ptr for which we need the routing table to be printed |
| 93 |
* \param stream The output stream object to use |
| 94 |
* |
| 95 |
* This method calls the PrintRoutingTable() method of the |
| 96 |
* Ipv6RoutingProtocol stored in the Ipv6 object, for the selected node |
| 97 |
* at the specified time; the output format is routing protocol-specific. |
| 98 |
*/ |
| 99 |
void PrintRoutingTableAt (Time printTime, Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const; |
| 100 |
|
| 101 |
/** |
| 102 |
* \brief prints the routing tables of a node at regular intervals specified by user. |
| 103 |
* \param printInterval the time interval for which the routing table is supposed to be printed. |
| 104 |
* \param node The node ptr for which we need the routing table to be printed |
| 105 |
* \param stream The output stream object to use |
| 106 |
* |
| 107 |
* This method calls the PrintRoutingTable() method of the |
| 108 |
* Ipv6RoutingProtocol stored in the Ipv6 object, for the selected node |
| 109 |
* at the specified interval; the output format is routing protocol-specific. |
| 110 |
*/ |
| 111 |
void PrintRoutingTableEvery (Time printInterval, Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const; |
| 112 |
|
| 113 |
private: |
| 114 |
void Print (Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const; |
| 115 |
void PrintEvery (Time printInterval, Ptr<Node> node, Ptr<OutputStreamWrapper> stream) const; |
| 64 |
}; |
116 |
}; |
| 65 |
|
117 |
|
| 66 |
} // namespace ns3 |
118 |
} // namespace ns3 |