Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

TestDecider Class Reference
[decider - decider modules]

A test Decider to test core functionality. More...

#include <TestDecider.h>

Inherits BasicDecider.

Inheritance diagram for TestDecider:

Inheritance graph
[legend]
Collaboration diagram for TestDecider:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Module_Class_Members (TestDecider, BasicDecider, 0)

Protected Member Functions

virtual void handleLowerMsg (AirFrame *, const SnrList &)
 In this function the decision whether a frame is received correctly or not is made.
virtual void handleSelfMsg (cMessage *msg)
 Handle self messages such as timer...

Detailed Description

A test Decider to test core functionality.

THis decider does not contain functionality and is only to test core functionality

Author:
Daniel Willkomm


Member Function Documentation

void TestDecider::handleLowerMsg AirFrame *  ,
const SnrList
[protected, virtual]
 

In this function the decision whether a frame is received correctly or not is made.

Redefine this function if you want to process messages from the channel before they are forwarded to upper layers

In this function it has to be decided whether this message got lost or not. This can be done with a simple SNR threshold or with transformations of SNR into bit error probabilities...

Afterwrads the message has to be decapsulated (decapsMsg) and send to the MAC layer (sendUp)

just an example how to handle the snrList...:

bool correct = true; //check the entries in the snrList if a level greater than the //acceptable minimum occured: double min = 0.0000000000000001; // just a senseless example

for (SnrList::iterator iter = snrList.begin(); iter != snrList.end(); iter++){ if (iter->snr < min) correct = false; }

if (correct){ sendUp(frame); } else{ delete frame; }

Implements BasicDecider.

void TestDecider::handleSelfMsg cMessage *  msg  )  [protected, virtual]
 

Handle self messages such as timer...

Define this function if you want to timer or other kinds of self messages

Implements BasicDecider.


The documentation for this class was generated from the following files:
Generated on Fri Jan 12 08:30:25 2007 for Mobility Framework by  doxygen 1.4.4