fawkes::TestInterface::CalculateMessage Class Reference

CalculateMessage Fawkes BlackBoard Interface Message. More...

#include <interfaces/TestInterface.h>

Inheritance diagram for fawkes::TestInterface::CalculateMessage:

List of all members.


Classes

struct  CalculateMessage_data_t
 Internal data storage, do NOT modify!

Public Member Functions

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

Detailed Description

CalculateMessage Fawkes BlackBoard Interface Message.

Definition at line 112 of file TestInterface.h.


Constructor & Destructor Documentation

fawkes::TestInterface::CalculateMessage::CalculateMessage ( const int  ini_summand,
const int  ini_addend 
)

Constructor with initial values.

Parameters:
ini_summand initial value for summand
ini_addend initial value for addend

Definition at line 531 of file TestInterface.cpp.

References fawkes::Message::add_fieldinfo(), fawkes::Message::data_ptr, fawkes::Message::data_size, and fawkes::IFT_INT.

fawkes::TestInterface::CalculateMessage::CalculateMessage (  ) 

fawkes::TestInterface::CalculateMessage::~CalculateMessage (  ) 

Destructor.

Definition at line 554 of file TestInterface.cpp.

References fawkes::Message::data_ptr.

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

Copy constructor.

Parameters:
m message to copy from

Definition at line 562 of file TestInterface.cpp.

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


Member Function Documentation

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

Get addend value.

Addend

Returns:
addend value

Definition at line 606 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 637 of file TestInterface.cpp.

References CalculateMessage().

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 616 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 586 of file TestInterface.cpp.

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

Set addend value.

Addend

Parameters:
new_addend new addend value

Definition at line 626 of file TestInterface.cpp.

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

Set summand value.

Summand

Parameters:
new_summand new summand value

Definition at line 596 of file TestInterface.cpp.

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

Get summand value.

Summand

Returns:
summand value

Definition at line 576 of file TestInterface.cpp.

Referenced by AgentControlThread::loop().


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