Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CollectedBeliefs Class Reference

This class contains the PlayerPoses of all detected robots. More...

#include <CollectedBeliefs.h>

Inheritance diagram for CollectedBeliefs:

Inheritance graph
[legend]
Collaboration diagram for CollectedBeliefs:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CollectedBeliefs (const BehaviorControlInterfaces &interfaces)
 Constructor.

 ~CollectedBeliefs ()
 Destructor.

void update ()
 This method updates recently received SingleBeliefs.

void broadcast ()
 This method broadcasts the own SingleBeliefs to the other robots.

void trigger ()
 This method triggers all SingleBeliefs.rateOptions.


Public Attributes

SingleBeliefs singleBeliefs [Player::numOfPlayerNumbers]
 The four SingleBeliefs of the team members.


Detailed Description

This class contains the PlayerPoses of all detected robots.

Definition at line 76 of file CollectedBeliefs.h.


Constructor & Destructor Documentation

CollectedBeliefs::CollectedBeliefs const BehaviorControlInterfaces interfaces  ) 
 

Constructor.

Definition at line 73 of file CollectedBeliefs.cpp.

References SystemCall::getCurrentSystemTime(), SingleBeliefs::ratedOptions, SlidingAverageValue::reset(), singleBeliefs, and SingleBeliefs::timeStamp.

Here is the call graph for this function:

CollectedBeliefs::~CollectedBeliefs  ) 
 

Destructor.

Definition at line 85 of file CollectedBeliefs.cpp.


Member Function Documentation

void CollectedBeliefs::update  ) 
 

This method updates recently received SingleBeliefs.

btw: the "own" SingleBeliefs is singleBeliefs[(int)(getPlayer().getPlayerRole())]

Definition at line 89 of file CollectedBeliefs.cpp.

References SystemCall::getCurrentSystemTime(), SingleBeliefs::ratedOptions, singleBeliefs, and SingleBeliefs::timeStamp.

Referenced by GT2004BehaviorControl::preExecute().

Here is the call graph for this function:

void CollectedBeliefs::broadcast  ) 
 

This method broadcasts the own SingleBeliefs to the other robots.

btw: the "own" SingleBeliefs is singleBeliefs[(int)(getPlayer().getPlayerRole())]

Definition at line 130 of file CollectedBeliefs.cpp.

References SlidingAverageValue::getLastValue(), getPlayer(), Player::getPlayerNumber(), idSingleBeliefs, INFO, SingleBeliefs::ratedOptions, BehaviorTeamMessage::ratedOptions, and singleBeliefs.

Referenced by GT2004BehaviorControl::preExecute().

Here is the call graph for this function:

void CollectedBeliefs::trigger  ) 
 

This method triggers all SingleBeliefs.rateOptions.

Definition at line 145 of file CollectedBeliefs.cpp.

References SingleBeliefs::ratedOptions, singleBeliefs, and SlidingAverageValue::trigger().

Referenced by GT2004BehaviorControl::preExecute().

Here is the call graph for this function:


Member Data Documentation

SingleBeliefs CollectedBeliefs::singleBeliefs[Player::numOfPlayerNumbers]
 

The four SingleBeliefs of the team members.

To be adressed by (int)Player::playerNumber

Definition at line 89 of file CollectedBeliefs.h.

Referenced by broadcast(), DefaultTacticChooser::chooseOption(), CollectedBeliefs(), DefaultOptionRating::rateOptions(), trigger(), and update().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:05:14 2004 for GT2004 by doxygen 1.3.6