Class Transmitter¶
Defined in File comms.h
Inheritance Relationships¶
Base Type¶
public lupnt::Device(Class Device)
Derived Type¶
public lupnt::GnssTransmitter(Class GnssTransmitter)
Class Documentation¶
-
class Transmitter : public lupnt::Device¶
Generic radio transmitter device: binds to a named
Channeland pushes outgoing data to it.Used as the base for link-budget/measurement-generating transmitters (e.g.
GnssTransmitterinspace_comms.h) attached to a satellite or ground-stationAgent; the boundChannel(resolved inSetup) is the shared medium used bymeasurements/models to compute link observables between a transmitter and aReceiver/Transponder.Subclassed by lupnt::GnssTransmitter
Public Functions
-
Transmitter() = default¶
-
Transmitter(Config &config)¶
Construct a transmitter from a YAML config node (see
Device::Device(Config&)).
-
virtual void Step(Real t) override¶
Transmitter device step; currently a no-op placeholder. Overrides
Device::Step.
-
virtual void Setup() override¶
Resolve and bind
channel_fromconfig_["channel"]via the owning agent’sSimulation::GetChannel. OverridesDevice::Setup; logs a warning if no"channel"key is configured.
-
virtual void Send(Real t)¶
Notify the bound
channel_that this transmitter is ready to send, without an explicit payload (the channel pulls data viaAddData/data_). Requireschannel_to be set (seeSetup).- Parameters:
t – Simulation time of the send event [s]
-
virtual void Send(Real t, void *data)¶
Push
dataonto the boundchannel_at timet. Requireschannel_anddatato be non-null (seeSetup).- Parameters:
t – Simulation time of the send event [s]
data – Pointer to the payload to send (ownership/type defined by the specific
Channel/measurement model)
-
inline virtual void AddData(void *data)¶
Queue
datafor the nextSendcall.
-
inline virtual void EmptyData()¶
Clear all queued outgoing data.
-
Transmitter() = default¶