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

RateableOptions Class Reference

The class contains an enumeration of rateable options. More...

#include <RateableOptions.h>

Collaboration diagram for RateableOptions:

Collaboration graph
[legend]
List of all members.

Public Types

enum  OptionID {
  noOption = 0, doNothing, stand,
  keepOption, intro, extro,
  finished, gotoBitePos1, gotoBitePos2,
  gotoBitePos3, gotoBitePos4, bitePos1,
  bitePos2, bitePos3, bitePos4,
  movePos1, movePos2, movePos3,
  movePos4, gotoBridge, climbBridge,
  waitForBiteDogs, moveBridge, numOfOptions
}
 Enumerator for available options Add new options here. More...

enum  OptionType {
  special, gotoPos, gotoBallPos,
  kickAction, goalieAction, notype
}
 Enumerator for available options types ... More...

enum  OptionClassID { doSomething = numOfOptions, maxOptionClassID, numOfOptionClasses = maxOptionClassID - numOfOptions }
enum  TacticEntryTypeID {
  FirstTETID = 0, defGA_Neutral, defGA_Max,
  numOfTETIDs
}
 Enumerator for available TacticEntryTypes used by GlobalAnalysers Add new engines here. More...

enum  OptionRatingID { defaultOptionRating = 0, numOfOptionRatings }
 Enumerator for available OptionRating engines Add new engines here. More...

enum  TacticChooserID { defaultTacticChooser = 0, numOfTacticChoosers }
 Enumerator for available TacticChooser engines Add new engines here. More...

enum  GlobalAnalyserID { defaultGlobalAnalyser = 0, numOfGlobalAnalysers }
 Enumerator for available GlobalAnalyser engines Add new engines here. More...


Static Public Member Functions

const char * getOptionName (int id)
 returns names for option and option class ids

int getOptionID (const char *name)
 returns ids for option and option class names

OptionType getOptionType (int id)
 returns types for option ids

int getSlidingAverageRange (int id)
 returns SlidingAverageRange for option and option class names

int getRatingBoost (int id)
 returns RatingBoost for option and option class names

int getNumberOfClassMembers (OptionClassID id)
 The following two functions represent the members of a OptionClass..

int getOptionClassChangeThreshold (OptionClassID id)
OptionID getClassMember (OptionClassID id, int idx)
bool isOptionClass (int id)
 returns true, if id is an option class, else false

bool isClassMember (OptionClassID OCid, OptionID Oid)
 returns true, if Oid is a member of the option class OCid, else false

const char * getTETIDName (TacticEntryTypeID id)
 returns names of a TETID Add new IDs here

const char * getGlobalAnalyserName (GlobalAnalyserID id)
 returns names of GlobalAnalysers engines Add new engines here

int getGlobalAnalyserTETBase (GlobalAnalyserID id)
 returns the base index of TETIDs of a GlobalAnalysers engine Add new engines here

int getGlobalAnalyserTETCount (GlobalAnalyserID id)
 returns the TETID Count of a GlobalAnalysers engine Add new engines here

TacticEntryTypeID getGlobalAnalyserNeutralTETID (GlobalAnalyserID id)
 returns the neutral TETID of a GlobalAnalysers engine Add new engines here

TacticEntryTypeID getTETID (GlobalAnalyserID id, const char *name)
 returns ids for TETID names Add new IDs here


Static Public Attributes

OptionInfo optionInfos []

Detailed Description

The class contains an enumeration of rateable options.

Definition at line 16 of file RateableOptions.h.


Member Enumeration Documentation

enum RateableOptions::OptionID
 

Enumerator for available options Add new options here.

Enumeration values:
noOption  to disable DynamicTactics and use std. Xabsl
doNothing  doesn't change the motion request
stand  standing around...
keepOption  keeps previous choosen option ...
intro  the oc-intro option
extro  the oc-extro option
finished  the oc-finished option
gotoBitePos1  dog1 goes to his bite position
gotoBitePos2  dog2 goes to his bite position
gotoBitePos3  dog3 goes to his bite position
gotoBitePos4  dog4 goes to his bite position
bitePos1  dog1 bites at his position
bitePos2  dog2 bites at his position
bitePos3  dog3 bites at his position
bitePos4  dog4 bites at his position
movePos1  dog1 moves directed by dog 5
movePos2  dog2 moves directed by dog 5
movePos3  dog3 moves directed by dog 5
movePos4  dog4 moves directed by dog 5
gotoBridge  dog5 goes to the bridge
climbBridge  dog5 climbs the bridge
waitForBiteDogs  dog5 waits for the others to bite their positions
moveBridge  dog5 directs the other dogs
numOfOptions  Number of options.

Definition at line 24 of file RateableOptions.h.

Referenced by getClassMember().

enum RateableOptions::OptionType
 

Enumerator for available options types ...

NOT classes This is used for the xabsl-interface

Enumeration values:
special 
gotoPos 
gotoBallPos 
kickAction 
goalieAction 
notype 

Definition at line 56 of file RateableOptions.h.

Referenced by getOptionType().

enum RateableOptions::OptionClassID
 

Enumeration values:
doSomething 
maxOptionClassID 
numOfOptionClasses  Number of optionclasses.

Definition at line 66 of file RateableOptions.h.

Referenced by isOptionClass().

enum RateableOptions::TacticEntryTypeID
 

Enumerator for available TacticEntryTypes used by GlobalAnalysers Add new engines here.

Enumeration values:
FirstTETID 
defGA_Neutral 
defGA_Max 
numOfTETIDs 

Definition at line 89 of file RateableOptions.h.

Referenced by getGlobalAnalyserNeutralTETID(), and getTETID().

enum RateableOptions::OptionRatingID
 

