eMotion
 All Classes Functions Variables Enumerations
Public Member Functions | Public Attributes | List of all members
ePersonalityPattern Class Reference

#include <ePersonalityPattern.h>

Public Member Functions

 ePersonalityPattern (int patternID, int conditionID, std::vector< unsigned int > *moodIndeces, std::vector< unsigned int > *needIndeces, std::vector< unsigned int > *reactionIndeces, std::vector< float > *moodValues, std::map< unsigned int, std::vector< float >> *attitudeData, std::map< unsigned int, std::vector< float >> *standardData)
 
 ~ePersonalityPattern (void)
 
bool validatePattern (int const conditionID) const
 

Public Attributes

int const m_conditionID
 
int const m_patternID
 
std::vector< unsigned int > const m_moodIndices
 
std::vector< float > const m_moodValues
 
std::map< unsigned int,
std::vector< float > > const 
m_attitudeData
 
std::map< unsigned int,
std::vector< float > > const 
m_standardData
 
std::vector< unsigned int > const m_needIndices
 
std::vector< unsigned int > const m_reactionIndices
 

Detailed Description

Author
Florian Harde flori.nosp@m.anha.nosp@m.rde@y.nosp@m.ahoo.nosp@m..de

DESCRIPTION

A class holding a pattern for creating a personality.

Documantation optimized for doxygen.

Constructor & Destructor Documentation

ePersonalityPattern::ePersonalityPattern ( int  patternID,
int  conditionID,
std::vector< unsigned int > *  moodIndeces,
std::vector< unsigned int > *  needIndeces,
std::vector< unsigned int > *  reactionIndeces,
std::vector< float > *  moodValues,
std::map< unsigned int, std::vector< float >> *  attitudeData,
std::map< unsigned int, std::vector< float >> *  standardData 
)

Constructor

Parameters
patternIDthe ID of the pattern, which gets created
conditionIDthe ID of the condition, this pattern is related to
moodIndecesa vector of all the feelings this patteren uses for a mood object
needIndecesa vector of all known needs, this pattern usese
reactionIndecesa vector of all known reaction, this pattern usese
moodValuesa vector of all the default feeling values this patteren uses for a mood object
attitudeDataa map key value pairs, which define and describe the attitudes of this pattern. key -> Attitude indece related to the conditions, value -> a vector of values definig the value of the related attitude. WARNING: COnsider the order of the values in the vector. The first will define the first value in the Attitude feelings vector, and so on.
standardDataa map key value pairs, which define and describe the standards of this pattern. key -> Satdanrd indece related to the conditions, value -> a vector of values definig the value of the related standard. WARNING: COnsider the order of the values in the vector. The first will define the first value in the Attitude feelings vector, and so on.
Returns
true, if worked as the translation worked as intended
ePersonalityPattern::~ePersonalityPattern ( void  )

default destructor

Member Function Documentation

bool ePersonalityPattern::validatePattern ( int const  conditionID) const

checks, if the pattern is valid for the passed condition id.

Parameters
conditionIDthe id of the active condition
Returns
true, if the base data is not null

Member Data Documentation

std::map<unsigned int, std::vector<float> > const ePersonalityPattern::m_attitudeData

a map containing key (indices to attitudes to pool) and value ( a vector conating values to feelings of the attitude) pairs

int const ePersonalityPattern::m_conditionID

the ID of the related condtion

std::vector<unsigned int> const ePersonalityPattern::m_moodIndices

a vector containg indices related to the feeling pool

std::vector<float> const ePersonalityPattern::m_moodValues

a vector containg feeling values related to the mood indices

std::vector<unsigned int> const ePersonalityPattern::m_needIndices

a vector containg indices related to the needs pool

int const ePersonalityPattern::m_patternID

the ID of this pattern

std::vector<unsigned int> const ePersonalityPattern::m_reactionIndices

a vector containg indices related to the reaction pool

std::map<unsigned int, std::vector<float> > const ePersonalityPattern::m_standardData

a map containing key (indices to standards to pool) and value ( a vector conating values to feelings of the standard) pairs


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