23 #include "ns3/string.h"
24 #include "ns3/uinteger.h"
33 m_factory.SetTypeId(
"ns3::SatOnOffApplication");
34 m_factory.Set(
"Protocol", StringValue(protocol));
35 m_factory.Set(
"Remote", AddressValue(address));
53 ApplicationContainer apps;
54 for (NodeContainer::Iterator i = c.Begin(); i != c.End(); ++i)
65 Ptr<Application> app =
m_factory.Create<Application>();
66 node->AddApplication(app);
74 m_factory.Set(
"OnTime", StringValue(
"ns3::ConstantRandomVariable[Constant=1000]"));
75 m_factory.Set(
"OffTime", StringValue(
"ns3::ConstantRandomVariable[Constant=0]"));
76 m_factory.Set(
"DataRate", DataRateValue(dataRate));
77 m_factory.Set(
"PacketSize", UintegerValue(packetSize));
ApplicationContainer Install(NodeContainer c) const
Install an ns3::SatOnOffApplication on each node of the input container configured with all the attri...
SatOnOffHelper(std::string protocol, Address address)
Create an SatOnOffHelper to make it easier to work with SatOnOffApplications.
ObjectFactory m_factory
Object factory.
void SetAttribute(std::string name, const AttributeValue &value)
Helper function used to set the underlying application attributes.
void SetConstantRate(DataRate dataRate, uint32_t packetSize=512)
Helper function to set a constant rate source.
Ptr< Application > InstallPriv(Ptr< Node > node) const
Install an ns3::SatOnOffApplication on the node configured with all the attributes set with SetAttrib...
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.