ICEACE Model: Closed Economy
1.0.0
Design Documentation of ICEACE Model
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
IceaceModel1.0
Market_Labour
centralbank_functions_labour.c
Go to the documentation of this file.
1
#include "../header.h"
2
#include "../centralbank_agent_header.h"
3
4
/*
5
* \fn: int centralbank_trace_unemployment_status()
6
* \brief:
7
*/
8
int
centralbank_trace_unemployment_status
(){
9
int
unemployed = 0;
10
double
total = 0;
11
int
id;
12
START_EMPLOYMENT_STATUS_MESSAGE_LOOP
13
id
=
employment_status_message
->
employer_id
;
14
if
(
id
== 0) {unemployed++;}
15
total++;
16
FINISH_EMPLOYMENT_STATUS_MESSAGE_LOOP
17
if
(total == 0) {
18
UNEMPLOYMENT_RATE
= 0;
19
}
else
{
20
UNEMPLOYMENT_RATE
= unemployed / total;
21
}
22
return
0;
/* Returning zero means the agent is not removed */
23
}
24
Generated on Tue Apr 8 2014 13:25:19 for ICEACE Model: Closed Economy by
1.8.3.1