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

#include <LinkDiscoveryModuleTests.h>

Inheritance diagram for SwitchRegistryModuleMok:

Public Types

enum  ReactMode { UNSET, FULL_START, PARTIAL_REACT_START, CONTINUES_EVENT_START }
 

Public Member Functions

 SwitchRegistryModuleMok (uint64_t instanceId)
 
 ~SwitchRegistryModuleMok ()
 
virtual zmf::data::ZmfOutReply handleRequest (const zmf::data::ZmfMessage &message, const zmf::data::ModuleUniqueId &sender)
 
virtual void disable ()
 
virtual bool isSetup ()
 
virtual void startSetup (ReactMode mode)
 
virtual zmf::data::ZmfOutReply generateReplyMessageForSwitchesUpTo (uint32_t c)
 
virtual void startChanges ()
 
virtual void startEventFinishFrom (uint32_t s)
 

Protected Member Functions

virtual bool enable ()
 

Detailed Description

A emulation of a SwitchRegistryModule to controle the tests. This module controles the set of available switches for the to testing LinkDiscoveryModule. The Module is has initialize modes. These modes are needed to construct different use modes of the LinkDiscoveryModule Modes: FULL_START(default): returns all switches at the GetAllSwitches request PARTIAL_REACT_START: returns a part of all switches and starts to publish the rest of the complete set as events. CONTINUES_EVENT_START: returns a empty set of switches and publishes all switches after the request.

Author
Matthias Strljic

Member Enumeration Documentation

Enumerator
UNSET 
FULL_START 
PARTIAL_REACT_START 
CONTINUES_EVENT_START 

Constructor & Destructor Documentation

SwitchRegistryModuleMok::SwitchRegistryModuleMok ( uint64_t  instanceId)
SwitchRegistryModuleMok::~SwitchRegistryModuleMok ( )

Member Function Documentation

void SwitchRegistryModuleMok::disable ( )
virtual
bool SwitchRegistryModuleMok::enable ( )
protectedvirtual
zmf::data::ZmfOutReply SwitchRegistryModuleMok::generateReplyMessageForSwitchesUpTo ( uint32_t  c)
virtual
zmf::data::ZmfOutReply SwitchRegistryModuleMok::handleRequest ( const zmf::data::ZmfMessage &  message,
const zmf::data::ModuleUniqueId &  sender 
)
virtual
bool SwitchRegistryModuleMok::isSetup ( )
virtual
void SwitchRegistryModuleMok::startChanges ( )
virtual
void SwitchRegistryModuleMok::startEventFinishFrom ( uint32_t  s)
virtual
void SwitchRegistryModuleMok::startSetup ( ReactMode  mode)
virtual

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