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

DefaultTacticChooser Class Reference

A simple implementation of the DefaultTacticChooser class. More...

#include <DefaultTacticChooser.h>

Inheritance diagram for DefaultTacticChooser:

Inheritance graph
[legend]
Collaboration diagram for DefaultTacticChooser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DefaultTacticChooser (const BehaviorControlInterfaces &interfaces, CollectedBeliefs &collectedBeliefs, ChooserRaterInterfaces &chooserRaterInterfaces)
 Constructor.

 ~DefaultTacticChooser ()
RateableOptions::OptionID chooseOption ()
 choosing one option in here...

virtual bool handleMessage (InMessage &message)
 receiving new TacicEntryArrays in here


Public Attributes

TacticEntryArray tacticEntryArray
 the TacticEntryArray to work with...

int freeze
 if true, the robots should stand still, e.g.

RateableOptions::OptionID ocplayerrole [Player::numOfPlayerNumbers]
 role of team player


Private Attributes

int facOfNumOfPlayerNumbers
int * dogPermutation [Player::numOfPlayerNumbers]

Detailed Description

A simple implementation of the DefaultTacticChooser class.

Definition at line 24 of file DefaultTacticChooser.h.


Constructor & Destructor Documentation

DefaultTacticChooser::DefaultTacticChooser const BehaviorControlInterfaces interfaces,
CollectedBeliefs collectedBeliefs,
ChooserRaterInterfaces chooserRaterInterfaces
 

Constructor.

Parameters:
interfaces The parameters of the TacticChooser class.
collectedBeliefs The collected-Beliefs to work on.
chooserRaterInterfaces We want to talk to the Option-Rating.

Definition at line 18 of file DefaultTacticChooser.cpp.

References dogPermutation, InFile::exists(), facOfNumOfPlayerNumbers, freeze, getLocation(), idText, OUTPUT, and tacticEntryArray.

Here is the call graph for this function:

DefaultTacticChooser::~DefaultTacticChooser  ) 
 

Definition at line 88 of file DefaultTacticChooser.cpp.

References dogPermutation.


Member Function Documentation

RateableOptions::OptionID DefaultTacticChooser::chooseOption  )  [virtual]
 

choosing one option in here...

Implements TacticChooser.

Definition at line 112 of file DefaultTacticChooser.cpp.

References TacticEntry::allowedDogs, dogPermutation, TacticEntryArray::entryCount, TacticEntryArray::entrys, facOfNumOfPlayerNumbers, FADING_END_TIME, FADING_START_TIME, freeze, SingleBeliefs::getBestOptionInOptionClass(), SystemCall::getCurrentSystemTime(), getPlayer(), Player::getPlayerNumber(), GlobalAnalyser::getWeight(), TacticEntry::globalAnalysersInfo, idChoosenOption, idChoosenTacticEntry, idTimeWeights, INFO, TacticEntry::isOptionClass, ChooserRaterInterfaces::lastChoosenOption, TacticEntry::name, TacticEntry::neededOptions, ocplayerrole, TacticEntry::optionWeights, SingleBeliefs::ratedOptions, CollectedBeliefs::singleBeliefs, tacticEntryArray, SingleBeliefs::timeStamp, GlobalAnalyser::update(), and TacticEntry::weight.

Here is the call graph for this function:

bool DefaultTacticChooser::handleMessage InMessage message  )  [virtual]
 

receiving new TacicEntryArrays in here

Reimplemented from TacticChooser.

Definition at line 95 of file DefaultTacticChooser.cpp.

References InMessage::bin, freeze, InMessage::getMessageID(), idFreezeRequest, idTacticEntryArray, and tacticEntryArray.

Here is the call graph for this function:


Member Data Documentation

int DefaultTacticChooser::facOfNumOfPlayerNumbers [private]
 

Definition at line 27 of file DefaultTacticChooser.h.

Referenced by chooseOption(), and DefaultTacticChooser().

int* DefaultTacticChooser::dogPermutation[Player::numOfPlayerNumbers] [private]
 

Definition at line 28 of file DefaultTacticChooser.h.

Referenced by chooseOption(), DefaultTacticChooser(), and ~DefaultTacticChooser().

TacticEntryArray DefaultTacticChooser::tacticEntryArray
 

the TacticEntryArray to work with...

Definition at line 46 of file DefaultTacticChooser.h.

Referenced by chooseOption(), DefaultTacticChooser(), and handleMessage().

int DefaultTacticChooser::freeze
 

if true, the robots should stand still, e.g.

using option stand

Definition at line 49 of file DefaultTacticChooser.h.

Referenced by chooseOption(), DefaultTacticChooser(), and handleMessage().

RateableOptions::OptionID DefaultTacticChooser::ocplayerrole[Player::numOfPlayerNumbers]
 

role of team player

Definition at line 56 of file DefaultTacticChooser.h.

Referenced by chooseOption().


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