ICEACE Model: Closed Economy  1.0.0
Design Documentation of ICEACE Model
 All Data Structures Files Functions Variables Typedefs Macros Pages
government_functions_top.c
Go to the documentation of this file.
1 #include "header.h"
3 
4 
5 /*
6  * \fn: int government_init()
7  * \brief:
8  */
10 {
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 
25 
26  return 0; /* Returning zero means the agent is not removed */
27 }
28 
29 
30 /*
31  * \fn: int government_iterate()
32  * \brief:
33  */
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  */
46 {
47 
49 
50  return 0; /* Returning zero means the agent is not removed */
51 }