SetGroupName for propagation module
This commit is contained in:
@@ -37,35 +37,29 @@ TypeId
|
||||
Cost231PropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Cost231PropagationLossModel")
|
||||
|
||||
.SetParent<PropagationLossModel> ()
|
||||
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<Cost231PropagationLossModel> ()
|
||||
|
||||
.AddAttribute ("Lambda",
|
||||
"The wavelength (default is 2.3 GHz at 300 000 km/s).",
|
||||
DoubleValue (300000000.0 / 2.3e9),
|
||||
MakeDoubleAccessor (&Cost231PropagationLossModel::m_lambda),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("Frequency",
|
||||
"The Frequency (default is 2.3 GHz).",
|
||||
DoubleValue (2.3e9),
|
||||
MakeDoubleAccessor (&Cost231PropagationLossModel::m_frequency),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("BSAntennaHeight",
|
||||
"BS Antenna Height (default is 50m).",
|
||||
DoubleValue (50.0),
|
||||
MakeDoubleAccessor (&Cost231PropagationLossModel::m_BSAntennaHeight),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("SSAntennaHeight",
|
||||
"SS Antenna Height (default is 3m).",
|
||||
DoubleValue (3),
|
||||
MakeDoubleAccessor (&Cost231PropagationLossModel::m_SSAntennaHeight),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("MinDistance",
|
||||
"The distance under which the propagation model refuses to give results (m) ",
|
||||
DoubleValue (0.5),
|
||||
|
||||
@@ -37,10 +37,9 @@ TypeId
|
||||
ItuR1411LosPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::ItuR1411LosPropagationLossModel")
|
||||
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<ItuR1411LosPropagationLossModel> ()
|
||||
|
||||
.AddAttribute ("Frequency",
|
||||
"The propagation frequency in Hz",
|
||||
DoubleValue (2160e6),
|
||||
|
||||
@@ -38,17 +38,14 @@ TypeId
|
||||
ItuR1411NlosOverRooftopPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::ItuR1411NlosOverRooftopPropagationLossModel")
|
||||
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<ItuR1411NlosOverRooftopPropagationLossModel> ()
|
||||
|
||||
.AddAttribute ("Frequency",
|
||||
"The Frequency (default is 2.106 GHz).",
|
||||
DoubleValue (2160e6),
|
||||
MakeDoubleAccessor (&ItuR1411NlosOverRooftopPropagationLossModel::SetFrequency),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
|
||||
.AddAttribute ("Environment",
|
||||
"Environment Scenario",
|
||||
EnumValue (UrbanEnvironment),
|
||||
@@ -56,7 +53,6 @@ ItuR1411NlosOverRooftopPropagationLossModel::GetTypeId (void)
|
||||
MakeEnumChecker (UrbanEnvironment, "Urban",
|
||||
SubUrbanEnvironment, "SubUrban",
|
||||
OpenAreasEnvironment, "OpenAreas"))
|
||||
|
||||
.AddAttribute ("CitySize",
|
||||
"Dimension of the city",
|
||||
EnumValue (LargeCity),
|
||||
@@ -64,31 +60,26 @@ ItuR1411NlosOverRooftopPropagationLossModel::GetTypeId (void)
|
||||
MakeEnumChecker (SmallCity, "Small",
|
||||
MediumCity, "Medium",
|
||||
LargeCity, "Large"))
|
||||
|
||||
.AddAttribute ("RooftopLevel",
|
||||
"The height of the rooftop level in meters",
|
||||
DoubleValue (20.0),
|
||||
MakeDoubleAccessor (&ItuR1411NlosOverRooftopPropagationLossModel::m_rooftopHeight),
|
||||
MakeDoubleChecker<double> (0.0, 90.0))
|
||||
|
||||
.AddAttribute ("StreetsOrientation",
|
||||
"The orientation of streets in degrees [0,90] with respect to the direction of propagation",
|
||||
DoubleValue (45.0),
|
||||
MakeDoubleAccessor (&ItuR1411NlosOverRooftopPropagationLossModel::m_streetsOrientation),
|
||||
MakeDoubleChecker<double> (0.0, 90.0))
|
||||
|
||||
.AddAttribute ("StreetsWidth",
|
||||
"The width of streets",
|
||||
DoubleValue (20.0),
|
||||
MakeDoubleAccessor (&ItuR1411NlosOverRooftopPropagationLossModel::m_streetsWidth),
|
||||
MakeDoubleChecker<double> (0.0, 1000.0))
|
||||
|
||||
.AddAttribute ("BuildingsExtend",
|
||||
"The distance over which the buildings extend",
|
||||
DoubleValue (80.0),
|
||||
MakeDoubleAccessor (&ItuR1411NlosOverRooftopPropagationLossModel::m_buildingsExtend),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("BuildingSeparation",
|
||||
"The separation between buildings",
|
||||
DoubleValue (50.0),
|
||||
|
||||
@@ -50,6 +50,7 @@ JakesProcess::GetTypeId ()
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::JakesProcess")
|
||||
.SetParent<Object> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<JakesProcess> ()
|
||||
.AddAttribute ("DopplerFrequencyHz", "Corresponding doppler frequency[Hz]",
|
||||
DoubleValue (80),
|
||||
|
||||
@@ -45,6 +45,7 @@ JakesPropagationLossModel::GetTypeId ()
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::JakesPropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<JakesPropagationLossModel> ()
|
||||
;
|
||||
return tid;
|
||||
|
||||
@@ -39,6 +39,7 @@ Kun2600MhzPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::Kun2600MhzPropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<Kun2600MhzPropagationLossModel> ()
|
||||
;
|
||||
|
||||
|
||||
@@ -38,16 +38,14 @@ TypeId
|
||||
OkumuraHataPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::OkumuraHataPropagationLossModel")
|
||||
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<OkumuraHataPropagationLossModel> ()
|
||||
|
||||
.AddAttribute ("Frequency",
|
||||
"The propagation frequency in Hz",
|
||||
DoubleValue (2160e6),
|
||||
MakeDoubleAccessor (&OkumuraHataPropagationLossModel::m_frequency),
|
||||
MakeDoubleChecker<double> ())
|
||||
|
||||
.AddAttribute ("Environment",
|
||||
"Environment Scenario",
|
||||
EnumValue (UrbanEnvironment),
|
||||
@@ -55,7 +53,6 @@ OkumuraHataPropagationLossModel::GetTypeId (void)
|
||||
MakeEnumChecker (UrbanEnvironment, "Urban",
|
||||
SubUrbanEnvironment, "SubUrban",
|
||||
OpenAreasEnvironment, "OpenAreas"))
|
||||
|
||||
.AddAttribute ("CitySize",
|
||||
"Dimension of the city",
|
||||
EnumValue (LargeCity),
|
||||
@@ -63,7 +60,6 @@ OkumuraHataPropagationLossModel::GetTypeId (void)
|
||||
MakeEnumChecker (SmallCity, "Small",
|
||||
MediumCity, "Medium",
|
||||
LargeCity, "Large"));
|
||||
|
||||
return tid;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ PropagationDelayModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::PropagationDelayModel")
|
||||
.SetParent<Object> ()
|
||||
.SetGroupName ("Propagation")
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
@@ -55,6 +56,7 @@ RandomPropagationDelayModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::RandomPropagationDelayModel")
|
||||
.SetParent<PropagationDelayModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<RandomPropagationDelayModel> ()
|
||||
.AddAttribute ("Variable",
|
||||
"The random variable which generates random delays (s).",
|
||||
@@ -91,6 +93,7 @@ ConstantSpeedPropagationDelayModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::ConstantSpeedPropagationDelayModel")
|
||||
.SetParent<PropagationDelayModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<ConstantSpeedPropagationDelayModel> ()
|
||||
.AddAttribute ("Speed", "The propagation speed (m/s) in the propagation medium being considered. The default value is the propagation speed of light in the vacuum.",
|
||||
DoubleValue (299792458),
|
||||
|
||||
@@ -145,6 +145,7 @@ FriisPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::FriisPropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<FriisPropagationLossModel> ()
|
||||
.AddAttribute ("Frequency",
|
||||
"The carrier frequency (in Hz) at which propagation occurs (default is 5.15 GHz).",
|
||||
@@ -456,6 +457,7 @@ LogDistancePropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::LogDistancePropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<LogDistancePropagationLossModel> ()
|
||||
.AddAttribute ("Exponent",
|
||||
"The exponent of the Path Loss propagation model",
|
||||
@@ -645,6 +647,7 @@ NakagamiPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::NakagamiPropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<NakagamiPropagationLossModel> ()
|
||||
.AddAttribute ("Distance1",
|
||||
"Beginning of the second distance field. Default is 80m.",
|
||||
@@ -759,6 +762,7 @@ FixedRssLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::FixedRssLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<FixedRssLossModel> ()
|
||||
.AddAttribute ("Rss", "The fixed receiver Rss.",
|
||||
DoubleValue (-150.0),
|
||||
@@ -805,6 +809,7 @@ MatrixPropagationLossModel::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::MatrixPropagationLossModel")
|
||||
.SetParent<PropagationLossModel> ()
|
||||
.SetGroupName ("Propagation")
|
||||
.AddConstructor<MatrixPropagationLossModel> ()
|
||||
.AddAttribute ("DefaultLoss", "The default value for propagation loss, dB.",
|
||||
DoubleValue (std::numeric_limits<double>::max ()),
|
||||
|
||||
Reference in New Issue
Block a user