QuISP
Loading...
Searching...
No Matches
quisp::modules::Application Class Reference

Application. More...

#include <Application.cc>

Inheritance diagram for quisp::modules::Application:
Collaboration diagram for quisp::modules::Application:

Public Member Functions

 Application ()
 
 ~Application ()
 
- Public Member Functions inherited from quisp::modules::IApplication
virtual ~IApplication ()
 
- Public Member Functions inherited from quisp::modules::Logger::LoggerBase
 LoggerBase ()
 
 ~LoggerBase ()
 
void initializeLogger (utils::ComponentProvider &provider)
 

Protected Member Functions

void initialize () override
 Initialize module.
 
void handleMessage (cMessage *msg) override
 Message handler.
 
void createEndNodeWeightMap ()
 Store communicatable EndNode addresses and their mass parameters.
 
void generateTraffic ()
 
messages::ConnectionSetupRequest * createConnectionSetupRequest (int dest_addr, int num_of_required_resources)
 Generate connection setup response packet.
 

Protected Attributes

int id
 
int my_address
 
bool is_initiator
 
std::unordered_map< int, int > end_node_weight_map
 
utils::ComponentProvider provider
 
- Protected Attributes inherited from quisp::modules::Logger::LoggerBase
ILoggerlogger = nullptr
 

Private Attributes

cMessage * generateTrafficMsg
 

Detailed Description

Constructor & Destructor Documentation

◆ Application()

quisp::modules::Application::Application ( )

◆ ~Application()

quisp::modules::Application::~Application ( )
inline

Member Function Documentation

◆ createConnectionSetupRequest()

ConnectionSetupRequest * quisp::modules::Application::createConnectionSetupRequest ( int dest_addr,
int num_of_required_resources )
protected

Generate connection setup response packet.

Parameters
dest_addrDestination address of this request

◆ createEndNodeWeightMap()

void quisp::modules::Application::createEndNodeWeightMap ( )
protected

Store communicatable EndNode addresses and their mass parameters.

◆ generateTraffic()

void quisp::modules::Application::generateTraffic ( )
protected

◆ handleMessage()

void quisp::modules::Application::handleMessage ( cMessage * msg)
overrideprotected

Message handler.

Parameters
msgOMNeT++ cMessage

◆ initialize()

void quisp::modules::Application::initialize ( )
overrideprotected

Initialize module.

If the node type is not EndNode, this module is automatically deleted in this function.

Member Data Documentation

◆ end_node_weight_map

std::unordered_map<int, int> quisp::modules::Application::end_node_weight_map
protected

◆ generateTrafficMsg

cMessage* quisp::modules::Application::generateTrafficMsg
private

◆ id

int quisp::modules::Application::id
protected

Application id, which can be used if a user tried to simulate multiple applications on a single network

◆ is_initiator

bool quisp::modules::Application::is_initiator
protected

◆ my_address

int quisp::modules::Application::my_address
protected

◆ provider

utils::ComponentProvider quisp::modules::Application::provider
protected

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