WSF
wsf::comm::ApplicationLayer Class Reference

#include <WsfCommApplicationLayer.hpp>

Inheritance diagram for wsf::comm::ApplicationLayer:
Collaboration diagram for wsf::comm::ApplicationLayer:

Public Member Functions

 ApplicationLayer ()
 ~ApplicationLayer () override=default
Public Member Functions inherited from wsf::comm::LayerImp
virtual ~LayerImp ()=default
void SetUpperLayer (Layer *aLayerPtr)
LayerGetUpperLayer () const
void SetLowerLayer (Layer *aLayerPtr)
LayerGetLowerLayer () const
bool DebugEnabled () const
 Determine if debugging is enabled.
void SetDebugEnabled (bool aDebugEnabled)
virtual bool Initialize2 (double aSimTime)
CommParent () const
void SetParent (Comm *aParentCommPtr)
void SetIndex (size_t aIndex)
size_t GetIndex () const

Common infrastructure methods.

LayerImpClone () const override
bool Initialize (double aSimTime) override
bool ProcessInput (UtInput &aInput) override

Send/Receive methods

bool Receive (double aSimTime, Comm *aXmtrPtr, Message &aMessage, bool &aNotifyNextLayer) override
bool Send (double aSimTime, size_t aLayerIndex, Message &aMessage, bool &aNotifyNextLayer) override

Comm event methods.

bool ProcessLayerMessage (double aSimTime, layer::Message aLayerMessage, Message *aCommMessagePtr) override
 Process a layer event.
 ApplicationLayer (const ApplicationLayer &aSrc)

Constructor & Destructor Documentation

◆ ApplicationLayer() [1/2]

wsf::comm::ApplicationLayer::ApplicationLayer ( )
inline

Referenced by ApplicationLayer(), and Clone().

◆ ~ApplicationLayer()

wsf::comm::ApplicationLayer::~ApplicationLayer ( )
overridedefault

References Clone().

◆ ApplicationLayer() [2/2]

wsf::comm::ApplicationLayer::ApplicationLayer ( const ApplicationLayer & aSrc)
inlineprotected

References ApplicationLayer().

Member Function Documentation

◆ Clone()

LayerImp * wsf::comm::ApplicationLayer::Clone ( ) const
overridevirtual

Implements wsf::comm::LayerImp.

References ApplicationLayer().

Referenced by ~ApplicationLayer().

◆ Initialize()

bool wsf::comm::ApplicationLayer::Initialize ( double aSimTime)
inlineoverridevirtual

Implements wsf::comm::LayerImp.

◆ ProcessInput()

bool wsf::comm::ApplicationLayer::ProcessInput ( UtInput & aInput)
inlineoverridevirtual

Implements wsf::comm::LayerImp.

◆ ProcessLayerMessage()

◆ Receive()

bool wsf::comm::ApplicationLayer::Receive ( double aSimTime,
Comm * aXmtrPtr,
Message & aMessage,
bool & aNotifyNextLayer )
overridevirtual

Receive the message in this layer.

Parameters
aSimTime[input] The current simulation time.
aXmtrPtr[input] The comm device that sent the message.
aMessage[input] The communication message being received.
aNotifyNextLayer[output] True if the next layer above this one should immediately process this message.
Returns
'true' if layer successfully processed the message.

Implements wsf::comm::LayerImp.

References wsf::comm::LayerImp::GetIndex(), wsf::comm::Comm::GetSortedProtocols(), wsf::comm::LayerImp::Parent(), and success.

◆ Send()

bool wsf::comm::ApplicationLayer::Send ( double aSimTime,
size_t aLayerIndex,
Message & aMessage,
bool & aNotifyNextLayer )
overridevirtual

Send the message to this layer.

Parameters
aSimTime[input] The current simulation time.
aLayerIndex[input] The index in the protocol stack for this layer.
aMessage[input] The communication message being received.
aNotifyNextLayer[output] True if the next layer below this one should immediately process this message.
Returns
'true' if layer successfully processed the message.

Implements wsf::comm::LayerImp.

References wsf::comm::LayerImp::GetIndex(), wsf::comm::Comm::GetSortedProtocols(), wsf::comm::LayerImp::Parent(), and success.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved