mixpp: bdm::Participant Class Reference

bdm::Participant Class Reference

Basic Participant. More...

#include <participants.h>

Inheritance diagram for bdm::Participant:

bdm::root bdm::ARXAgent List of all members.

Public Member Functions

 Participant ()
 Empty constructor.
void set_name (const string &name0)
 set name
virtual void adapt (const vec &glob_dt)
 Process data.
void create_message (Setting &msg, const string &to, const string &what, const root &data)
virtual void broadcast (Setting &queue)
virtual void receive (const Setting &msg)
 Receive one message from the queue.
virtual void act (vec &glob_ut)
 Design control strategy.
virtual void step ()
 Time step.
void from_setting (const Setting &set)
 read only name
void to_setting (Setting &set) const
const string & _name ()
 access function
virtual void ds_register (const DS &ds)
 register data source where to get data

Protected Attributes

string name
 name - ID of the participant

Detailed Description

Basic Participant.

This object is an active unit with name and capability to store results


Member Function Documentation

virtual void bdm::Participant::broadcast ( Setting &  queue  )  [inline, virtual]

Broadcast communication to the others. Add message(s) to the provided queue.

void bdm::Participant::create_message ( Setting &  msg,
const string &  to,
const string &  what,
const root data 
) [inline]

create message -- use exclusively this function Writes the following structure into msg:

    to = A1;                      // recepients
    what = predictor;             // sort code
    data = message_body;          // data itself


The documentation for this class was generated from the following file:
Generated on 2 Dec 2013 for mixpp by  doxygen 1.4.7