The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
the_neurobio::percept_predator Type Reference

This type defines how the agent perceives a predator. More...

Collaboration diagram for the_neurobio::percept_predator:

Public Member Functions

procedure, public init => percept_predator_create_init
 Create conspecifics perception object, it is an array of conspecific perception components. See the_neurobio::percept_predator_create_init(). More...
 
procedure, public number => percept_predator_number_seen
 Set the total number of predators perceived (seen) in the predator perception object. See the_neurobio::percept_predator_number_seen(). More...
 
procedure, public make => percept_predator_make_fill_arrays
 Make the predator perception object, fill it with the actual arrays. See the_neurobio::percept_predator_make_fill_arrays(). More...
 
procedure, public set_attack_rate_v => percept_predator_set_attack_rate_vector
 Set an array of the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_vector(). More...
 
procedure, public set_attack_rate_s => percept_predator_set_attack_rate_scalar
 Set an array of the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_scalar(). More...
 
generic, public set_attack_rate => set_attack_rate_v, set_attack_rate_s
 A generic interface to set the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_vector() and the_neurobio::percept_predator_set_attack_rate_scalar(). More...
 
procedure, public get_count => percept_predator_get_count_seen
 Get the number (count) of predators seen. See the_neurobio:percept_predator_get_count_seen:(). More...
 
procedure, public destroy => percept_predator_destroy_deallocate
 Deallocate and delete a predator perception object. See the_neurobio::percept_predator_destroy_deallocate(). More...
 

Public Attributes

type(spatialobj_percept_comp), dimension(:), allocatable predators_seen
 An array of predators seen in proximity, within the visual range. More...
 
real(srp), dimension(:), allocatable predators_attack_rates
 An array of the attack rates of the predators in the perception object. More...
 
integer predators_seen_count
 The number of conspecifics seen. More...
 

Detailed Description

This type defines how the agent perceives a predator.

Definition at line 246 of file m_neuro.f90.

Member Function/Subroutine Documentation

◆ init()

procedure, public the_neurobio::percept_predator::init

Create conspecifics perception object, it is an array of conspecific perception components. See the_neurobio::percept_predator_create_init().

Definition at line 259 of file m_neuro.f90.

◆ number()

procedure, public the_neurobio::percept_predator::number

Set the total number of predators perceived (seen) in the predator perception object. See the_neurobio::percept_predator_number_seen().

Definition at line 263 of file m_neuro.f90.

◆ make()

procedure, public the_neurobio::percept_predator::make

Make the predator perception object, fill it with the actual arrays. See the_neurobio::percept_predator_make_fill_arrays().

Definition at line 267 of file m_neuro.f90.

◆ set_attack_rate_v()

procedure, public the_neurobio::percept_predator::set_attack_rate_v

Set an array of the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_vector().

Definition at line 270 of file m_neuro.f90.

◆ set_attack_rate_s()

procedure, public the_neurobio::percept_predator::set_attack_rate_s

Set an array of the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_scalar().

Definition at line 273 of file m_neuro.f90.

◆ set_attack_rate()

generic, public the_neurobio::percept_predator::set_attack_rate

A generic interface to set the attack rates for the predator perception object. See the_neurobio::percept_predator_set_attack_rate_vector() and the_neurobio::percept_predator_set_attack_rate_scalar().

Definition at line 278 of file m_neuro.f90.

◆ get_count()

procedure, public the_neurobio::percept_predator::get_count

Get the number (count) of predators seen. See the_neurobio:percept_predator_get_count_seen:().

Definition at line 281 of file m_neuro.f90.

◆ destroy()

procedure, public the_neurobio::percept_predator::destroy

Deallocate and delete a predator perception object. See the_neurobio::percept_predator_destroy_deallocate().

Definition at line 284 of file m_neuro.f90.

Member Data Documentation

◆ predators_seen

type(spatialobj_percept_comp), dimension(:), allocatable the_neurobio::percept_predator::predators_seen

An array of predators seen in proximity, within the visual range.

Note
Perception of an array of predators uses the arbitrary spatial object components type defined by SPATIALOBJ_PERCEPT_COMP.

Definition at line 250 of file m_neuro.f90.

◆ predators_attack_rates

real(srp), dimension(:), allocatable the_neurobio::percept_predator::predators_attack_rates

An array of the attack rates of the predators in the perception object.

Definition at line 252 of file m_neuro.f90.

◆ predators_seen_count

integer the_neurobio::percept_predator::predators_seen_count

The number of conspecifics seen.

Definition at line 254 of file m_neuro.f90.


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