mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-10 11:01:41 +02:00
Add constructor for channls wih params for constellations
This commit is contained in:
parent
27ee6a3697
commit
bb3bcb627c
7 changed files with 132 additions and 6 deletions
|
@ -20,6 +20,7 @@ class LeoChannelHelper : public PcapHelperForDevice,
|
|||
{
|
||||
public:
|
||||
LeoChannelHelper ();
|
||||
LeoChannelHelper (std::string constellation);
|
||||
virtual ~LeoChannelHelper ()
|
||||
{};
|
||||
|
||||
|
@ -49,6 +50,8 @@ public:
|
|||
Ptr<NetDevice> nd,
|
||||
bool explicitFilename);
|
||||
|
||||
void SetConstellation (std::string constellation);
|
||||
|
||||
private:
|
||||
ObjectFactory m_satQueueFactory;
|
||||
ObjectFactory m_gndDeviceFactory;
|
||||
|
@ -58,6 +61,8 @@ private:
|
|||
|
||||
ObjectFactory m_channelFactory;
|
||||
|
||||
ObjectFactory m_propagationLossFactory;
|
||||
|
||||
void SetQueue (ObjectFactory &factory,
|
||||
std::string type,
|
||||
std::string n1, const AttributeValue &v1,
|
||||
|
@ -65,6 +70,13 @@ private:
|
|||
std::string n3, const AttributeValue &v3,
|
||||
std::string n4, const AttributeValue &v4);
|
||||
|
||||
|
||||
void SetConstellationAttributes (double eirp,
|
||||
double elevationAngle,
|
||||
double fspl,
|
||||
double atmosphericLoss,
|
||||
double linkMargin,
|
||||
double dataRate);
|
||||
};
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue