EMANE
1.2.1
|
Shim class that produces latency numbers from one Shim Layer to another. More...
#include <shimlayer.h>
Public Member Functions | |
ShimLayer (NEMId id, PlatformServiceProvider *pPlatformService, RadioServiceProvider *pRadioServiceProvider) | |
~ShimLayer () | |
void | initialize (Registrar ®istrar) override |
void | configure (const ConfigurationUpdate &update) override |
void | start () override |
void | stop () override |
void | destroy () override throw () |
void | processUpstreamControl (const ControlMessages &msgs) override |
void | processDownstreamControl (const ControlMessages &msgs) override |
void | processUpstreamPacket (UpstreamPacket &pkt, const ControlMessages &msgs) override |
void | processDownstreamPacket (DownstreamPacket &pkt, const ControlMessages &msgs) override |
NEMId | getNEMId () const |
virtual void | postStart () |
virtual void | setDownstreamTransport (DownstreamTransport *pDownstreamTransport) |
void | sendDownstreamPacket (DownstreamPacket &pkt, const ControlMessages &msgs=empty) |
void | sendDownstreamControl (const ControlMessages &msgs) |
virtual void | setUpstreamTransport (UpstreamTransport *pUpstreamTransport) |
void | sendUpstreamPacket (UpstreamPacket &pkt, const ControlMessages &msgs=empty) |
void | sendUpstreamControl (const ControlMessages &msgs) |
virtual void | processEvent (const EventId &eventId, const Serialization &serialization) |
virtual void | processTimedEvent (TimerEventId eventId, const TimePoint &expireTime, const TimePoint &scheduleTime, const TimePoint &fireTime, const void *arg) |
BuildId | getBuildId () const |
void | setBuildId (BuildId bid) |
virtual void | processConfiguration (const ConfigurationUpdate &update) |
Static Public Attributes | |
static const ControlMessages | empty |
static const ControlMessages | empty |
Protected Attributes | |
NEMId | id_ |
PlatformServiceProvider * | pPlatformService_ |
RadioServiceProvider * | pRadioService_ |
Shim class that produces latency numbers from one Shim Layer to another.
Definition at line 53 of file models/shim/timinganalysis/shimlayer.h.
EMANE::Models::TimingAnalysis::ShimLayer::ShimLayer | ( | NEMId | id, |
PlatformServiceProvider * | pPlatformService, | ||
RadioServiceProvider * | pRadioServiceProvider | ||
) |
Definition at line 54 of file models/shim/timinganalysis/shimlayer.cc.
EMANE::Models::TimingAnalysis::ShimLayer::~ShimLayer | ( | ) |
Definition at line 62 of file models/shim/timinganalysis/shimlayer.cc.
|
overridevirtual |
Configure the component.
update | Configuration update values |
ConfigureException | thrown when a unexpected configuration item is encountered or there is a problem with the specified item value |
Implements EMANE::Component.
Definition at line 82 of file models/shim/timinganalysis/shimlayer.cc.
|
overridevirtual |
Destroy the component.
Implements EMANE::Component.
Definition at line 168 of file models/shim/timinganalysis/shimlayer.cc.
|
inlineinherited |
Gets the application wide unique BuildId of this object.
Definition at line 34 of file buildable.inl.
|
inlineinherited |
|
overridevirtual |
Initialize the component.
InitializeException | thrown when an error is encountered during initialization |
Implements EMANE::Component.
Definition at line 65 of file models/shim/timinganalysis/shimlayer.cc.
|
inlinevirtualinherited |
Hook to run any post start functionaililty. Called after all the components have been started.
Reimplemented in EMANE::Models::IEEE80211ABG::MACLayer, EMANE::Models::RFPipe::MACLayer, EMANE::Application::NEMImpl, EMANE::NEMStatefulLayer, EMANE::NEMLayerStack, EMANE::Models::TDMA::BaseModel::Implementation, EMANE::Transports::Virtual::VirtualTransport, EMANE::Models::TDMA::EventScheduler, EMANE::Models::TDMA::BaseModel, EMANE::Application::NEMManagerImpl, EMANE::Models::PHYAPITest::ShimLayer, EMANE::Application::EventAgentManagerImpl, EMANE::Application::EventGeneratorManagerImpl, EMANE::ShimLayer, EMANE::Application::TransportAdapterImpl, EMANE::MACLayer, EMANE::PHYLayer, EMANE::TransportLayer, EMANE::Application::TransportManagerImpl, and EMANE::Models::TDMA::BasicQueueManager.
Definition at line 119 of file component.h.
|
inlinevirtualinherited |
Process dynamic running-state configuration updates
update | Configuration update |
Reimplemented in EMANE::Models::IEEE80211ABG::MACLayer, EMANE::Models::RFPipe::MACLayer, EMANE::Models::TDMA::BaseModel::Implementation, EMANE::Models::TDMA::BaseModel, EMANE::NEMStatefulLayer, EMANE::NEMQueuedLayer, and EMANE::FrameworkPHY.
Definition at line 63 of file runningstatemutable.h.
|
overridevirtual |
Process downstream control message
msgs | Reference to the ControlMessages |
Implements EMANE::DownstreamTransport.
Definition at line 191 of file models/shim/timinganalysis/shimlayer.cc.
|
overridevirtual |
Process downstream packet
pkt | Reference to the DownstreamPacket to process |
msgs | optional reference to the ControlMessages |
Implements EMANE::DownstreamTransport.
Definition at line 253 of file models/shim/timinganalysis/shimlayer.cc.
|
inlinevirtualinherited |
Process an event.
eventId | event identifier corresponding to the serialized event |
serialization | opaque event object data |
Reimplemented in EMANE::Models::IEEE80211ABG::MACLayer, EMANE::NEMStatefulLayer, EMANE::Models::TDMA::BaseModel::Implementation, EMANE::Models::Bypass::MACLayer, EMANE::FrameworkPHY, EMANE::Models::TDMA::BaseModel, EMANE::Models::Bypass::PHYLayer, EMANE::NEMQueuedLayer, EMANE::Models::CommEffect::Shim, EMANE::Models::TDMA::EventScheduler, and EMANE::Agents::GPSDLocation::Agent.
Definition at line 58 of file eventserviceuser.h.
|
inlinevirtualinherited |
Process a timed event
eventId | Identifier corresponding to the timer being processed |
expireTime | The time the timer was scheduled to expire |
scheduleTime | The Time the timer was scheduled |
fireTime | Time time The time the timer actually fired |
arg | Opaque timed event data |
Reimplemented in EMANE::NEMStatefulLayer, EMANE::Models::Bypass::PHYLayer, EMANE::NEMQueuedLayer, EMANE::Models::PHYAPITest::ShimLayer, EMANE::Models::CommEffect::Shim, EMANE::Agents::GPSDLocation::Agent, EMANE::TimerServiceProxy, and EMANE::NEMTimerServiceProxy.
Definition at line 62 of file timerserviceuser.h.
|
overridevirtual |
Process upstream control message
msgs | reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 179 of file models/shim/timinganalysis/shimlayer.cc.
|
overridevirtual |
Process upstream packet
pkt | reference to the UpstreamPacket to process |
msgs | optional reference to the ControlMessages |
Implements EMANE::UpstreamTransport.
Definition at line 203 of file models/shim/timinganalysis/shimlayer.cc.
|
inlineinherited |
Send downstream control message
msgs | reference to the ControlMessages |
Definition at line 44 of file upstreamtransport.inl.
|
inlineinherited |
Send downsteam packet
pkt | reference to the DownstreamPacket to process |
msgs | optional reference to the ControlMessages |
Definition at line 37 of file upstreamtransport.inl.
|
inlineinherited |
Send upstream control message
msgs | Reference to the ControlMessages |
Definition at line 44 of file downstreamtransport.inl.
|
inlineinherited |
Send upstream packet
pkt | Reference to the UpstreamPacket to process |
msgs | optional reference to the ControlMessages |
Definition at line 37 of file downstreamtransport.inl.
|
inlineinherited |
Sets the application wide unique BuildId of this object. Builders assign a BuildId to objects at instantiation.
bid | the BuildId |
Definition at line 40 of file buildable.inl.
|
inlinevirtualinherited |
Set the downstream transport.
pDownstreamTransport | Pointer to the downstream transport of this upstream transport. |
Reimplemented in EMANE::NEMStatefulLayer, EMANE::PHYLayer, EMANE::MACLayer, EMANE::ShimLayer, and EMANE::TransportLayer.
Definition at line 82 of file upstreamtransport.h.
|
inlinevirtualinherited |
Set the upstream transport.
pUpstreamTransport | Pointer to the upstream transport of this downstream transport. |
Reimplemented in EMANE::NEMStatefulLayer, EMANE::MACLayer, EMANE::ShimLayer, EMANE::PHYLayer, and EMANE::TransportLayer.
Definition at line 79 of file downstreamtransport.h.
|
overridevirtual |
Start the component.
StartException | thrown when an error is encountered during start. |
Implements EMANE::Component.
Definition at line 114 of file models/shim/timinganalysis/shimlayer.cc.
|
overridevirtual |
Stop the component.
StopException | thrown when an error is encountered during stop |
Implements EMANE::Component.
Definition at line 123 of file models/shim/timinganalysis/shimlayer.cc.
|
staticinherited |
Definition at line 102 of file downstreamtransport.h.
|
staticinherited |
Definition at line 106 of file upstreamtransport.h.
|
protectedinherited |
Definition at line 81 of file nemlayer.h.
|
protectedinherited |
Definition at line 64 of file platformserviceuser.h.
|
protectedinherited |
Definition at line 57 of file radioserviceuser.h.