HiveMind
Public Member Functions | List of all members
IBittyBuzzMessageService Class Referenceabstract

message service use by the BBVM. Constructs the messages and dispatches it at the appropriate place (queue) More...

#include <IBittyBuzzMessageService.h>

Inheritance diagram for IBittyBuzzMessageService:
Inheritance graph
Collaboration diagram for IBittyBuzzMessageService:
Collaboration graph

Public Member Functions

virtual ~IBittyBuzzMessageService ()=default
 
virtual bool callHostFunction (uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength)=0
 call a function to a host More...
 
virtual bool callBuzzFunction (uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength)=0
 call a function to a buzz vm More...
 
virtual bool queueBuzzMessages ()=0
 queues the buzz messages More...
 

Detailed Description

message service use by the BBVM. Constructs the messages and dispatches it at the appropriate place (queue)

Constructor & Destructor Documentation

◆ ~IBittyBuzzMessageService()

virtual IBittyBuzzMessageService::~IBittyBuzzMessageService ( )
virtualdefault

Member Function Documentation

◆ callBuzzFunction()

virtual bool IBittyBuzzMessageService::callBuzzFunction ( uint16_t  agentId,
const char *  functionName,
const FunctionCallArgumentDTO *  args,
uint16_t  argsLength 
)
pure virtual

call a function to a buzz vm

Parameters
[in]agentIdthe id of the agent, use 0 for broadcast
[in]functionNamethe name of the function to call
[in]argsa list of arguments to pass to the function
[in]argsLengththe number of arguments to pass, the max is FunctionCallRequestDTO::FUNCTION_CALL_ARGUMENTS_MAX_LENGTH

Implemented in BittyBuzzMessageService.

Here is the caller graph for this function:

◆ callHostFunction()

virtual bool IBittyBuzzMessageService::callHostFunction ( uint16_t  agentId,
const char *  functionName,
const FunctionCallArgumentDTO *  args,
uint16_t  argsLength 
)
pure virtual

call a function to a host

Parameters
[in]agentIdthe id of the agent, use 0 for broadcast
[in]functionNamethe name of the function to call
[in]argsa list of arguments to pass to the function
[in]argsLengththe number of arguments to pass, the max is FunctionCallRequestDTO::FUNCTION_CALL_ARGUMENTS_MAX_LENGTH

Implemented in BittyBuzzMessageService.

Here is the caller graph for this function:

◆ queueBuzzMessages()

virtual bool IBittyBuzzMessageService::queueBuzzMessages ( )
pure virtual

queues the buzz messages

Returns
true if the operation was successfull, false if not (length too big or queue is full)

Implemented in BittyBuzzMessageService.

Here is the caller graph for this function:

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