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

Public Member Functions

 CRobotAgent (const char *pch_name, unsigned int un_identification, CArguments *pc_agent_arguments, CArguments *pc_model_arguments, TBehaviorVector vec_behaviors)
 
virtual void SimulationStepUpdatePosition ()
 
virtual void SetBehaviors (TBehaviorVector vec_behaviors)
 
virtual TBehaviorVector GetBehaviors ()
 
virtual EAgentType GetType ()
 
virtual float * GetFeaturesSensed () const
 
virtual CRobotAgentGetRandomRobotWithWeights (double f_range)
 
virtual CRobotAgentGetRandomRobotWithWeights (unsigned int u_nearestnbrs)
 
virtual CRMinRobotAgentGetCRMinRobotAgent ()
 
virtual CTRNNinRobotAgentGetCTRNNinRobotAgent ()
 
virtual LINEQinRobotAgentGetLINEQinRobotAgent ()
 
virtual void SetWeight (double f_weight)
 
virtual double GetWeight () const
 
virtual const CFeatureVectorGetFeatureVector () const
 
virtual void Sense (unsigned int u_nearestnbrs)
 
virtual void FVsOfWcFeature (const CFeatureVector *pc_feature_vector, unsigned int *fv1, unsigned int *fv2)
 
virtual double GetFVSenseRange () const
 
virtual unsigned int GetColor ()
 
virtual unsigned int GetSelectedNumNearestNbrs ()
 
virtual void SetMostWantedList (unsigned unFeatureVector, unsigned int state)
 
virtual unsigned int * GetMostWantedList ()
 
virtual void CheckNeighborsResponseToMyFV (unsigned int *pun_number_of_toleraters, unsigned int *pun_number_of_attackers, unsigned int *pun_number_of_unconverged, bool b_logs)
 
virtual void PrintDecidingAgentDetails (CFeatureVector *m_pcFV, CRMinRobotAgent *model_crminagent, CTRNNinRobotAgent *model_ctrnninagent, LINEQinRobotAgent *model_lineqinagent, float *FeatureVectorsSensed)
 
virtual unsigned int Attack (CFeatureVector *pc_feature_vector)
 
- Public Member Functions inherited from CAgent
 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 SetMaximumSpeed (double f_max_speed)
 
virtual double GetMaximumSpeed () const
 
virtual double GetMaximumAngularVelocity () const
 
virtual void SetColor (unsigned int un_index)
 
virtual double GetSize ()
 
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 ()
 

Protected Member Functions

virtual double CountWeightsInAgentListList (TAgentListList *ptlist_agent_list_list, double f_range)
 

Protected Attributes

double m_fFVSenseRange
 
CFeatureVectorm_pcFeatureVector
 
TBehaviorVector m_vecBehaviors
 
CRMinRobotAgentcrminAgent
 
CTRNNinRobotAgentctrnninAgent
 
LINEQinRobotAgentlineqinAgent
 
double m_fWeight
 
double m_fBitflipProbabililty
 
float * m_pfFeaturesSensed
 
unsigned int * m_pbMostWantedList
 
double m_fResponseRange
 
unsigned int m_uSelectedNumNearestNbrs
 
- Protected Attributes inherited from CAgent
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
 

Additional Inherited Members

- Public Attributes inherited from CAgent
bool m_bTempWithInRange
 
double m_fTempDistance
 
- Static Public Attributes inherited from CAgent
static unsigned int g_unGlobalNumberOfAgentsCreated = 0
 
static double RADIUS = 0.375
 

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