Fawkes API  Fawkes Development Version
fawkes::TestInterface::CalculateMessage Class Reference

CalculateMessage Fawkes BlackBoard Interface Message. More...

#include <>>

Inheritance diagram for fawkes::TestInterface::CalculateMessage:

List of all members.

Classes

struct  CalculateMessage_data_t
 Internal data storage, do NOT modify! More...

Public Member Functions

 CalculateMessage (const int32_t ini_summand, const int32_t ini_addend)
 Constructor with initial values.
 CalculateMessage ()
 Constructor.
 ~CalculateMessage ()
 Destructor.
 CalculateMessage (const CalculateMessage *m)
 Copy constructor.
int32_t summand () const
 Get summand value.
void set_summand (const int32_t new_summand)
 Set summand value.
size_t maxlenof_summand () const
 Get maximum length of summand value.
int32_t addend () const
 Get addend value.
void set_addend (const int32_t new_addend)
 Set addend value.
size_t maxlenof_addend () const
 Get maximum length of addend value.
virtual Messageclone () const
 Clone this message.

Detailed Description


Constructor & Destructor Documentation

fawkes::TestInterface::CalculateMessage::CalculateMessage ( const int32_t  ini_summand,
const int32_t  ini_addend 
)
fawkes::TestInterface::CalculateMessage::~CalculateMessage ( )

Destructor.

Definition at line 593 of file TestInterface.cpp.

References fawkes::Interface::data_ptr.

fawkes::TestInterface::CalculateMessage::CalculateMessage ( const CalculateMessage m)

Copy constructor.

Parameters:
mmessage to copy from

Definition at line 601 of file TestInterface.cpp.

References fawkes::Message::data_size, fawkes::Message::data_ptr, and fawkes::Message::data_ts.


Member Function Documentation

int32_t fawkes::TestInterface::CalculateMessage::addend ( ) const

Get addend value.

Addend

Returns:
addend value

Definition at line 646 of file TestInterface.cpp.

Referenced by AgentControlThread::loop().

Message * fawkes::TestInterface::CalculateMessage::clone ( ) const [virtual]

Clone this message.

Produces a message of the same type as this message and copies the data to the new message.

Returns:
clone of this message

Reimplemented from fawkes::Message.

Definition at line 677 of file TestInterface.cpp.

size_t fawkes::TestInterface::CalculateMessage::maxlenof_addend ( ) const

Get maximum length of addend value.

Returns:
length of addend value, can be length of the array or number of maximum number of characters for a string

Definition at line 656 of file TestInterface.cpp.

size_t fawkes::TestInterface::CalculateMessage::maxlenof_summand ( ) const

Get maximum length of summand value.

Returns:
length of summand value, can be length of the array or number of maximum number of characters for a string

Definition at line 626 of file TestInterface.cpp.

void fawkes::TestInterface::CalculateMessage::set_addend ( const int32_t  new_addend)

Set addend value.

Addend

Parameters:
new_addendnew addend value

Definition at line 666 of file TestInterface.cpp.

void fawkes::TestInterface::CalculateMessage::set_summand ( const int32_t  new_summand)

Set summand value.

Summand

Parameters:
new_summandnew summand value

Definition at line 636 of file TestInterface.cpp.

int32_t fawkes::TestInterface::CalculateMessage::summand ( ) const

Get summand value.

Summand

Returns:
summand value

Definition at line 616 of file TestInterface.cpp.

Referenced by AgentControlThread::loop().


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