Struct CUDAFatAgent::AgentState

Nested Relationships

This struct is a nested type of Class CUDAFatAgent.

Struct Documentation

struct AgentState

This is used to identify a state that belongs to specific agent This agent’s unsigned int is assigned by the CUDAFatAgent However only the parent CUDAAgent knows it’s own agent id The agent at the top of the mapped agent hierarchy will always be id 0 With each sub agent having the consecutive index

Public Functions

inline bool operator==(const AgentState &other) const

Basic comparison operator, required for use of std::map etc

Public Members

const unsigned int agent

Index assigned to the agent when it is added to the CUDAFatAgent

Note

An index is used as two mapped agents from different models may share the same name

const std::string state

The name of the state within the associated agent