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

#include <LinkDiscoveryModuleTests.h>

Inheritance diagram for TesterObject:

Public Member Functions

 TesterObject (uint64_t instanceId)
 
 ~TesterObject ()
 
virtual void disable ()
 
virtual std::map
< std::uint64_t, std::map
< uint32_t, std::pair
< uint64_t, uint32_t > > > 
requestAllLinks ()
 
virtual std::map
< std::uint64_t, std::map
< uint32_t, std::pair
< uint64_t, uint32_t > > > 
requestOfLinks (uint64_t ofId)
 
virtual std::map
< std::uint64_t, std::map
< uint32_t, std::pair
< uint64_t, uint32_t > > > 
requestFromLinks (uint64_t fromid)
 
virtual std::map
< std::uint64_t, std::map
< uint32_t, std::pair
< uint64_t, uint32_t > > > 
requestToLinks (uint64_t toId)
 
virtual std::map
< std::uint64_t, std::map
< uint32_t, std::pair
< uint64_t, uint32_t > > > 
requestBetweenLinks (uint64_t aId, uint64_t bId)
 
virtual bool requestCorruptedForTopic (zmf::data::MessageType type, std::string message)
 

Static Public Attributes

static const uint16_t LINK_MODULE_DEP_TYPE = zsdn::MODULE_TYPE_ID_LinkDiscoveryModule
 
static const uint16_t LINK_MODULE_DEP_VERSION = 0
 

Protected Member Functions

virtual bool enable ()
 

Detailed Description

The Accesor object for the test cases to send messages from outside into the ZMF-Network and receive the responses.

Author
Matthias Strljic

Constructor & Destructor Documentation

TesterObject::TesterObject ( uint64_t  instanceId)
TesterObject::~TesterObject ( )

Member Function Documentation

void TesterObject::disable ( )
virtual
bool TesterObject::enable ( )
protectedvirtual
std::map< std::uint64_t, std::map< uint32_t, std::pair< uint64_t, uint32_t > > > TesterObject::requestAllLinks ( )
virtual

Sends a GetAllLinks request to the LinkDiscoveryModule.

Returns
Map that represents the uni directional links.
std::map< std::uint64_t, std::map< uint32_t, std::pair< uint64_t, uint32_t > > > TesterObject::requestBetweenLinks ( uint64_t  aId,
uint64_t  bId 
)
virtual

Sends a GetAllLinksBetween request to the LinkDiscoveryModule.

Parameters
aIdid of first switch of a link.
bIdid of the second switch of a link.
Returns
Map that represents the uni directional links.
bool TesterObject::requestCorruptedForTopic ( zmf::data::MessageType  type,
std::string  message 
)
virtual
std::map< std::uint64_t, std::map< uint32_t, std::pair< uint64_t, uint32_t > > > TesterObject::requestFromLinks ( uint64_t  fromid)
virtual

Sends a GetAllLinksFromSwitch request to the LinkDiscoveryModule. That includes all links with the given switch as source of a link.

Parameters
fromidthe id of the source switch.
Returns
Map that represents the uni directional links.
std::map< std::uint64_t, std::map< uint32_t, std::pair< uint64_t, uint32_t > > > TesterObject::requestOfLinks ( uint64_t  ofId)
virtual

Sends a GetAllLinksOfSwitch request to the LinkDiscoveryModule.

Returns
Map that represents the uni directional links.
std::map< std::uint64_t, std::map< uint32_t, std::pair< uint64_t, uint32_t > > > TesterObject::requestToLinks ( uint64_t  toId)
virtual

Sends a GetAllLinksToSwitch request to the LinkDiscoveryModule. That includes all links with the given switch as endpoint of a link.

Parameters
toIdthe id of the endpoint switch.
Returns
Map that represents the uni directional links.

Member Data Documentation

const uint16_t TesterObject::LINK_MODULE_DEP_TYPE = zsdn::MODULE_TYPE_ID_LinkDiscoveryModule
static
const uint16_t TesterObject::LINK_MODULE_DEP_VERSION = 0
static

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