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

Public Member Functions

 CRobotAgentOptimised (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 CRobotAgentOptimisedGetRandomRobotWithWeights (double f_range)
 
virtual CRobotAgentOptimisedGetRandomRobotWithWeights (unsigned int u_nearestnbrs)
 
virtual CRMinRobotAgentOptimisedGetCRMinRobotAgent ()
 
virtual void SetWeight (double f_weight)
 
virtual double GetWeight () const
 
virtual const CFeatureVectorGetFeatureVector () const
 
virtual void Sense (unsigned int u_nearestnbrs)
 
virtual void UpdateFeatureVectorDistribution (unsigned int fv, double increment)
 
virtual list< structFVsSensed > * GetFeatureVectorsSensed ()
 
virtual void PrintFeatureVectorDistribution (unsigned int id)
 
virtual double GetFVSenseRange () const
 
virtual unsigned int GetColor ()
 
virtual unsigned int GetSelectedNumNearestNbrs ()
 
virtual void SetMostWantedList (list< structFVsSensed >::iterator *it, unsigned int state)
 
virtual unsigned int GetMostWantedState (unsigned int fv)
 
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, CRobotAgentOptimised *decidingrobot)
 
virtual unsigned int Attack (CFeatureVector *pc_feature_vector)
 
virtual void IncNumberFloatingPtOperations ()
 
virtual void IncNumberFloatingPtOperations (unsigned int count)
 
virtual unsigned long long GetNumberFloatingPtOperations ()
 
- 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)
 
virtual void IncIt (list< structFVsSensed >::iterator *it_fvsensed, list< structFVsSensed > *list)
 

Protected Attributes

double m_fFVSenseRange
 
CFeatureVectorm_pcFeatureVector
 
TBehaviorVector m_vecBehaviors
 
CRMinRobotAgentOptimisedcrminAgent
 
double m_fWeight
 
double m_fBitflipProbabililty
 
list< structFVsSensedlistFVsSensed
 
double m_fResponseRange
 
unsigned int m_uSelectedNumNearestNbrs
 
unsigned long long m_uNumberFloatingPtOperations
 
- 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: