User Manual, Developers Guide and API Documentation

lte::controlplane::MapHandler Class Reference

Creates Map compounds and tries to deliver them.

#include <controlplane/MapHandler.hpp>

Inheritance diagram for lte::controlplane::MapHandler:

Inheritance graph
[legend]
Collaboration diagram for lte::controlplane::MapHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void calculateSizes (const wns::ldk::CommandPool *commandPool, Bit &_pciSize, Bit &_pduSize) const
 PDU size information.
void closeMapOutput ()
virtual void doOnData (const wns::ldk::CompoundPtr &)
virtual void doSendData (const wns::ldk::CompoundPtr &)
 compound handler interface
void evaluateMaps ()
virtual
wns::scheduler::SchedulingMapPtr 
getMasterMapForSlaveScheduling (int frameNr)
 UT asks for allowed resources (old method?). timing/ut/Events.cpp.
 MapHandler (wns::ldk::fun::FUN *fun, const wns::pyconfig::View &config)
virtual void onFUNCreated ()
 Resolve inter-FU dependencies.
void prepareMapOutput ()
 get+write statistics for prepared maps (on BS side)
void resetResources (int frameNr)
virtual void saveDLMap (int frameNr, wns::scheduler::SchedulingMapPtr schedulingMap)
 To provide the received Map Info inside the FUN.
virtual void saveULMap (int frameNr, wns::scheduler::SchedulingMapPtr schedulingMap)
 put scheduled resources from RS and save into SuperFrame map
void setCurrentPhase ()
void startMapRx ()
 triggered by event startMap
void startMapTx (simTimeType duration, std::vector< int > dlFrameNumbers, std::vector< int > ulFrameNumbers)
 triggered by event startMap
virtual ~MapHandler ()

Private Member Functions

virtual bool doIsAccepting (const wns::ldk::CompoundPtr &) const
virtual void doWakeup ()
void initSuperFrameMap ()
 clear all scheduling information once at the very beginning

Private Attributes

uint32_t currentPhase
int framesPerSuperFrame
struct
lte::controlplane::MapHandler::Friends 
friends
uint32_t highestSubChannel
dll::ILayer2layer2
wns::logger::Logger logger
uint32_t lowestSubChannel
std::ofstream * mapFileDL
std::ofstream * mapFileUL
std::string mapOutputFileNameDL
std::string mapOutputFileNameUL
wns::node::InterfacemyUser
lte::timing::partitioning::PartitioningInfopartInfo
uint32_t pduSize
wns::service::phy::phymode::PhyModeInterfacePtr phyModePtr
 modulation&coding used to transmit MAP
std::vector< std::string > resourceDedication
 resourceDedication (string "Feeder" or "Universal"). index=frameNr.
SchedulingMapCollectionVector scheduledDLResources
 free resources (old format)
SchedulingMapCollectionVector scheduledULResources
wns::Power txPower
 power used to transmit MAP
bool writeMapOutput
 output file names

Classes

struct  Friends


Detailed Description

Definition at line 95 of file MapHandler.hpp.


Constructor & Destructor Documentation

MapHandler::MapHandler ( wns::ldk::fun::FUN fun,
const wns::pyconfig::View config 
)

Definition at line 51 of file MapHandler.cpp.

MapHandler::~MapHandler (  )  [virtual]

Definition at line 79 of file MapHandler.cpp.


Member Function Documentation

void MapHandler::calculateSizes ( const wns::ldk::CommandPool commandPool,
Bit _pciSize,
Bit _pduSize 
) const [virtual]

Reimplemented from wns::ldk::CommandTypeSpecifier< T >.

Definition at line 271 of file MapHandler.cpp.

void MapHandler::closeMapOutput (  ) 

Definition at line 395 of file MapHandler.cpp.

bool MapHandler::doIsAccepting ( const wns::ldk::CompoundPtr  )  const [private, virtual]

Definition at line 116 of file MapHandler.cpp.

void MapHandler::doOnData ( const wns::ldk::CompoundPtr compound  )  [virtual]

Definition at line 175 of file MapHandler.cpp.

void MapHandler::doSendData ( const wns::ldk::CompoundPtr  )  [virtual]

Definition at line 123 of file MapHandler.cpp.

void MapHandler::doWakeup (  )  [private, virtual]

