Atoms Crowd  7.0.0
Atoms::BehaviourModuleAttributeCache< T > Class Template Reference

Behaviour Module Attribute Cache. More...

#include <BehaviourModuleAttributeCache.h>

Public Types

typedef AttributeCacheScriptType< T >::Type InternalType
 

Public Member Functions

 BehaviourModuleAttributeCache ()
 BehaviourModuleRandomOverrideCache.
 
void fillOverrideList (const AtomsCore::MapMetadata &attributes, const std::string &attributeName)
 
 BehaviourModuleAttributeCache (const AtomsCore::MapMetadata &attributes, const std::string &attributeName, const std::string &behaviourModuleName, class AgentGroup *agentGroup)
 BehaviourModuleRandomOverrideCache.
 
const T getAttributeValue (const int groupId, const std::string &groupIdStr, class Agent *agent) const
 generates a random value
 
const bool hasOverride (const std::string &groupId)
 check if there is any override for the specified groupId
 
const T & defaultValue () const
 
ATOMS_EXPORT const std::string getAttributeValue (const int groupId, const std::string &groupIdStr, class Agent *agent) const
 
ATOMS_EXPORT void fillOverrideList (const AtomsCore::MapMetadata &attributes, const std::string &attributeName)
 

Detailed Description

template<typename T>
class Atoms::BehaviourModuleAttributeCache< T >

Behaviour Module Attribute Cache.

Utility class for caching override parameters and randomizing values


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