BioinstSim  2
 All Classes Functions Variables
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
CAgent Class Referenceabstract
Inheritance diagram for CAgent:
CSimObject CRobotAgent CRobotAgentOptimised

Public Member Functions

 CAgent (const char *pch_name, unsigned int un_identification, CArguments *pc_arguments)
 
virtual const TVector2dGetPosition () const
 
virtual void SetPosition (TVector2d *pt_new_position)
 
virtual const TVector2dGetVelocity () const
 
virtual const TVector2dGetAcceleration () const
 
virtual double GetAngularVelocity ()
 
virtual double GetAngularAcceleration ()
 
virtual void SetVelocity (TVector2d *pt_velocity_position)
 
virtual void GetRelativeVelocity (double *mag_relvelocity, double *dir_relvelocity, double feature_range)
 
virtual void GetRelativeAcceleration (double *mag_relacceleration, double *dir_relacceleration, double feature_range)
 
virtual double GetVectorAngle (TVector2d vector1, TVector2d vector2)
 
virtual void SimulationStep (unsigned int n_step_number)
 
virtual void SimulationStepUpdatePosition ()
 
virtual void SetMaximumSpeed (double f_max_speed)
 
virtual double GetMaximumSpeed () const
 
virtual double GetMaximumAngularVelocity () const
 
virtual unsigned int GetColor ()
 
virtual void SetColor (unsigned int un_index)
 
virtual double GetSize ()
 
virtual EAgentType GetType ()=0
 
virtual unsigned int GetIdentification ()
 
virtual void SetBehavIdentification (int i_behavidentification)
 
virtual int GetBehavIdentification ()
 
virtual CAgentGetClosestAgent (double f_range, EAgentType e_type)
 
virtual TVector2d GetCenterOfMassOfSurroundingAgents (double f_range, EAgentType e_type)
 
virtual double GetAverageDistanceToSurroundingAgents (double f_range, EAgentType e_type)
 
virtual TVector2d GetAverageVelocityOfSurroundingAgents (double f_range, EAgentType e_type)
 
virtual TVector2d GetAverageAccelerationOfSurroundingAgents (double f_range, EAgentType e_type)
 
virtual void MarkAgentsWithinRange (TAgentListList *ptlist_agent_list_list, double f_range, EAgentType e_type)
 
virtual CAgentGetRandomAgentWithinRange (TAgentListList *ptlist_agent_list_list, double f_range, EAgentType e_type)
 
virtual unsigned int CountAgentsInAgentListList (TAgentListList *ptlist_agent_list_list, double f_range, EAgentType e_type)
 
virtual unsigned int CountAgents (double f_range, EAgentType e_type)
 
virtual void SetRandomVelocity ()
 
virtual void MoveTowards (TVector2d t_position, double f_max_speed)
 
virtual void SortAllAgentsAccordingToDistance (TAgentVector *pt_result)
 
- Public Member Functions inherited from CSimObject
 CSimObject (const char *pch_name)
 
const char * GetName () const
 
virtual void Draw (CRender *pc_render)
 
virtual void Keypressed (int keycode)
 
virtual void AddChild (CSimObject *pc_child)
 
virtual void RemoveChild (CSimObject *pc_child)
 
virtual void PrintfChildren (unsigned indent)
 
virtual TSimObjectVector * GetChildren ()
 

Public Attributes

bool m_bTempWithInRange
 
double m_fTempDistance
 

Static Public Attributes

static unsigned int g_unGlobalNumberOfAgentsCreated = 0
 
static double RADIUS = 0.375
 
- Static Public Attributes inherited from CSimObject
static bool g_bShuffleChildren = false
 

Protected Attributes

TVector2d m_tPosition
 
TVector2d m_tVelocity
 
TVector2d m_tAcceleration
 
double m_fMaximumSpeed
 
double m_fMaximumPhysicalRange_Recruitment
 
double m_tAngularVelocity
 
double m_tAngularAcceleration
 
EControllerType m_eControllerType
 
bool m_bInteractable
 
unsigned int m_unIdentification
 
unsigned int m_iBehavIdentification
 
unsigned int m_unColor
 
double m_fProportionalDirectionNoise
 
double m_fProportionalMagnitudeNoise
 
CArgumentsm_pcArguments
 
- Protected Attributes inherited from CSimObject
char * m_pchName
 
TSimObjectVector m_vecSimObjectChildren
 

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