INET Framework for OMNeT++/OMNEST
inet::ieee80211::ManagementFs Class Reference

#include <PrimitiveFrameSequences.h>

Inheritance diagram for inet::ieee80211::ManagementFs:
inet::ieee80211::IFrameSequence

Public Member Functions

virtual void startSequence (FrameSequenceContext *context, int firstStep) override
 
virtual IFrameSequenceStepprepareStep (FrameSequenceContext *context) override
 
virtual bool completeStep (FrameSequenceContext *context) override
 
virtual std::string getHistory () override
 
- Public Member Functions inherited from inet::ieee80211::IFrameSequence
virtual ~IFrameSequence ()
 

Protected Attributes

int firstStep = -1
 
int step = -1
 

Member Function Documentation

bool inet::ieee80211::ManagementFs::completeStep ( FrameSequenceContext context)
overridevirtual

Implements inet::ieee80211::IFrameSequence.

205 {
206  switch (step) {
207  case 0:
208  step++;
209  return true;
210  default:
211  throw cRuntimeError("Unknown step");
212  }
213 }
int step
Definition: PrimitiveFrameSequences.h:71
virtual std::string inet::ieee80211::ManagementFs::getHistory ( )
inlineoverridevirtual

Implements inet::ieee80211::IFrameSequence.

78 { return "MANAGEMENT"; }
IFrameSequenceStep * inet::ieee80211::ManagementFs::prepareStep ( FrameSequenceContext context)
overridevirtual

Implements inet::ieee80211::IFrameSequence.

191 {
192  switch (step) {
193  case 0: {
194  auto mgmtFrame = check_and_cast<Ieee80211ManagementFrame *>(context->getInProgressFrames()->getFrameToTransmit());
195  return new TransmitStep(mgmtFrame, context->getIfs());
196  }
197  case 1:
198  return nullptr;
199  default:
200  throw cRuntimeError("Unknown step");
201  }
202 }
virtual simtime_t getIfs() const
Definition: FrameSequenceContext.cc:34
virtual Ieee80211DataOrMgmtFrame * getFrameToTransmit()
Definition: InProgressFrames.cc:52
Class generated from inet/linklayer/ieee80211/mac/Ieee80211Frame.msg:217 by nedtool.
Definition: Ieee80211Frame_m.h:604
virtual InProgressFrames * getInProgressFrames() const
Definition: FrameSequenceContext.h:87
int step
Definition: PrimitiveFrameSequences.h:71
Definition: FrameSequenceStep.h:26
void inet::ieee80211::ManagementFs::startSequence ( FrameSequenceContext context,
int  firstStep 
)
overridevirtual

Implements inet::ieee80211::IFrameSequence.

185 {
186  this->firstStep = firstStep;
187  step = 0;
188 }
int firstStep
Definition: PrimitiveFrameSequences.h:70
int step
Definition: PrimitiveFrameSequences.h:71

Member Data Documentation

int inet::ieee80211::ManagementFs::firstStep = -1
protected
int inet::ieee80211::ManagementFs::step = -1
protected

The documentation for this class was generated from the following files: