ICEACE Model: Closed Economy
1.0.0
Design Documentation of ICEACE Model
|
Holds xml reading and writing functions. More...
#include "header.h"
Go to the source code of this file.
Functions | |
int | read_int_static_array (char *buffer, intbuffer_size, int *j, int *int_static_array, intsize) |
int | read_float_static_array (char *buffer, intbuffer_size, int *j, float *float_static_array, intsize) |
int | read_double_static_array (char *buffer, intbuffer_size, int *j, double *double_static_array, intsize) |
int | read_char_static_array (char *buffer, intbuffer_size, int *j, char *char_static_array, int size) |
int | read_int_dynamic_array (char *buffer, intbuffer_size, int *j, int_array *int_dynamic_array) |
int | read_float_dynamic_array (char *buffer, intbuffer_size, int *j, float_array *float_dynamic_array) |
int | read_double_dynamic_array (char *buffer, intbuffer_size, int *j, double_array *double_dynamic_array) |
int | read_char_dynamic_array (char *buffer, intbuffer_size, int *j, char_array *char_dynamic_array) |
int | read_transaction (char *buffer, intbuffer_size, int *j, transaction *temp_datatype) |
int | read_transaction_dynamic_array (char *buffer, int buffer_size, int *j, transaction_array *temp_datatype_array) |
int | read_transaction_static_array (char *buffer, int buffer_size, int *j, transaction *temp_datatype_array, int size) |
int | read_buyer (char *buffer, intbuffer_size, int *j, buyer *temp_datatype) |
int | read_buyer_dynamic_array (char *buffer, int buffer_size, int *j, buyer_array *temp_datatype_array) |
int | read_buyer_static_array (char *buffer, int buffer_size, int *j, buyer *temp_datatype_array, int size) |
int | read_seller (char *buffer, intbuffer_size, int *j, seller *temp_datatype) |
int | read_seller_dynamic_array (char *buffer, int buffer_size, int *j, seller_array *temp_datatype_array) |
int | read_seller_static_array (char *buffer, int buffer_size, int *j, seller *temp_datatype_array, int size) |
int | read_vacancy (char *buffer, intbuffer_size, int *j, vacancy *temp_datatype) |
int | read_vacancy_dynamic_array (char *buffer, int buffer_size, int *j, vacancy_array *temp_datatype_array) |
int | read_vacancy_static_array (char *buffer, int buffer_size, int *j, vacancy *temp_datatype_array, int size) |
int | read_employee (char *buffer, intbuffer_size, int *j, employee *temp_datatype) |
int | read_employee_dynamic_array (char *buffer, int buffer_size, int *j, employee_array *temp_datatype_array) |
int | read_employee_static_array (char *buffer, int buffer_size, int *j, employee *temp_datatype_array, int size) |
int | read_mortgage (char *buffer, intbuffer_size, int *j, mortgage *temp_datatype) |
int | read_mortgage_dynamic_array (char *buffer, int buffer_size, int *j, mortgage_array *temp_datatype_array) |
int | read_mortgage_static_array (char *buffer, int buffer_size, int *j, mortgage *temp_datatype_array, int size) |
int | read_loan (char *buffer, intbuffer_size, int *j, loan *temp_datatype) |
int | read_loan_dynamic_array (char *buffer, int buffer_size, int *j, loan_array *temp_datatype_array) |
int | read_loan_static_array (char *buffer, int buffer_size, int *j, loan *temp_datatype_array, int size) |
int | read_hbuyer (char *buffer, intbuffer_size, int *j, hbuyer *temp_datatype) |
int | read_hbuyer_dynamic_array (char *buffer, int buffer_size, int *j, hbuyer_array *temp_datatype_array) |
int | read_hbuyer_static_array (char *buffer, int buffer_size, int *j, hbuyer *temp_datatype_array, int size) |
int | read_hseller (char *buffer, intbuffer_size, int *j, hseller *temp_datatype) |
int | read_hseller_dynamic_array (char *buffer, int buffer_size, int *j, hseller_array *temp_datatype_array) |
int | read_hseller_static_array (char *buffer, int buffer_size, int *j, hseller *temp_datatype_array, int size) |
int | read_hbank (char *buffer, intbuffer_size, int *j, hbank *temp_datatype) |
int | read_hbank_dynamic_array (char *buffer, int buffer_size, int *j, hbank_array *temp_datatype_array) |
int | read_hbank_static_array (char *buffer, int buffer_size, int *j, hbank *temp_datatype_array, int size) |
int | readEnvironmentXML (char *location) |
int | readAgentXML (char *location, double cloud_data[], int partition_method, int flag, int number_partitions, int agent_count, int *itno) |
int | check_location_exists (char *location) |
Check that a directory exists. More... | |
void | readinitialstates (char *filename, char *filelocation, int *itno, double cloud_data[], int partition_method, int flag) |
void | write_int_static_array (FILE *file, int *temp, int size) |
void | write_float_static_array (FILE *file, float *temp, int size) |
void | write_double_static_array (FILE *file, double *temp, int size) |
void | write_char_static_array (FILE *file, char *temp, int size) |
void | write_int_dynamic_array (FILE *file, int_array *temp) |
Writes int. More... | |
void | write_float_dynamic_array (FILE *file, float_array *temp) |
Writes float. More... | |
void | write_double_dynamic_array (FILE *file, double_array *temp) |
Writes double. More... | |
void | write_char_dynamic_array (FILE *file, char_array *temp) |
Writes char. More... | |
void | write_transaction (FILE *file, transaction *temp_datatype) |
Writes transaction datatype. More... | |
void | write_transaction_static_array (FILE *file, transaction *temp_datatype, int size) |
void | write_transaction_dynamic_array (FILE *file, transaction_array *temp_datatype) |
void | write_buyer (FILE *file, buyer *temp_datatype) |
Writes buyer datatype. More... | |
void | write_buyer_static_array (FILE *file, buyer *temp_datatype, int size) |
void | write_buyer_dynamic_array (FILE *file, buyer_array *temp_datatype) |
void | write_seller (FILE *file, seller *temp_datatype) |
Writes seller datatype. More... | |
void | write_seller_static_array (FILE *file, seller *temp_datatype, int size) |
void | write_seller_dynamic_array (FILE *file, seller_array *temp_datatype) |
void | write_vacancy (FILE *file, vacancy *temp_datatype) |
Writes vacancy datatype. More... | |
void | write_vacancy_static_array (FILE *file, vacancy *temp_datatype, int size) |
void | write_vacancy_dynamic_array (FILE *file, vacancy_array *temp_datatype) |
void | write_employee (FILE *file, employee *temp_datatype) |
Writes employee datatype. More... | |
void | write_employee_static_array (FILE *file, employee *temp_datatype, int size) |
void | write_employee_dynamic_array (FILE *file, employee_array *temp_datatype) |
void | write_mortgage (FILE *file, mortgage *temp_datatype) |
Writes mortgage datatype. More... | |
void | write_mortgage_static_array (FILE *file, mortgage *temp_datatype, int size) |
void | write_mortgage_dynamic_array (FILE *file, mortgage_array *temp_datatype) |
void | write_loan (FILE *file, loan *temp_datatype) |
Writes loan datatype. More... | |
void | write_loan_static_array (FILE *file, loan *temp_datatype, int size) |
void | write_loan_dynamic_array (FILE *file, loan_array *temp_datatype) |
void | write_hbuyer (FILE *file, hbuyer *temp_datatype) |
Writes hbuyer datatype. More... | |
void | write_hbuyer_static_array (FILE *file, hbuyer *temp_datatype, int size) |
void | write_hbuyer_dynamic_array (FILE *file, hbuyer_array *temp_datatype) |
void | write_hseller (FILE *file, hseller *temp_datatype) |
Writes hseller datatype. More... | |
void | write_hseller_static_array (FILE *file, hseller *temp_datatype, int size) |
void | write_hseller_dynamic_array (FILE *file, hseller_array *temp_datatype) |
void | write_hbank (FILE *file, hbank *temp_datatype) |
Writes hbank datatype. More... | |
void | write_hbank_static_array (FILE *file, hbank *temp_datatype, int size) |
void | write_hbank_dynamic_array (FILE *file, hbank_array *temp_datatype) |
void | write_firm_agent (FILE *file, xmachine_memory_firm *current) |
void | write_household_agent (FILE *file, xmachine_memory_household *current) |
void | write_equityfund_agent (FILE *file, xmachine_memory_equityfund *current) |
void | write_bank_agent (FILE *file, xmachine_memory_bank *current) |
void | write_government_agent (FILE *file, xmachine_memory_government *current) |
void | write_centralbank_agent (FILE *file, xmachine_memory_centralbank *current) |
void | write_jpoffice_agent (FILE *file, xmachine_memory_jpoffice *current) |
void | write_mall_agent (FILE *file, xmachine_memory_mall *current) |
void | write_reagency_agent (FILE *file, xmachine_memory_reagency *current) |
void | FLAME_write_xml (char *location, int iteration_number, int *output_types, int output_type_size) |
void | saveiterationdata (int iteration_number) |
Save X-machine memory to a file. More... | |
Holds xml reading and writing functions.
Definition in file xml.c.
void check_location_exists | ( | char * | location | ) |
void FLAME_write_xml | ( | char * | location, |
int | iteration_number, | ||
int * | output_types, | ||
int | output_type_size | ||
) |
int read_buyer | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
buyer * | temp_datatype | ||
) |
int read_buyer_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
buyer_array * | temp_datatype_array | ||
) |
int read_buyer_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
buyer * | temp_datatype_array, | ||
int | size | ||
) |
int read_char_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
char_array * | char_dynamic_array | ||
) |
int read_char_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
char * | char_static_array, | ||
int | size | ||
) |
int read_double_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
double_array * | double_dynamic_array | ||
) |
int read_double_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
double * | double_static_array, | ||
int | size | ||
) |
int read_employee | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
employee * | temp_datatype | ||
) |
int read_employee_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
employee_array * | temp_datatype_array | ||
) |
int read_employee_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
employee * | temp_datatype_array, | ||
int | size | ||
) |
int read_float_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
float_array * | float_dynamic_array | ||
) |
int read_float_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
float * | float_static_array, | ||
int | size | ||
) |
int read_hbank | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbank * | temp_datatype | ||
) |
int read_hbank_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbank_array * | temp_datatype_array | ||
) |
int read_hbank_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbank * | temp_datatype_array, | ||
int | size | ||
) |
int read_hbuyer | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbuyer * | temp_datatype | ||
) |
int read_hbuyer_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbuyer_array * | temp_datatype_array | ||
) |
int read_hbuyer_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hbuyer * | temp_datatype_array, | ||
int | size | ||
) |
int read_hseller | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hseller * | temp_datatype | ||
) |
int read_hseller_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hseller_array * | temp_datatype_array | ||
) |
int read_hseller_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
hseller * | temp_datatype_array, | ||
int | size | ||
) |
int read_int_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
int_array * | int_dynamic_array | ||
) |
int read_int_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
int * | int_static_array, | ||
int | size | ||
) |
int read_loan | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
loan * | temp_datatype | ||
) |
int read_loan_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
loan_array * | temp_datatype_array | ||
) |
int read_loan_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
loan * | temp_datatype_array, | ||
int | size | ||
) |
int read_mortgage | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
mortgage * | temp_datatype | ||
) |
int read_mortgage_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
mortgage_array * | temp_datatype_array | ||
) |
int read_mortgage_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
mortgage * | temp_datatype_array, | ||
int | size | ||
) |
int read_seller | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
seller * | temp_datatype | ||
) |
int read_seller_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
seller_array * | temp_datatype_array | ||
) |
int read_seller_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
seller * | temp_datatype_array, | ||
int | size | ||
) |
int read_transaction | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
transaction * | temp_datatype | ||
) |
int read_transaction_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
transaction_array * | temp_datatype_array | ||
) |
int read_transaction_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
transaction * | temp_datatype_array, | ||
int | size | ||
) |
int read_vacancy | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
vacancy * | temp_datatype | ||
) |
int read_vacancy_dynamic_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
vacancy_array * | temp_datatype_array | ||
) |
int read_vacancy_static_array | ( | char * | buffer, |
int | buffer_size, | ||
int * | j, | ||
vacancy * | temp_datatype_array, | ||
int | size | ||
) |
int readAgentXML | ( | char * | location, |
double | cloud_data[], | ||
int | partition_method, | ||
int | flag, | ||
int | number_partitions, | ||
int | agent_count, | ||
int * | itno | ||
) |
int readEnvironmentXML | ( | char * | location | ) |
void readinitialstates | ( | char * | filename, |
char * | filelocation, | ||
int * | itno, | ||
double | cloud_data[], | ||
int | partition_method, | ||
int | flag | ||
) |
void saveiterationdata | ( | int | iteration_number | ) |
void write_bank_agent | ( | FILE * | file, |
xmachine_memory_bank * | current | ||
) |
void write_buyer | ( | FILE * | file, |
buyer * | temp_datatype | ||
) |
void write_buyer_dynamic_array | ( | FILE * | file, |
buyer_array * | temp_datatype | ||
) |
void write_buyer_static_array | ( | FILE * | file, |
buyer * | temp_datatype, | ||
int | size | ||
) |
void write_centralbank_agent | ( | FILE * | file, |
xmachine_memory_centralbank * | current | ||
) |
void write_char_dynamic_array | ( | FILE * | file, |
char_array * | temp | ||
) |
void write_char_static_array | ( | FILE * | file, |
char * | temp, | ||
int | size | ||
) |
void write_double_dynamic_array | ( | FILE * | file, |
double_array * | temp | ||
) |
void write_double_static_array | ( | FILE * | file, |
double * | temp, | ||
int | size | ||
) |
void write_employee | ( | FILE * | file, |
employee * | temp_datatype | ||
) |
void write_employee_dynamic_array | ( | FILE * | file, |
employee_array * | temp_datatype | ||
) |
void write_employee_static_array | ( | FILE * | file, |
employee * | temp_datatype, | ||
int | size | ||
) |
void write_equityfund_agent | ( | FILE * | file, |
xmachine_memory_equityfund * | current | ||
) |
void write_firm_agent | ( | FILE * | file, |
xmachine_memory_firm * | current | ||
) |
void write_float_dynamic_array | ( | FILE * | file, |
float_array * | temp | ||
) |
void write_float_static_array | ( | FILE * | file, |
float * | temp, | ||
int | size | ||
) |
void write_government_agent | ( | FILE * | file, |
xmachine_memory_government * | current | ||
) |
void write_hbank | ( | FILE * | file, |
hbank * | temp_datatype | ||
) |
void write_hbank_dynamic_array | ( | FILE * | file, |
hbank_array * | temp_datatype | ||
) |
void write_hbank_static_array | ( | FILE * | file, |
hbank * | temp_datatype, | ||
int | size | ||
) |
void write_hbuyer | ( | FILE * | file, |
hbuyer * | temp_datatype | ||
) |
void write_hbuyer_dynamic_array | ( | FILE * | file, |
hbuyer_array * | temp_datatype | ||
) |
void write_hbuyer_static_array | ( | FILE * | file, |
hbuyer * | temp_datatype, | ||
int | size | ||
) |
void write_household_agent | ( | FILE * | file, |
xmachine_memory_household * | current | ||
) |
void write_hseller | ( | FILE * | file, |
hseller * | temp_datatype | ||
) |
void write_hseller_dynamic_array | ( | FILE * | file, |
hseller_array * | temp_datatype | ||
) |
void write_hseller_static_array | ( | FILE * | file, |
hseller * | temp_datatype, | ||
int | size | ||
) |
void write_int_dynamic_array | ( | FILE * | file, |
int_array * | temp | ||
) |
void write_int_static_array | ( | FILE * | file, |
int * | temp, | ||
int | size | ||
) |
void write_jpoffice_agent | ( | FILE * | file, |
xmachine_memory_jpoffice * | current | ||
) |
void write_loan | ( | FILE * | file, |
loan * | temp_datatype | ||
) |
void write_loan_dynamic_array | ( | FILE * | file, |
loan_array * | temp_datatype | ||
) |
void write_loan_static_array | ( | FILE * | file, |
loan * | temp_datatype, | ||
int | size | ||
) |
void write_mall_agent | ( | FILE * | file, |
xmachine_memory_mall * | current | ||
) |
void write_mortgage | ( | FILE * | file, |
mortgage * | temp_datatype | ||
) |
void write_mortgage_dynamic_array | ( | FILE * | file, |
mortgage_array * | temp_datatype | ||
) |
void write_mortgage_static_array | ( | FILE * | file, |
mortgage * | temp_datatype, | ||
int | size | ||
) |
void write_reagency_agent | ( | FILE * | file, |
xmachine_memory_reagency * | current | ||
) |
void write_seller | ( | FILE * | file, |
seller * | temp_datatype | ||
) |
void write_seller_dynamic_array | ( | FILE * | file, |
seller_array * | temp_datatype | ||
) |
void write_seller_static_array | ( | FILE * | file, |
seller * | temp_datatype, | ||
int | size | ||
) |
void write_transaction | ( | FILE * | file, |
transaction * | temp_datatype | ||
) |
void write_transaction_dynamic_array | ( | FILE * | file, |
transaction_array * | temp_datatype | ||
) |
void write_transaction_static_array | ( | FILE * | file, |
transaction * | temp_datatype, | ||
int | size | ||
) |
void write_vacancy | ( | FILE * | file, |
vacancy * | temp_datatype | ||
) |
void write_vacancy_dynamic_array | ( | FILE * | file, |
vacancy_array * | temp_datatype | ||
) |