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
government_functions_top.c
Go to the documentation of this file.
1
#include "
header.h
"
2
#include "
government_agent_header.h
"
3
4
5
/*
6
* \fn: int government_init()
7
* \brief:
8
*/
9
int
government_init
()
10
{
11
if
(
DATA_COLLECTION_MODE
) {
12
char
* filename;
13
FILE * file1;
14
15
/* @\fn: government_compute_income_statement() */
16
filename = malloc(40*
sizeof
(
char
));
17
filename[0]=0;
18
strcpy(filename,
"./outputs/data/Government_snapshot.txt"
);
19
file1 = fopen(filename,
"w"
);
20
fprintf(file1,
"%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s\n"
,
"IT_NO"
,
"UNEMPLOYMENT_RATE"
,
"AVERAGE_WAGE"
,
"LABOUR_TAX_RATE"
,
"CAPITAL_TAX_RATE"
,
"GOV_GENERAL_BENEFIT_RATE"
,
"LABOUR_TAX_INCOME"
,
"CAPITAL_TAX_INCOME"
,
"CENTRALBANK_INCOME"
,
"UNEMPLOYMENT_BENEFITS"
,
"GENERAL_BENEFITS"
,
"LIQUIDITY"
,
"DEBT"
,
"EARNINGS"
,
"EXPENDITURES"
);
21
fclose(file1);
22
}
23
24
add_gov_centralbank_init_deposit_message
(
LIQUIDITY
);
25
26
return
0;
/* Returning zero means the agent is not removed */
27
}
28
29
30
/*
31
* \fn: int government_iterate()
32
* \brief:
33
*/
34
int
government_iterate
()
35
{
36
IT_NO
++;
37
38
return
0;
/* Returning zero means the agent is not removed */
39
}
40
41
/*
42
* \fn: int government_update_deposit()
43
* \brief:
44
*/
45
int
government_update_deposit
()
46
{
47
48
add_gov_centralbank_update_deposit_message
(
LIQUIDITY
);
49
50
return
0;
/* Returning zero means the agent is not removed */
51
}
Generated on Tue Apr 8 2014 13:25:17 for ICEACE Model: Closed Economy by
1.8.3.1