Enumerator for available OptionRating engines Add new engines here.

Enumeration values:
defaultOptionRating  default engine
numOfOptionRatings  Number of engines.

Definition at line 125 of file RateableOptions.h.

enum RateableOptions::TacticChooserID
 

Enumerator for available TacticChooser engines Add new engines here.

Enumeration values:
defaultTacticChooser  default engine
numOfTacticChoosers  Number of engines.

Definition at line 135 of file RateableOptions.h.

enum RateableOptions::GlobalAnalyserID
 

Enumerator for available GlobalAnalyser engines Add new engines here.

Enumeration values:
defaultGlobalAnalyser  default engine
numOfGlobalAnalysers  Number of engines.

Definition at line 147 of file RateableOptions.h.


Member Function Documentation

const char * RateableOptions::getOptionName int  id  )  [static]
 

returns names for option and option class ids

Definition at line 73 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, RateableOptions::OptionInfo::name, and optionInfos.

Referenced by operator<<().

int RateableOptions::getOptionID const char *  name  )  [static]
 

returns ids for option and option class names

Definition at line 86 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, RateableOptions::OptionInfo::name, and optionInfos.

Referenced by operator>>().

RateableOptions::OptionType RateableOptions::getOptionType int  id  )  [static]
 

returns types for option ids

Definition at line 98 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, notype, optionInfos, RateableOptions::OptionInfo::optionType, and OptionType.

Referenced by GT2004DTTSymbols::update().

int RateableOptions::getSlidingAverageRange int  id  )  [static]
 

returns SlidingAverageRange for option and option class names

Definition at line 110 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, optionInfos, and RateableOptions::OptionInfo::slidingAverageRange.

int RateableOptions::getRatingBoost int  id  )  [static]
 

returns RatingBoost for option and option class names

Definition at line 122 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, optionInfos, and RateableOptions::OptionInfo::ratingBoost.

Referenced by DefaultOptionRating::rateOptions().

int RateableOptions::getNumberOfClassMembers OptionClassID  id  )  [static]
 

The following two functions represent the members of a OptionClass..

kind of a hack, i know..

Definition at line 38 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::id, RateableOptions::OptionInfo::numOfSubOptions, and optionInfos.

Referenced by SingleBeliefs::getBestOptionInOptionClass(), and isOptionClass().

int RateableOptions::getOptionClassChangeThreshold OptionClassID  id  )  [static]
 

Definition at line 47 of file RateableOptions.cpp.

References RateableOptions::OptionInfo::changeThreshold, RateableOptions::OptionInfo::id, and optionInfos.

Referenced by SingleBeliefs::getBestOptionInOptionClass().

RateableOptions::OptionID RateableOptions::getClassMember OptionClassID  id,
int  idx
[static]
 

Definition at line 56 of file RateableOptions.cpp.

References doSomething, noOption, OptionID, and stand.

Referenced by SingleBeliefs::getBestOptionInOptionClass(), and SingleBeliefs::SingleBeliefs().

bool RateableOptions::isOptionClass int  id  )  [static]
 

returns true, if id is an option class, else false

Definition at line 135 of file RateableOptions.cpp.

References getNumberOfClassMembers(), noOption, and OptionClassID.

Referenced by operator>>().

Here is the call graph for this function:

bool RateableOptions::isClassMember OptionClassID  OCid,
OptionID  Oid
[static]
 

returns true, if Oid is a member of the option class OCid, else false

Definition at line 144 of file RateableOptions.cpp.

References doSomething, and stand.

const char* RateableOptions::getTETIDName TacticEntryTypeID  id  )  [inline, static]
 

returns names of a TETID Add new IDs here

Definition at line 157 of file RateableOptions.h.

References defGA_Neutral.

const char* RateableOptions::getGlobalAnalyserName GlobalAnalyserID  id  )  [inline, static]
 

returns names of GlobalAnalysers engines Add new engines here

Definition at line 169 of file RateableOptions.h.

References defaultGlobalAnalyser.

int RateableOptions::getGlobalAnalyserTETBase GlobalAnalyserID  id  )  [inline, static]
 

returns the base index of TETIDs of a GlobalAnalysers engine Add new engines here

Definition at line 181 of file RateableOptions.h.

References defaultGlobalAnalyser, and defGA_Neutral.

int RateableOptions::getGlobalAnalyserTETCount GlobalAnalyserID  id  )  [inline, static]
 

returns the TETID Count of a GlobalAnalysers engine Add new engines here

Definition at line 192 of file RateableOptions.h.

References defaultGlobalAnalyser, defGA_Max, and defGA_Neutral.

TacticEntryTypeID RateableOptions::getGlobalAnalyserNeutralTETID GlobalAnalyserID  id  )  [inline, static]
 

returns the neutral TETID of a GlobalAnalysers engine Add new engines here

Definition at line 203 of file RateableOptions.h.

References defaultGlobalAnalyser, defGA_Neutral, FirstTETID, and TacticEntryTypeID.

Referenced by operator>>().

TacticEntryTypeID RateableOptions::getTETID GlobalAnalyserID  id,
const char *  name
[inline, static]
 

returns ids for TETID names Add new IDs here

Definition at line 215 of file RateableOptions.h.

References defaultGlobalAnalyser, defGA_Neutral, FirstTETID, and TacticEntryTypeID.


Member Data Documentation

RateableOptions::OptionInfo RateableOptions::optionInfos [static]
 

Definition at line 3 of file RateableOptions.cpp.

Referenced by getNumberOfClassMembers(), getOptionClassChangeThreshold(), getOptionID(), getOptionName(), getOptionType(), getRatingBoost(), and getSlidingAverageRange().


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