The AHA Model  Revision: 12809
Reference implementation 04 (HEDG02_04)
the_behaviour::eat_food Type Reference

Eat food is consuming food item(s) perceived. More...

Inheritance diagram for the_behaviour::eat_food:
Collaboration diagram for the_behaviour::eat_food:

Public Member Functions

procedure, public init => eat_food_item_init_zero
 init inits the behaviour element object. See the_behaviour::eat_food_item_init_zero(). More...
 
procedure, public do_this => eat_food_item_do_this
 do_this performs the agent's action without changing the agent or the environment. More...
 
procedure, public expectancies_calculate => eat_food_item_motivations_expect
 expectancies_calculate is a subroutine (re)calculating motivations from fake expected perceptions following from do_this. More...
 
procedure, public execute => eat_food_item_do_execute
 executeperforms the action fully, changing the state of the agent and the environment. See the_behaviour::eat_food_item_do_execute(). More...
 
- Public Member Functions inherited from the_behaviour::behaviour_base
procedure(behaviour_init_root), deferred, public init
 Abstract init function that has to be overriden by each object that extends the root behaviour component class. More...
 
procedure, public is_executed => behaviour_root_get_is_executed
 Get the execution status of the behaviour unit. See the_behaviour::behaviour_root_get_is_executed(). More...
 
procedure, public gos_expected => behaviour_root_gos_expectation
 gos_expected is an accessor get-function that returns the final GOS expectation from expectancies_calculate. Once we get this value for all the possible behaviours, we choose what behaviour to execute by minimising gos_expected. See the_behaviour::behaviour_root_gos_expectation(). More...
 
procedure, public attention_transfer => behaviour_root_attention_weights_transfer
 attention_transfer transfers attention weights from the actor agent to this behaviour expectancy objects. See the_behaviour::behaviour_root_attention_weights_transfer(). More...
 

Public Attributes

real(srp) stomach_increment_from_food
 Increment of the agent's stomach content that results from eating a single specific food item. More...
 
real(srp) mass_increment_from_food
 Increment of the agent's body mass that results from eating a single specific food item. More...
 
- Public Attributes inherited from the_behaviour::behaviour_base
logical is_active
 Logical flag indicating that this behaviour is activated (executed). More...
 
type(motivationexpectancy
 Each behavioural type within the whole repertoire has expectancies that set how each of the GOS motivational components is affected by its execution. More...
 
real(srp) arousal_expected
 An expectation of the arousal level. It is the maximum weighted value among all motivation components. This value is actually minimised – those behaviour which would result in the lowest arousal_expected is finally executed. More...
 

Detailed Description

Eat food is consuming food item(s) perceived.

Definition at line 112 of file m_behav.f90.

Member Function/Subroutine Documentation

◆ init()

procedure, public the_behaviour::eat_food::init

init inits the behaviour element object. See the_behaviour::eat_food_item_init_zero().

Definition at line 122 of file m_behav.f90.

◆ do_this()

procedure, public the_behaviour::eat_food::do_this

do_this performs the agent's action without changing the agent or the environment.

Warning
do_this is not intended to be called directly, only from within expectancies_calculate and execute. See the_behaviour::eat_food_item_do_this().

Definition at line 128 of file m_behav.f90.

◆ expectancies_calculate()

procedure, public the_behaviour::eat_food::expectancies_calculate

expectancies_calculate is a subroutine (re)calculating motivations from fake expected perceptions following from do_this.

Note
Note that this is the computational engine to assess the expected GOS of the behaviour, it is called from within the base root behaviour class-bound polymorphic gos_expect. See the_behaviour::eat_food_item_motivations_expect().

Definition at line 135 of file m_behav.f90.

◆ execute()

procedure, public the_behaviour::eat_food::execute

executeperforms the action fully, changing the state of the agent and the environment. See the_behaviour::eat_food_item_do_execute().

Definition at line 140 of file m_behav.f90.

Member Data Documentation

◆ stomach_increment_from_food

real(srp) the_behaviour::eat_food::stomach_increment_from_food

Increment of the agent's stomach content that results from eating a single specific food item.

Definition at line 115 of file m_behav.f90.

◆ mass_increment_from_food

real(srp) the_behaviour::eat_food::mass_increment_from_food

Increment of the agent's body mass that results from eating a single specific food item.

Definition at line 118 of file m_behav.f90.


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