bug 648: doxygen

This commit is contained in:
Mathieu Lacage
2009-10-01 11:16:04 +02:00
parent bcbcb7de49
commit 72c40036ea
3 changed files with 36 additions and 8 deletions

View File

@@ -9,11 +9,20 @@ namespace ns3 {
class Socket;
/**
* \brief an application which sends one ICMP ECHO request, waits for a REPLYs
* and reports the calculated RTT.
*
* Note: The RTT calculated is reported through a trace source.
*/
class V4Ping : public Application
{
public:
static TypeId GetTypeId (void);
/**
* create a pinger applications
*/
V4Ping ();
virtual ~V4Ping ();

View File

@@ -30,12 +30,6 @@ V4PingHelper::V4PingHelper (Ipv4Address remote)
m_factory.Set ("Remote", Ipv4AddressValue (remote));
}
void
V4PingHelper::SetAttribute (std::string name, const AttributeValue &value)
{
m_factory.Set (name, value);
}
ApplicationContainer
V4PingHelper::Install (Ptr<Node> node) const
{

View File

@@ -7,15 +7,40 @@
namespace ns3 {
/**
* \brief create a pinger application and associate it to a node
*
* This class creates one or multiple instances of ns3::V4Ping and associates
* it/them to one/multiple node(s).
*/
class V4PingHelper
{
public:
/**
* \param remote the address which should be pinged
*/
V4PingHelper (Ipv4Address remote);
void SetAttribute (std::string name, const AttributeValue &value);
/**
* \param nodes the list of nodes.
*
* Install a pinger application on each node in the input list of nodes.
* \returns a list of pinger applications, one for each input node
*/
ApplicationContainer Install (NodeContainer nodes) const;
/**
* \param node the node
*
* Install a pinger application on the input node
* \returns the pinger application created.
*/
ApplicationContainer Install (Ptr<Node> node) const;
/**
* \param nodeName the node
*
* Install a pinger application on the input node
* \returns the pinger application created.
*/
ApplicationContainer Install (std::string nodeName) const;
private: