#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 |
A class holding a pattern for creating a personality.
Documantation optimized for doxygen.
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
patternID | the ID of the pattern, which gets created |
conditionID | the ID of the condition, this pattern is related to |
moodIndeces | a vector of all the feelings this patteren uses for a mood object |
needIndeces | a vector of all known needs, this pattern usese |
reactionIndeces | a vector of all known reaction, this pattern usese |
moodValues | a vector of all the default feeling values this patteren uses for a mood object |
attitudeData | a 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. |
standardData | a 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. |
ePersonalityPattern::~ePersonalityPattern | ( | void | ) |
default destructor
bool ePersonalityPattern::validatePattern | ( | int const | conditionID | ) | const |
checks, if the pattern is valid for the passed condition id.
conditionID | the id of the active condition |
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