ZeroSDN Controller  1.0
A modular distributed Software-Defined Network Controller
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros
StatisticsModuleTests::TestStatisticsModule Class Reference

#include <StatisticsModuleTests.h>

Inheritance diagram for StatisticsModuleTests::TestStatisticsModule:

Classes

struct  CompleteStatistics
 
struct  PortStatistics
 
struct  TableStatistics
 

Public Member Functions

 TestStatisticsModule (uint64_t instanceId)
 
 ~TestStatisticsModule ()
 
virtual void disable ()
 
bool checkValues ()
 

Public Attributes

std::vector< CompleteStatisticscompleteStatisticsList = std::vector<CompleteStatistics>()
 

Static Public Attributes

static const uint16_t STATISTICS_MODULE_DEP_TYPE = zsdn::MODULE_TYPE_ID_StatisticsModule
 
static const uint16_t STATISTICS_MODULE_DEP_VERSION = 0
 

Protected Member Functions

virtual bool enable ()
 

Constructor & Destructor Documentation

StatisticsModuleTests::TestStatisticsModule::TestStatisticsModule ( uint64_t  instanceId)

Constructs (but does not start) a switchadapter mock.

Parameters
instanceIdthe switchId of the switch represented by this switchadapter mock.
StatisticsModuleTests::TestStatisticsModule::~TestStatisticsModule ( )

Destructor in case the Module isnt disabled correctly

Member Function Documentation

bool StatisticsModuleTests::TestStatisticsModule::checkValues ( )
inline

checks if statistics sent and recevied are the same

@return true if values sent are equal to values received
void StatisticsModuleTests::TestStatisticsModule::disable ( )
virtual

Disables the TestStatisticsModule.

Returns
true if disable was successful.
bool StatisticsModuleTests::TestStatisticsModule::enable ( )
protectedvirtual

Enables the TestStatisticsModule.

Returns
true if enable was successful.

Member Data Documentation

std::vector<CompleteStatistics> StatisticsModuleTests::TestStatisticsModule::completeStatisticsList = std::vector<CompleteStatistics>()
const uint16_t StatisticsModuleTests::TestStatisticsModule::STATISTICS_MODULE_DEP_TYPE = zsdn::MODULE_TYPE_ID_StatisticsModule
static
const uint16_t StatisticsModuleTests::TestStatisticsModule::STATISTICS_MODULE_DEP_VERSION = 0
static

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