|
|
| 27 |
|
27 |
|
| 28 |
#include "ns3/object.h" |
28 |
#include "ns3/object.h" |
| 29 |
#include "ns3/random-variable.h" |
29 |
#include "ns3/random-variable.h" |
| 30 |
#include "ns3/node.h" |
|
|
| 31 |
#include <map> |
30 |
#include <map> |
| 32 |
|
31 |
|
| 33 |
namespace ns3 { |
32 |
namespace ns3 { |
|
|
| 495 |
virtual ~MatrixPropagationLossModel (); |
494 |
virtual ~MatrixPropagationLossModel (); |
| 496 |
|
495 |
|
| 497 |
/** |
496 |
/** |
| 498 |
* \brief Set loss (in dB, positive) between pair of nodes. |
497 |
* \brief Set loss (in dB, positive) between pair of ns-3 objects (typically, nodes) |
| 499 |
* |
498 |
* |
| 500 |
* \param a Source node |
499 |
* \param a Source object |
| 501 |
* \param b Destination node |
500 |
* \param b Destination object |
| 502 |
* \param loss a -> b path loss, positive in dB |
501 |
* \param loss a -> b path loss, positive in dB |
| 503 |
* \param symmetric If true (default), both a->b and b->a paths will be affected |
502 |
* \param symmetric If true (default), both a->b and b->a paths will be affected |
| 504 |
*/ |
503 |
*/ |
| 505 |
void SetLoss (Ptr<Node> a, Ptr<Node> b, double loss, bool symmetric = true); |
504 |
void SetLoss (Ptr<Object> a, Ptr<Object> b, double loss, bool symmetric = true); |
| 506 |
/// Set default loss (in dB, positive) to be used, infinity if not set |
505 |
/// Set default loss (in dB, positive) to be used, infinity if not set |
| 507 |
void SetDefaultLoss (double); |
506 |
void SetDefaultLoss (double); |
| 508 |
|
507 |
|