Definition at line 266 of file MapHandler.cpp.

void MapHandler::evaluateMaps (  ) 

Definition at line 383 of file MapHandler.cpp.

wns::scheduler::SchedulingMapPtr MapHandler::getMasterMapForSlaveScheduling ( int  frameNr  )  [virtual]

Implements lte::controlplane::IMapHandlerRS.

Definition at line 251 of file MapHandler.cpp.

void MapHandler::initSuperFrameMap (  )  [private]

Definition at line 158 of file MapHandler.cpp.

void MapHandler::onFUNCreated (  )  [virtual]

Often FunctionalUnits require the collaboration with other FunctionalUnits to accomplish their task. For the collaboration between FunctionalUnits we coined the term "friendship".

The onFUNCreated method is a hook being called after the complete FUN has been set up. FunctionalUnits requiring the collaboration with other FunctionalUnits should resolve these dependencies by implementing this hook accordingly.

Finding friends is usually done calling wns::ldk::fun::FUN::findFriend.

When building reconfigurable FUNs, this method may get called multiple times (e.g., after each FUN reconfiguration). Keep that in mind when allocating resources in your onFUNCreated implementation.

Reimplemented from wns::ldk::FunctionalUnit.

Definition at line 89 of file MapHandler.cpp.

void MapHandler::prepareMapOutput (  ) 

Definition at line 368 of file MapHandler.cpp.

void MapHandler::resetResources ( int  frameNr  )  [virtual]

Implements lte::controlplane::IMapHandlerTiming.

Definition at line 146 of file MapHandler.cpp.

void MapHandler::saveDLMap ( int  frameNr,
wns::scheduler::SchedulingMapPtr  schedulingMap 
) [virtual]

return free SubChannelSet to the RS put scheduled resources from RS and save into SuperFrame map

Implements lte::controlplane::IMapHandlerRS.

Definition at line 129 of file MapHandler.cpp.

void MapHandler::saveULMap ( int  frameNr,
wns::scheduler::SchedulingMapPtr  schedulingMap 
) [virtual]

Implements lte::controlplane::IMapHandlerRS.

Definition at line 138 of file MapHandler.cpp.

void MapHandler::setCurrentPhase (  )  [virtual]

Implements lte::controlplane::IMapHandlerTiming.

Definition at line 259 of file MapHandler.cpp.

void MapHandler::startMapRx (  )  [virtual]

Implements lte::controlplane::IMapHandlerTiming.

Definition at line 361 of file MapHandler.cpp.

void MapHandler::startMapTx ( simTimeType  duration,
std::vector< int dlFrameNumbers,
std::vector< int ulFrameNumbers 
) [virtual]

Implements lte::controlplane::IMapHandlerTiming.

Definition at line 279 of file MapHandler.cpp.


Member Data Documentation

Definition at line 212 of file MapHandler.hpp.

Definition at line 180 of file MapHandler.hpp.

Definition at line 179 of file MapHandler.hpp.

Definition at line 164 of file MapHandler.hpp.

Definition at line 213 of file MapHandler.hpp.

Definition at line 178 of file MapHandler.hpp.

std::ofstream* lte::controlplane::MapHandler::mapFileDL [private]

Definition at line 210 of file MapHandler.hpp.

std::ofstream* lte::controlplane::MapHandler::mapFileUL [private]

Definition at line 211 of file MapHandler.hpp.

Definition at line 208 of file MapHandler.hpp.

Definition at line 209 of file MapHandler.hpp.

Definition at line 165 of file MapHandler.hpp.

Definition at line 200 of file MapHandler.hpp.

Definition at line 177 of file MapHandler.hpp.

Definition at line 203 of file MapHandler.hpp.

std::vector<std::string> lte::controlplane::MapHandler::resourceDedication [private]

Definition at line 198 of file MapHandler.hpp.

free resources (new format) SuperFrame map entries; index=frameNumber. initialized as vector[0..framesPerSuperFrame-1]

Definition at line 194 of file MapHandler.hpp.

Definition at line 195 of file MapHandler.hpp.

Definition at line 205 of file MapHandler.hpp.

Definition at line 207 of file MapHandler.hpp.


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

Generated on Sat May 26 03:32:32 2012 for openWNS by  doxygen 1.5.5