ICEACE Model: Closed Economy  1.0.0
Design Documentation of ICEACE Model
 All Data Structures Files Functions Variables Typedefs Macros Pages
memory.c
Go to the documentation of this file.
1 
6 #include "header.h"
7 
8 
10 {
11 
12 
13  //return idle();
14 }
15 
17 {
18 
19 
20  //return idle();
21 }
22 
24 {
25 
26 
27  //return firm_init_post_id();
28 }
29 
31 {
32  int rc;
33 
35 
36  #ifdef ERRCHECK
37  if (rc != MB_SUCCESS)
38  {
39  fprintf(stderr, "ERROR: Could not create Iterator for 'jpoffice_firm_employee'\n");
40  switch(rc) {
41  case MB_ERR_INVALID:
42  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board is invalid\n");
43  break;
44  case MB_ERR_LOCKED:
45  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board is locked\n");
46  break;
47  case MB_ERR_MEMALLOC:
48  fprintf(stderr, "\t reason: out of memory\n");
49  break;
50  case MB_ERR_INTERNAL:
51  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
52  break;
53  }
54  }
55  #endif
56 
57  //return firm_init_employment();
58 }
59 
61 {
62 
63 
64  //return firm_init_balancesheet();
65 }
66 
68 {
69 
70 
71  //return firm_iterate();
72 }
73 
75 {
76 
77 
78  //return idle();
79 }
80 
82 {
83 
84 
85  //return firm_update_bank_account();
86 }
87 
89 {
90 
91 
92  //return idle();
93 }
94 
96 {
97 
98 
99  //return idle();
100 }
101 
103 {
104 
105 
106  //return idle();
107 }
108 
110 {
111 
112 
113  //return firm_consumption_supply();
114 }
115 
117 {
118  int rc;
119 
121 
122  #ifdef ERRCHECK
123  if (rc != MB_SUCCESS)
124  {
125  fprintf(stderr, "ERROR: Could not create Iterator for 'sold'\n");
126  switch(rc) {
127  case MB_ERR_INVALID:
128  fprintf(stderr, "\t reason: 'sold' board is invalid\n");
129  break;
130  case MB_ERR_LOCKED:
131  fprintf(stderr, "\t reason: 'sold' board is locked\n");
132  break;
133  case MB_ERR_MEMALLOC:
134  fprintf(stderr, "\t reason: out of memory\n");
135  break;
136  case MB_ERR_INTERNAL:
137  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
138  break;
139  }
140  }
141  #endif
142 
143  //return firm_consumption_receive_sales();
144 }
145 
147 {
148  int rc;
149 
150 
152  #ifdef ERRCHECK
153  if (rc != MB_SUCCESS)
154  {
155  fprintf(stderr, "ERROR: Could not create Iterator for 'goods_transactions_summary'\n");
156  switch(rc) {
157  case MB_ERR_INVALID:
158  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is invalid\n");
159  break;
160  case MB_ERR_LOCKED:
161  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is locked\n");
162  break;
163  case MB_ERR_MEMALLOC:
164  fprintf(stderr, "\t reason: out of memory\n");
165  break;
166  case MB_ERR_INTERNAL:
167  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
168  break;
169  }
170  }
171  #endif
172 
173  //return firm_consumption_update_market_price();
174 }
175 
177 {
178 
179 
180  //return idle();
181 }
182 
184 {
185 
186 
187  //return firm_labour_workforce_needed();
188 }
189 
191 {
192 
193 
194  //return idle();
195 }
196 
198 {
199 
200 
201  //return firm_labour_fire();
202 }
203 
205 {
206 
207 
208  //return firm_labour_job_announcement_stage1();
209 }
210 
212 {
213  int rc;
214 
216 
217  #ifdef ERRCHECK
218  if (rc != MB_SUCCESS)
219  {
220  fprintf(stderr, "ERROR: Could not create Iterator for 'job_match_stage1'\n");
221  switch(rc) {
222  case MB_ERR_INVALID:
223  fprintf(stderr, "\t reason: 'job_match_stage1' board is invalid\n");
224  break;
225  case MB_ERR_LOCKED:
226  fprintf(stderr, "\t reason: 'job_match_stage1' board is locked\n");
227  break;
228  case MB_ERR_MEMALLOC:
229  fprintf(stderr, "\t reason: out of memory\n");
230  break;
231  case MB_ERR_INTERNAL:
232  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
233  break;
234  }
235  }
236  #endif
237 
238  //return firm_labour_job_offer_stage1();
239 }
240 
242 {
243  int rc;
244 
246 
247  #ifdef ERRCHECK
248  if (rc != MB_SUCCESS)
249  {
250  fprintf(stderr, "ERROR: Could not create Iterator for 'job_change'\n");
251  switch(rc) {
252  case MB_ERR_INVALID:
253  fprintf(stderr, "\t reason: 'job_change' board is invalid\n");
254  break;
255  case MB_ERR_LOCKED:
256  fprintf(stderr, "\t reason: 'job_change' board is locked\n");
257  break;
258  case MB_ERR_MEMALLOC:
259  fprintf(stderr, "\t reason: out of memory\n");
260  break;
261  case MB_ERR_INTERNAL:
262  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
263  break;
264  }
265  }
266  #endif
267 
268  //return firm_labour_update();
269 }
270 
272 {
273 
274 
275  //return firm_labour_job_announcement_stage2();
276 }
277 
279 {
280 
281 
282  //return idle();
283 }
284 
286 {
287  int rc;
288 
290 
291  #ifdef ERRCHECK
292  if (rc != MB_SUCCESS)
293  {
294  fprintf(stderr, "ERROR: Could not create Iterator for 'job_match_stage2'\n");
295  switch(rc) {
296  case MB_ERR_INVALID:
297  fprintf(stderr, "\t reason: 'job_match_stage2' board is invalid\n");
298  break;
299  case MB_ERR_LOCKED:
300  fprintf(stderr, "\t reason: 'job_match_stage2' board is locked\n");
301  break;
302  case MB_ERR_MEMALLOC:
303  fprintf(stderr, "\t reason: out of memory\n");
304  break;
305  case MB_ERR_INTERNAL:
306  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
307  break;
308  }
309  }
310  #endif
311 
312  //return firm_labour_job_offer_stage2();
313 }
314 
316 {
317 
318 
319  //return idle();
320 }
321 
323 {
324 
325 
326  //return firm_labour_pay_wages();
327 }
328 
330 {
331  int rc;
332 
333 
334  rc = MB_Iterator_Create(b_employment_status, &i_employment_status);
335  #ifdef ERRCHECK
336  if (rc != MB_SUCCESS)
337  {
338  fprintf(stderr, "ERROR: Could not create Iterator for 'employment_status'\n");
339  switch(rc) {
340  case MB_ERR_INVALID:
341  fprintf(stderr, "\t reason: 'employment_status' board is invalid\n");
342  break;
343  case MB_ERR_LOCKED:
344  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
345  break;
346  case MB_ERR_MEMALLOC:
347  fprintf(stderr, "\t reason: out of memory\n");
348  break;
349  case MB_ERR_INTERNAL:
350  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
351  break;
352  }
353  }
354  #endif
355 
356  //return firm_labour_trace_wages();
357 }
358 
360 {
361 
362 
363  //return idle();
364 }
365 
367 {
368 
369 
370  //return idle();
371 }
372 
374 {
375 
376 
377  //return firm_production_skip();
378 }
379 
381 {
382 
383 
384  //return idle();
385 }
386 
388 {
389 
390 
391  //return idle();
392 }
393 
395 {
396 
397 
398  //return idle();
399 }
400 
402 {
403 
404 
405  //return firm_production_produce_goods();
406 }
407 
409 {
410 
411 
412  //return firm_production_set_price();
413 }
414 
416 {
417 
418 
419  //return firm_production_plan();
420 }
421 
423 {
424 
425 
426  //return firm_production_compute_labour_demand();
427 }
428 
430 {
431 
432 
433  //return firm_production_construct_houses();
434 }
435 
437 {
438 
439 
440  //return firm_production_construction_plan();
441 }
442 
444 {
445 
446 
447  //return firm_production_construction_labour_demand();
448 }
449 
451 {
452 
453 
454  //return idle();
455 }
456 
458 {
459 
460 
461  //return firm_credit_compute_income_statement();
462 }
463 
465 {
466 
467 
468  //return firm_credit_investment_decisions();
469 }
470 
472 {
473 
474 
475  //return firm_credit_compute_dividends();
476 }
477 
479 {
480 
481 
482  //return firm_credit_check_liquidity_need();
483 }
484 
486 {
487 
488 
489  //return idle();
490 }
491 
493 {
494 
495 
496  //return firm_credit_demand_loans_1();
497 }
498 
500 {
501  int rc;
502 
504 
505  #ifdef ERRCHECK
506  if (rc != MB_SUCCESS)
507  {
508  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_firm_loan_acknowledge_1'\n");
509  switch(rc) {
510  case MB_ERR_INVALID:
511  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
512  break;
513  case MB_ERR_LOCKED:
514  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
515  break;
516  case MB_ERR_MEMALLOC:
517  fprintf(stderr, "\t reason: out of memory\n");
518  break;
519  case MB_ERR_INTERNAL:
520  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
521  break;
522  }
523  }
524  #endif
525 
526  //return firm_credit_borrow_loans_1();
527 }
528 
530 {
531 
532 
533  //return idle();
534 }
535 
537 {
538  int rc;
539 
541 
542  #ifdef ERRCHECK
543  if (rc != MB_SUCCESS)
544  {
545  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_firm_loan_acknowledge_2'\n");
546  switch(rc) {
547  case MB_ERR_INVALID:
548  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
549  break;
550  case MB_ERR_LOCKED:
551  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
552  break;
553  case MB_ERR_MEMALLOC:
554  fprintf(stderr, "\t reason: out of memory\n");
555  break;
556  case MB_ERR_INTERNAL:
557  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
558  break;
559  }
560  }
561  #endif
562 
563  //return firm_credit_borrow_loans_2();
564 }
565 
567 {
568 
569 
570  //return idle();
571 }
572 
574 {
575 
576 
577  //return firm_credit_request_equityfund_investment();
578 }
579 
581 {
582 
583 
584  //return idle();
585 }
586 
588 {
589  int rc;
590 
592 
593  #ifdef ERRCHECK
594  if (rc != MB_SUCCESS)
595  {
596  fprintf(stderr, "ERROR: Could not create Iterator for 'fund_request_ack'\n");
597  switch(rc) {
598  case MB_ERR_INVALID:
599  fprintf(stderr, "\t reason: 'fund_request_ack' board is invalid\n");
600  break;
601  case MB_ERR_LOCKED:
602  fprintf(stderr, "\t reason: 'fund_request_ack' board is locked\n");
603  break;
604  case MB_ERR_MEMALLOC:
605  fprintf(stderr, "\t reason: out of memory\n");
606  break;
607  case MB_ERR_INTERNAL:
608  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
609  break;
610  }
611  }
612  #endif
613 
614  //return firm_credit_check_equityfund_investment();
615 }
616 
618 {
619 
620 
621  //return idle();
622 }
623 
625 {
626 
627 
628  //return firm_credit_illiquidity_bankrupt();
629 }
630 
632 {
633 
634 
635  //return firm_credit_pay_interest_on_loans();
636 }
637 
639 {
640 
641 
642  //return firm_credit_pay_dividends();
643 }
644 
646 {
647 
648 
649  //return firm_credit_do_balance_sheet();
650 }
651 
653 {
654 
655 
656  //return idle();
657 }
658 
660 {
661 
662 
663  //return firm_credit_insolvency_bankruptcy();
664 }
665 
667 {
668 
669 
670  //return idle();
671 }
672 
674 {
675  int rc;
676 
677 
678  rc = MB_Iterator_Create(b_interest_rate, &i_interest_rate);
679  #ifdef ERRCHECK
680  if (rc != MB_SUCCESS)
681  {
682  fprintf(stderr, "ERROR: Could not create Iterator for 'interest_rate'\n");
683  switch(rc) {
684  case MB_ERR_INVALID:
685  fprintf(stderr, "\t reason: 'interest_rate' board is invalid\n");
686  break;
687  case MB_ERR_LOCKED:
688  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
689  break;
690  case MB_ERR_MEMALLOC:
691  fprintf(stderr, "\t reason: out of memory\n");
692  break;
693  case MB_ERR_INTERNAL:
694  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
695  break;
696  }
697  }
698  #endif
699 
700  //return firm_credit_check_interest_rate();
701 }
702 
704 {
705  int rc;
706 
707 
708  rc = MB_Iterator_Create(b_labour_tax_rate, &i_labour_tax_rate);
709  #ifdef ERRCHECK
710  if (rc != MB_SUCCESS)
711  {
712  fprintf(stderr, "ERROR: Could not create Iterator for 'labour_tax_rate'\n");
713  switch(rc) {
714  case MB_ERR_INVALID:
715  fprintf(stderr, "\t reason: 'labour_tax_rate' board is invalid\n");
716  break;
717  case MB_ERR_LOCKED:
718  fprintf(stderr, "\t reason: 'labour_tax_rate' board is locked\n");
719  break;
720  case MB_ERR_MEMALLOC:
721  fprintf(stderr, "\t reason: out of memory\n");
722  break;
723  case MB_ERR_INTERNAL:
724  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
725  break;
726  }
727  }
728  #endif
729 
730  //return firm_credit_check_tax_rate();
731 }
732 
734 {
735 
736 
737  //return idle();
738 }
739 
741 {
742 
743 
744  //return idle();
745 }
746 
748 {
749 
750 
751  //return idle();
752 }
753 
755 {
756 
757 
758  //return firm_housing_enter_market();
759 }
760 
762 {
763  int rc;
764 
766 
767  #ifdef ERRCHECK
768  if (rc != MB_SUCCESS)
769  {
770  fprintf(stderr, "ERROR: Could not create Iterator for 'sold_housing'\n");
771  switch(rc) {
772  case MB_ERR_INVALID:
773  fprintf(stderr, "\t reason: 'sold_housing' board is invalid\n");
774  break;
775  case MB_ERR_LOCKED:
776  fprintf(stderr, "\t reason: 'sold_housing' board is locked\n");
777  break;
778  case MB_ERR_MEMALLOC:
779  fprintf(stderr, "\t reason: out of memory\n");
780  break;
781  case MB_ERR_INTERNAL:
782  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
783  break;
784  }
785  }
786  #endif
787 
788  //return firm_housing_collect_sale_revenues();
789 }
790 
792 {
793  int rc;
794 
795 
796  rc = MB_Iterator_Create(b_housing_price, &i_housing_price);
797  #ifdef ERRCHECK
798  if (rc != MB_SUCCESS)
799  {
800  fprintf(stderr, "ERROR: Could not create Iterator for 'housing_price'\n");
801  switch(rc) {
802  case MB_ERR_INVALID:
803  fprintf(stderr, "\t reason: 'housing_price' board is invalid\n");
804  break;
805  case MB_ERR_LOCKED:
806  fprintf(stderr, "\t reason: 'housing_price' board is locked\n");
807  break;
808  case MB_ERR_MEMALLOC:
809  fprintf(stderr, "\t reason: out of memory\n");
810  break;
811  case MB_ERR_INTERNAL:
812  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
813  break;
814  }
815  }
816  #endif
817 
818  //return firm_housing_update_market_price();
819 }
820 
822 {
823 
824 
825  //return idle();
826 }
827 
829 {
830 
831 
832  //return idle();
833 }
834 
836 {
837 
838 
839  //return household_init_post_id();
840 }
841 
843 {
844  int rc;
845 
847 
848  #ifdef ERRCHECK
849  if (rc != MB_SUCCESS)
850  {
851  fprintf(stderr, "ERROR: Could not create Iterator for 'jpoffice_household_employer'\n");
852  switch(rc) {
853  case MB_ERR_INVALID:
854  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board is invalid\n");
855  break;
856  case MB_ERR_LOCKED:
857  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board is locked\n");
858  break;
859  case MB_ERR_MEMALLOC:
860  fprintf(stderr, "\t reason: out of memory\n");
861  break;
862  case MB_ERR_INTERNAL:
863  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
864  break;
865  }
866  }
867  #endif
868 
869  //return household_init_employment();
870 }
871 
873 {
874 
875 
876  //return household_init_balancesheet();
877 }
878 
880 {
881 
882 
883  //return household_iterate();
884 }
885 
887 {
888 
889 
890  //return idle();
891 }
892 
894 {
895 
896 
897  //return household_update_bank_account();
898 }
899 
901 {
902 
903 
904  //return idle();
905 }
906 
908 {
909 
910 
911  //return household_consumption_compute_budget();
912 }
913 
915 {
916 
917 
918  //return idle();
919 }
920 
922 {
923 
924 
925  //return household_consumption_demand();
926 }
927 
929 {
930  int rc;
931 
933 
934  #ifdef ERRCHECK
935  if (rc != MB_SUCCESS)
936  {
937  fprintf(stderr, "ERROR: Could not create Iterator for 'bought'\n");
938  switch(rc) {
939  case MB_ERR_INVALID:
940  fprintf(stderr, "\t reason: 'bought' board is invalid\n");
941  break;
942  case MB_ERR_LOCKED:
943  fprintf(stderr, "\t reason: 'bought' board is locked\n");
944  break;
945  case MB_ERR_MEMALLOC:
946  fprintf(stderr, "\t reason: out of memory\n");
947  break;
948  case MB_ERR_INTERNAL:
949  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
950  break;
951  }
952  }
953  #endif
954 
955  //return household_consumption_recieve_goods();
956 }
957 
959 {
960 
961 
962  //return idle();
963 }
964 
966 {
967  int rc;
968 
969 
971  #ifdef ERRCHECK
972  if (rc != MB_SUCCESS)
973  {
974  fprintf(stderr, "ERROR: Could not create Iterator for 'centralbank_households_quarterly_cpi'\n");
975  switch(rc) {
976  case MB_ERR_INVALID:
977  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
978  break;
979  case MB_ERR_LOCKED:
980  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
981  break;
982  case MB_ERR_MEMALLOC:
983  fprintf(stderr, "\t reason: out of memory\n");
984  break;
985  case MB_ERR_INTERNAL:
986  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
987  break;
988  }
989  }
990  #endif
991 
992  //return household_consumption_trace_cpi();
993 }
994 
996 {
997 
998 
999  //return idle();
1000 }
1001 
1003 {
1004  int rc;
1005 
1007 
1008  #ifdef ERRCHECK
1009  if (rc != MB_SUCCESS)
1010  {
1011  fprintf(stderr, "ERROR: Could not create Iterator for 'fired'\n");
1012  switch(rc) {
1013  case MB_ERR_INVALID:
1014  fprintf(stderr, "\t reason: 'fired' board is invalid\n");
1015  break;
1016  case MB_ERR_LOCKED:
1017  fprintf(stderr, "\t reason: 'fired' board is locked\n");
1018  break;
1019  case MB_ERR_MEMALLOC:
1020  fprintf(stderr, "\t reason: out of memory\n");
1021  break;
1022  case MB_ERR_INTERNAL:
1023  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1024  break;
1025  }
1026  }
1027  #endif
1028 
1029  //return household_labour_check_fired();
1030 }
1031 
1033 {
1034 
1035 
1036  //return household_labour_reemployment_application();
1037 }
1038 
1040 {
1041 
1042 
1043  //return idle();
1044 }
1045 
1047 {
1048  int rc;
1049 
1051 
1052  #ifdef ERRCHECK
1053  if (rc != MB_SUCCESS)
1054  {
1055  fprintf(stderr, "ERROR: Could not create Iterator for 'job_match_stage1'\n");
1056  switch(rc) {
1057  case MB_ERR_INVALID:
1058  fprintf(stderr, "\t reason: 'job_match_stage1' board is invalid\n");
1059  break;
1060  case MB_ERR_LOCKED:
1061  fprintf(stderr, "\t reason: 'job_match_stage1' board is locked\n");
1062  break;
1063  case MB_ERR_MEMALLOC:
1064  fprintf(stderr, "\t reason: out of memory\n");
1065  break;
1066  case MB_ERR_INTERNAL:
1067  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1068  break;
1069  }
1070  }
1071  #endif
1072 
1073  //return household_labour_turnover();
1074 }
1075 
1077 {
1078 
1079 
1080  //return household_labour_employment_application();
1081 }
1082 
1084 {
1085  int rc;
1086 
1088 
1089  #ifdef ERRCHECK
1090  if (rc != MB_SUCCESS)
1091  {
1092  fprintf(stderr, "ERROR: Could not create Iterator for 'job_match_stage2'\n");
1093  switch(rc) {
1094  case MB_ERR_INVALID:
1095  fprintf(stderr, "\t reason: 'job_match_stage2' board is invalid\n");
1096  break;
1097  case MB_ERR_LOCKED:
1098  fprintf(stderr, "\t reason: 'job_match_stage2' board is locked\n");
1099  break;
1100  case MB_ERR_MEMALLOC:
1101  fprintf(stderr, "\t reason: out of memory\n");
1102  break;
1103  case MB_ERR_INTERNAL:
1104  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1105  break;
1106  }
1107  }
1108  #endif
1109 
1110  //return household_labour_employment();
1111 }
1112 
1114 {
1115 
1116 
1117  //return idle();
1118 }
1119 
1121 {
1122  int rc;
1123 
1125 
1126  #ifdef ERRCHECK
1127  if (rc != MB_SUCCESS)
1128  {
1129  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_household_wage_payment'\n");
1130  switch(rc) {
1131  case MB_ERR_INVALID:
1132  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board is invalid\n");
1133  break;
1134  case MB_ERR_LOCKED:
1135  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board is locked\n");
1136  break;
1137  case MB_ERR_MEMALLOC:
1138  fprintf(stderr, "\t reason: out of memory\n");
1139  break;
1140  case MB_ERR_INTERNAL:
1141  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1142  break;
1143  }
1144  }
1145  #endif
1146 
1147  //return household_labour_receive_wage();
1148 }
1149 
1151 {
1152 
1153 
1154  //return household_labour_report_status();
1155 }
1156 
1158 {
1159 
1160 
1161  //return idle();
1162 }
1163 
1165 {
1166 
1167 
1168  //return idle();
1169 }
1170 
1172 {
1173 
1174 
1175  //return idle();
1176 }
1177 
1179 {
1180  int rc;
1181 
1182 
1183  rc = MB_Iterator_Create(b_household_share, &i_household_share);
1184  #ifdef ERRCHECK
1185  if (rc != MB_SUCCESS)
1186  {
1187  fprintf(stderr, "ERROR: Could not create Iterator for 'household_share'\n");
1188  switch(rc) {
1189  case MB_ERR_INVALID:
1190  fprintf(stderr, "\t reason: 'household_share' board is invalid\n");
1191  break;
1192  case MB_ERR_LOCKED:
1193  fprintf(stderr, "\t reason: 'household_share' board is locked\n");
1194  break;
1195  case MB_ERR_MEMALLOC:
1196  fprintf(stderr, "\t reason: out of memory\n");
1197  break;
1198  case MB_ERR_INTERNAL:
1199  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1200  break;
1201  }
1202  }
1203  #endif
1204 
1205  //return household_credit_collect_shares();
1206 }
1207 
1209 {
1210 
1211 
1212  //return household_credit_do_balance_sheet();
1213 }
1214 
1216 {
1217 
1218 
1219  //return idle();
1220 }
1221 
1223 {
1224  int rc;
1225 
1226 
1227  rc = MB_Iterator_Create(b_general_benefit, &i_general_benefit);
1228  #ifdef ERRCHECK
1229  if (rc != MB_SUCCESS)
1230  {
1231  fprintf(stderr, "ERROR: Could not create Iterator for 'general_benefit'\n");
1232  switch(rc) {
1233  case MB_ERR_INVALID:
1234  fprintf(stderr, "\t reason: 'general_benefit' board is invalid\n");
1235  break;
1236  case MB_ERR_LOCKED:
1237  fprintf(stderr, "\t reason: 'general_benefit' board is locked\n");
1238  break;
1239  case MB_ERR_MEMALLOC:
1240  fprintf(stderr, "\t reason: out of memory\n");
1241  break;
1242  case MB_ERR_INTERNAL:
1243  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1244  break;
1245  }
1246  }
1247  #endif
1248 
1249 
1250  rc = MB_Iterator_Create(b_unemployment_benefit, &i_unemployment_benefit);
1251  #ifdef ERRCHECK
1252  if (rc != MB_SUCCESS)
1253  {
1254  fprintf(stderr, "ERROR: Could not create Iterator for 'unemployment_benefit'\n");
1255  switch(rc) {
1256  case MB_ERR_INVALID:
1257  fprintf(stderr, "\t reason: 'unemployment_benefit' board is invalid\n");
1258  break;
1259  case MB_ERR_LOCKED:
1260  fprintf(stderr, "\t reason: 'unemployment_benefit' board is locked\n");
1261  break;
1262  case MB_ERR_MEMALLOC:
1263  fprintf(stderr, "\t reason: out of memory\n");
1264  break;
1265  case MB_ERR_INTERNAL:
1266  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1267  break;
1268  }
1269  }
1270  #endif
1271 
1272  //return household_credit_collect_benefits();
1273 }
1274 
1276 {
1277 
1278 
1279  //return idle();
1280 }
1281 
1283 {
1284  int rc;
1285 
1286 
1287  rc = MB_Iterator_Create(b_interest_rate, &i_interest_rate);
1288  #ifdef ERRCHECK
1289  if (rc != MB_SUCCESS)
1290  {
1291  fprintf(stderr, "ERROR: Could not create Iterator for 'interest_rate'\n");
1292  switch(rc) {
1293  case MB_ERR_INVALID:
1294  fprintf(stderr, "\t reason: 'interest_rate' board is invalid\n");
1295  break;
1296  case MB_ERR_LOCKED:
1297  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
1298  break;
1299  case MB_ERR_MEMALLOC:
1300  fprintf(stderr, "\t reason: out of memory\n");
1301  break;
1302  case MB_ERR_INTERNAL:
1303  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1304  break;
1305  }
1306  }
1307  #endif
1308 
1309  //return household_credit_check_interest_rate();
1310 }
1311 
1313 {
1314 
1315 
1316  //return household_credit_update_mortgage_rates();
1317 }
1318 
1320 {
1321  int rc;
1322 
1323 
1324  rc = MB_Iterator_Create(b_labour_tax_rate, &i_labour_tax_rate);
1325  #ifdef ERRCHECK
1326  if (rc != MB_SUCCESS)
1327  {
1328  fprintf(stderr, "ERROR: Could not create Iterator for 'labour_tax_rate'\n");
1329  switch(rc) {
1330  case MB_ERR_INVALID:
1331  fprintf(stderr, "\t reason: 'labour_tax_rate' board is invalid\n");
1332  break;
1333  case MB_ERR_LOCKED:
1334  fprintf(stderr, "\t reason: 'labour_tax_rate' board is locked\n");
1335  break;
1336  case MB_ERR_MEMALLOC:
1337  fprintf(stderr, "\t reason: out of memory\n");
1338  break;
1339  case MB_ERR_INTERNAL:
1340  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1341  break;
1342  }
1343  }
1344  #endif
1345 
1346  //return household_credit_check_tax_rate();
1347 }
1348 
1350 {
1351 
1352 
1353  //return idle();
1354 }
1355 
1357 {
1358 
1359 
1360  //return household_housing_market_role();
1361 }
1362 
1364 {
1365 
1366 
1367  //return idle();
1368 }
1369 
1371 {
1372 
1373 
1374  //return household_housing_check_wealth();
1375 }
1376 
1378 {
1379 
1380 
1381  //return household_housing_sell();
1382 }
1383 
1385 {
1386 
1387 
1388  //return household_housing_fire_sell();
1389 }
1390 
1392 {
1393  int rc;
1394 
1396 
1397  #ifdef ERRCHECK
1398  if (rc != MB_SUCCESS)
1399  {
1400  fprintf(stderr, "ERROR: Could not create Iterator for 'sold_housing'\n");
1401  switch(rc) {
1402  case MB_ERR_INVALID:
1403  fprintf(stderr, "\t reason: 'sold_housing' board is invalid\n");
1404  break;
1405  case MB_ERR_LOCKED:
1406  fprintf(stderr, "\t reason: 'sold_housing' board is locked\n");
1407  break;
1408  case MB_ERR_MEMALLOC:
1409  fprintf(stderr, "\t reason: out of memory\n");
1410  break;
1411  case MB_ERR_INTERNAL:
1412  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1413  break;
1414  }
1415  }
1416  #endif
1417 
1418  //return household_housing_collect_sale_revenue();
1419 }
1420 
1422 {
1423 
1424 
1425  //return idle();
1426 }
1427 
1429 {
1430 
1431 
1432  //return household_housing_enter_market();
1433 }
1434 
1436 {
1437  int rc;
1438 
1440 
1441  #ifdef ERRCHECK
1442  if (rc != MB_SUCCESS)
1443  {
1444  fprintf(stderr, "ERROR: Could not create Iterator for 'bought_housing'\n");
1445  switch(rc) {
1446  case MB_ERR_INVALID:
1447  fprintf(stderr, "\t reason: 'bought_housing' board is invalid\n");
1448  break;
1449  case MB_ERR_LOCKED:
1450  fprintf(stderr, "\t reason: 'bought_housing' board is locked\n");
1451  break;
1452  case MB_ERR_MEMALLOC:
1453  fprintf(stderr, "\t reason: out of memory\n");
1454  break;
1455  case MB_ERR_INTERNAL:
1456  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1457  break;
1458  }
1459  }
1460  #endif
1461 
1462  //return household_housing_buy();
1463 }
1464 
1466 {
1467  int rc;
1468 
1469 
1470  rc = MB_Iterator_Create(b_housing_price, &i_housing_price);
1471  #ifdef ERRCHECK
1472  if (rc != MB_SUCCESS)
1473  {
1474  fprintf(stderr, "ERROR: Could not create Iterator for 'housing_price'\n");
1475  switch(rc) {
1476  case MB_ERR_INVALID:
1477  fprintf(stderr, "\t reason: 'housing_price' board is invalid\n");
1478  break;
1479  case MB_ERR_LOCKED:
1480  fprintf(stderr, "\t reason: 'housing_price' board is locked\n");
1481  break;
1482  case MB_ERR_MEMALLOC:
1483  fprintf(stderr, "\t reason: out of memory\n");
1484  break;
1485  case MB_ERR_INTERNAL:
1486  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1487  break;
1488  }
1489  }
1490  #endif
1491 
1492  //return household_housing_update_market_price();
1493 }
1494 
1496 {
1497 
1498 
1499  //return household_housing_pay_mortgages();
1500 }
1501 
1503 {
1504 
1505 
1506  //return household_housing_debt_writeoff();
1507 }
1508 
1510 {
1511 
1512 
1513  //return equityfund_init();
1514 }
1515 
1517 {
1518 
1519 
1520  //return idle();
1521 }
1522 
1524 {
1525 
1526 
1527  //return equityfund_iterate();
1528 }
1529 
1531 {
1532 
1533 
1534  //return idle();
1535 }
1536 
1538 {
1539  int rc;
1540 
1541 
1542  rc = MB_Iterator_Create(b_employment_status, &i_employment_status);
1543  #ifdef ERRCHECK
1544  if (rc != MB_SUCCESS)
1545  {
1546  fprintf(stderr, "ERROR: Could not create Iterator for 'employment_status'\n");
1547  switch(rc) {
1548  case MB_ERR_INVALID:
1549  fprintf(stderr, "\t reason: 'employment_status' board is invalid\n");
1550  break;
1551  case MB_ERR_LOCKED:
1552  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
1553  break;
1554  case MB_ERR_MEMALLOC:
1555  fprintf(stderr, "\t reason: out of memory\n");
1556  break;
1557  case MB_ERR_INTERNAL:
1558  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1559  break;
1560  }
1561  }
1562  #endif
1563 
1564  //return equityfund_audit_dividends();
1565 }
1566 
1568 {
1569 
1570 
1571  //return idle();
1572 }
1573 
1575 {
1576  int rc;
1577 
1578 
1579  rc = MB_Iterator_Create(b_fund_request, &i_fund_request);
1580  #ifdef ERRCHECK
1581  if (rc != MB_SUCCESS)
1582  {
1583  fprintf(stderr, "ERROR: Could not create Iterator for 'fund_request'\n");
1584  switch(rc) {
1585  case MB_ERR_INVALID:
1586  fprintf(stderr, "\t reason: 'fund_request' board is invalid\n");
1587  break;
1588  case MB_ERR_LOCKED:
1589  fprintf(stderr, "\t reason: 'fund_request' board is locked\n");
1590  break;
1591  case MB_ERR_MEMALLOC:
1592  fprintf(stderr, "\t reason: out of memory\n");
1593  break;
1594  case MB_ERR_INTERNAL:
1595  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1596  break;
1597  }
1598  }
1599  #endif
1600 
1601  //return equityfund_credit_invest_illiquids();
1602 }
1603 
1605 {
1606  int rc;
1607 
1608 
1609  rc = MB_Iterator_Create(b_bank_net_profit, &i_bank_net_profit);
1610  #ifdef ERRCHECK
1611  if (rc != MB_SUCCESS)
1612  {
1613  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_net_profit'\n");
1614  switch(rc) {
1615  case MB_ERR_INVALID:
1616  fprintf(stderr, "\t reason: 'bank_net_profit' board is invalid\n");
1617  break;
1618  case MB_ERR_LOCKED:
1619  fprintf(stderr, "\t reason: 'bank_net_profit' board is locked\n");
1620  break;
1621  case MB_ERR_MEMALLOC:
1622  fprintf(stderr, "\t reason: out of memory\n");
1623  break;
1624  case MB_ERR_INTERNAL:
1625  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1626  break;
1627  }
1628  }
1629  #endif
1630 
1631  //return equityfund_credit_collect_bank_shares();
1632 }
1633 
1635 {
1636  int rc;
1637 
1638 
1639  rc = MB_Iterator_Create(b_firm_net_profit, &i_firm_net_profit);
1640  #ifdef ERRCHECK
1641  if (rc != MB_SUCCESS)
1642  {
1643  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_net_profit'\n");
1644  switch(rc) {
1645  case MB_ERR_INVALID:
1646  fprintf(stderr, "\t reason: 'firm_net_profit' board is invalid\n");
1647  break;
1648  case MB_ERR_LOCKED:
1649  fprintf(stderr, "\t reason: 'firm_net_profit' board is locked\n");
1650  break;
1651  case MB_ERR_MEMALLOC:
1652  fprintf(stderr, "\t reason: out of memory\n");
1653  break;
1654  case MB_ERR_INTERNAL:
1655  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1656  break;
1657  }
1658  }
1659  #endif
1660 
1661  //return equityfund_credit_collect_firm_shares();
1662 }
1663 
1665 {
1666 
1667 
1668  //return equityfund_credit_distribute_shares();
1669 }
1670 
1672 {
1673 
1674 
1675  //return idle();
1676 }
1677 
1679 {
1680 
1681 
1682  //return equityfund_credit_compute_income_statement();
1683 }
1684 
1686 {
1687 
1688 
1689  //return equityfund_credit_do_balance_sheet();
1690 }
1691 
1693 {
1694  int rc;
1695 
1696 
1697  rc = MB_Iterator_Create(b_capital_tax_rate, &i_capital_tax_rate);
1698  #ifdef ERRCHECK
1699  if (rc != MB_SUCCESS)
1700  {
1701  fprintf(stderr, "ERROR: Could not create Iterator for 'capital_tax_rate'\n");
1702  switch(rc) {
1703  case MB_ERR_INVALID:
1704  fprintf(stderr, "\t reason: 'capital_tax_rate' board is invalid\n");
1705  break;
1706  case MB_ERR_LOCKED:
1707  fprintf(stderr, "\t reason: 'capital_tax_rate' board is locked\n");
1708  break;
1709  case MB_ERR_MEMALLOC:
1710  fprintf(stderr, "\t reason: out of memory\n");
1711  break;
1712  case MB_ERR_INTERNAL:
1713  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1714  break;
1715  }
1716  }
1717  #endif
1718 
1719  //return equityfund_credit_check_tax_rate();
1720 }
1721 
1723 {
1724 
1725 
1726  //return idle();
1727 }
1728 
1730 {
1731 
1732 
1733  //return idle();
1734 }
1735 
1737 {
1738  int rc;
1739 
1741 
1742  #ifdef ERRCHECK
1743  if (rc != MB_SUCCESS)
1744  {
1745  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_init_loans'\n");
1746  switch(rc) {
1747  case MB_ERR_INVALID:
1748  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board is invalid\n");
1749  break;
1750  case MB_ERR_LOCKED:
1751  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board is locked\n");
1752  break;
1753  case MB_ERR_MEMALLOC:
1754  fprintf(stderr, "\t reason: out of memory\n");
1755  break;
1756  case MB_ERR_INTERNAL:
1757  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1758  break;
1759  }
1760  }
1761  #endif
1762 
1763  //return bank_init_loans();
1764 }
1765 
1767 {
1768  int rc;
1769 
1771 
1772  #ifdef ERRCHECK
1773  if (rc != MB_SUCCESS)
1774  {
1775  fprintf(stderr, "ERROR: Could not create Iterator for 'household_bank_init_mortgages'\n");
1776  switch(rc) {
1777  case MB_ERR_INVALID:
1778  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board is invalid\n");
1779  break;
1780  case MB_ERR_LOCKED:
1781  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board is locked\n");
1782  break;
1783  case MB_ERR_MEMALLOC:
1784  fprintf(stderr, "\t reason: out of memory\n");
1785  break;
1786  case MB_ERR_INTERNAL:
1787  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1788  break;
1789  }
1790  }
1791  #endif
1792 
1793  //return bank_init_mortgages();
1794 }
1795 
1797 {
1798  int rc;
1799 
1801 
1802  #ifdef ERRCHECK
1803  if (rc != MB_SUCCESS)
1804  {
1805  fprintf(stderr, "ERROR: Could not create Iterator for 'household_bank_init_deposit'\n");
1806  switch(rc) {
1807  case MB_ERR_INVALID:
1808  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board is invalid\n");
1809  break;
1810  case MB_ERR_LOCKED:
1811  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board is locked\n");
1812  break;
1813  case MB_ERR_MEMALLOC:
1814  fprintf(stderr, "\t reason: out of memory\n");
1815  break;
1816  case MB_ERR_INTERNAL:
1817  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1818  break;
1819  }
1820  }
1821  #endif
1822 
1824 
1825  #ifdef ERRCHECK
1826  if (rc != MB_SUCCESS)
1827  {
1828  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_init_deposit'\n");
1829  switch(rc) {
1830  case MB_ERR_INVALID:
1831  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board is invalid\n");
1832  break;
1833  case MB_ERR_LOCKED:
1834  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board is locked\n");
1835  break;
1836  case MB_ERR_MEMALLOC:
1837  fprintf(stderr, "\t reason: out of memory\n");
1838  break;
1839  case MB_ERR_INTERNAL:
1840  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1841  break;
1842  }
1843  }
1844  #endif
1845 
1846  //return bank_init_deposits();
1847 }
1848 
1850 {
1851 
1852 
1853  //return bank_init_balancesheet();
1854 }
1855 
1857 {
1858 
1859 
1860  //return bank_iterate();
1861 }
1862 
1864 {
1865 
1866 
1867  //return idle();
1868 }
1869 
1871 {
1872  int rc;
1873 
1875 
1876  #ifdef ERRCHECK
1877  if (rc != MB_SUCCESS)
1878  {
1879  fprintf(stderr, "ERROR: Could not create Iterator for 'household_bank_update_deposit'\n");
1880  switch(rc) {
1881  case MB_ERR_INVALID:
1882  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board is invalid\n");
1883  break;
1884  case MB_ERR_LOCKED:
1885  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board is locked\n");
1886  break;
1887  case MB_ERR_MEMALLOC:
1888  fprintf(stderr, "\t reason: out of memory\n");
1889  break;
1890  case MB_ERR_INTERNAL:
1891  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1892  break;
1893  }
1894  }
1895  #endif
1896 
1898 
1899  #ifdef ERRCHECK
1900  if (rc != MB_SUCCESS)
1901  {
1902  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_update_deposit'\n");
1903  switch(rc) {
1904  case MB_ERR_INVALID:
1905  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board is invalid\n");
1906  break;
1907  case MB_ERR_LOCKED:
1908  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board is locked\n");
1909  break;
1910  case MB_ERR_MEMALLOC:
1911  fprintf(stderr, "\t reason: out of memory\n");
1912  break;
1913  case MB_ERR_INTERNAL:
1914  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1915  break;
1916  }
1917  }
1918  #endif
1919 
1920  //return bank_update_deposits();
1921 }
1922 
1924 {
1925 
1926 
1927  //return idle();
1928 }
1929 
1931 {
1932 
1933 
1934  //return bank_credit_compute_income_statement();
1935 }
1936 
1938 {
1939 
1940 
1941  //return bank_credit_compute_dividends();
1942 }
1943 
1945 {
1946 
1947 
1948  //return bank_credit_do_balance_sheet();
1949 }
1950 
1952 {
1953  int rc;
1954 
1956 
1957  #ifdef ERRCHECK
1958  if (rc != MB_SUCCESS)
1959  {
1960  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_loan_request_1'\n");
1961  switch(rc) {
1962  case MB_ERR_INVALID:
1963  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board is invalid\n");
1964  break;
1965  case MB_ERR_LOCKED:
1966  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board is locked\n");
1967  break;
1968  case MB_ERR_MEMALLOC:
1969  fprintf(stderr, "\t reason: out of memory\n");
1970  break;
1971  case MB_ERR_INTERNAL:
1972  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1973  break;
1974  }
1975  }
1976  #endif
1977 
1978  //return bank_credit_process_loan_requests_1();
1979 }
1980 
1982 {
1983  int rc;
1984 
1986 
1987  #ifdef ERRCHECK
1988  if (rc != MB_SUCCESS)
1989  {
1990  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_loan_request_2'\n");
1991  switch(rc) {
1992  case MB_ERR_INVALID:
1993  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board is invalid\n");
1994  break;
1995  case MB_ERR_LOCKED:
1996  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board is locked\n");
1997  break;
1998  case MB_ERR_MEMALLOC:
1999  fprintf(stderr, "\t reason: out of memory\n");
2000  break;
2001  case MB_ERR_INTERNAL:
2002  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2003  break;
2004  }
2005  }
2006  #endif
2007 
2008  //return bank_credit_process_loan_requests_2();
2009 }
2010 
2012 {
2013  int rc;
2014 
2016 
2017  #ifdef ERRCHECK
2018  if (rc != MB_SUCCESS)
2019  {
2020  fprintf(stderr, "ERROR: Could not create Iterator for 'loan_writeoff'\n");
2021  switch(rc) {
2022  case MB_ERR_INVALID:
2023  fprintf(stderr, "\t reason: 'loan_writeoff' board is invalid\n");
2024  break;
2025  case MB_ERR_LOCKED:
2026  fprintf(stderr, "\t reason: 'loan_writeoff' board is locked\n");
2027  break;
2028  case MB_ERR_MEMALLOC:
2029  fprintf(stderr, "\t reason: out of memory\n");
2030  break;
2031  case MB_ERR_INTERNAL:
2032  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2033  break;
2034  }
2035  }
2036  #endif
2037 
2039 
2040  #ifdef ERRCHECK
2041  if (rc != MB_SUCCESS)
2042  {
2043  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_insolvent_account'\n");
2044  switch(rc) {
2045  case MB_ERR_INVALID:
2046  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board is invalid\n");
2047  break;
2048  case MB_ERR_LOCKED:
2049  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board is locked\n");
2050  break;
2051  case MB_ERR_MEMALLOC:
2052  fprintf(stderr, "\t reason: out of memory\n");
2053  break;
2054  case MB_ERR_INTERNAL:
2055  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2056  break;
2057  }
2058  }
2059  #endif
2060 
2061  //return bank_credit_recieve_loan_writeoffs();
2062 }
2063 
2065 {
2066  int rc;
2067 
2069 
2070  #ifdef ERRCHECK
2071  if (rc != MB_SUCCESS)
2072  {
2073  fprintf(stderr, "ERROR: Could not create Iterator for 'new_entrant_loan'\n");
2074  switch(rc) {
2075  case MB_ERR_INVALID:
2076  fprintf(stderr, "\t reason: 'new_entrant_loan' board is invalid\n");
2077  break;
2078  case MB_ERR_LOCKED:
2079  fprintf(stderr, "\t reason: 'new_entrant_loan' board is locked\n");
2080  break;
2081  case MB_ERR_MEMALLOC:
2082  fprintf(stderr, "\t reason: out of memory\n");
2083  break;
2084  case MB_ERR_INTERNAL:
2085  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2086  break;
2087  }
2088  }
2089  #endif
2090 
2091  //return bank_credit_recieve_new_entrant_loan_requests();
2092 }
2093 
2095 {
2096  int rc;
2097 
2099 
2100  #ifdef ERRCHECK
2101  if (rc != MB_SUCCESS)
2102  {
2103  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_bank_interest_on_loan'\n");
2104  switch(rc) {
2105  case MB_ERR_INVALID:
2106  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
2107  break;
2108  case MB_ERR_LOCKED:
2109  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board is locked\n");
2110  break;
2111  case MB_ERR_MEMALLOC:
2112  fprintf(stderr, "\t reason: out of memory\n");
2113  break;
2114  case MB_ERR_INTERNAL:
2115  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2116  break;
2117  }
2118  }
2119  #endif
2120 
2121  //return bank_credit_collect_loan_interests();
2122 }
2123 
2125 {
2126 
2127 
2128  //return idle();
2129 }
2130 
2132 {
2133  int rc;
2134 
2135 
2136  rc = MB_Iterator_Create(b_interest_rate, &i_interest_rate);
2137  #ifdef ERRCHECK
2138  if (rc != MB_SUCCESS)
2139  {
2140  fprintf(stderr, "ERROR: Could not create Iterator for 'interest_rate'\n");
2141  switch(rc) {
2142  case MB_ERR_INVALID:
2143  fprintf(stderr, "\t reason: 'interest_rate' board is invalid\n");
2144  break;
2145  case MB_ERR_LOCKED:
2146  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
2147  break;
2148  case MB_ERR_MEMALLOC:
2149  fprintf(stderr, "\t reason: out of memory\n");
2150  break;
2151  case MB_ERR_INTERNAL:
2152  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2153  break;
2154  }
2155  }
2156  #endif
2157 
2158  //return bank_credit_check_interest_rate();
2159 }
2160 
2162 {
2163 
2164 
2165  //return idle();
2166 }
2167 
2169 {
2170 
2171 
2172  //return bank_housing_compute_capital_status();
2173 }
2174 
2176 {
2177  int rc;
2178 
2180 
2181  #ifdef ERRCHECK
2182  if (rc != MB_SUCCESS)
2183  {
2184  fprintf(stderr, "ERROR: Could not create Iterator for 'mortgage_requests'\n");
2185  switch(rc) {
2186  case MB_ERR_INVALID:
2187  fprintf(stderr, "\t reason: 'mortgage_requests' board is invalid\n");
2188  break;
2189  case MB_ERR_LOCKED:
2190  fprintf(stderr, "\t reason: 'mortgage_requests' board is locked\n");
2191  break;
2192  case MB_ERR_MEMALLOC:
2193  fprintf(stderr, "\t reason: out of memory\n");
2194  break;
2195  case MB_ERR_INTERNAL:
2196  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2197  break;
2198  }
2199  }
2200  #endif
2201 
2202  //return bank_housing_deliver_mortages();
2203 }
2204 
2206 {
2207  int rc;
2208 
2210 
2211  #ifdef ERRCHECK
2212  if (rc != MB_SUCCESS)
2213  {
2214  fprintf(stderr, "ERROR: Could not create Iterator for 'mortgage_payment_from_sale'\n");
2215  switch(rc) {
2216  case MB_ERR_INVALID:
2217  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board is invalid\n");
2218  break;
2219  case MB_ERR_LOCKED:
2220  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board is locked\n");
2221  break;
2222  case MB_ERR_MEMALLOC:
2223  fprintf(stderr, "\t reason: out of memory\n");
2224  break;
2225  case MB_ERR_INTERNAL:
2226  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2227  break;
2228  }
2229  }
2230  #endif
2231 
2232  //return bank_housing_recieve_mortgage_principals();
2233 }
2234 
2236 {
2237  int rc;
2238 
2240 
2241  #ifdef ERRCHECK
2242  if (rc != MB_SUCCESS)
2243  {
2244  fprintf(stderr, "ERROR: Could not create Iterator for 'mortgage_payment'\n");
2245  switch(rc) {
2246  case MB_ERR_INVALID:
2247  fprintf(stderr, "\t reason: 'mortgage_payment' board is invalid\n");
2248  break;
2249  case MB_ERR_LOCKED:
2250  fprintf(stderr, "\t reason: 'mortgage_payment' board is locked\n");
2251  break;
2252  case MB_ERR_MEMALLOC:
2253  fprintf(stderr, "\t reason: out of memory\n");
2254  break;
2255  case MB_ERR_INTERNAL:
2256  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2257  break;
2258  }
2259  }
2260  #endif
2261 
2262  //return bank_housing_recieve_mortgages();
2263 }
2264 
2266 {
2267  int rc;
2268 
2270 
2271  #ifdef ERRCHECK
2272  if (rc != MB_SUCCESS)
2273  {
2274  fprintf(stderr, "ERROR: Could not create Iterator for 'mortgage_writeoff'\n");
2275  switch(rc) {
2276  case MB_ERR_INVALID:
2277  fprintf(stderr, "\t reason: 'mortgage_writeoff' board is invalid\n");
2278  break;
2279  case MB_ERR_LOCKED:
2280  fprintf(stderr, "\t reason: 'mortgage_writeoff' board is locked\n");
2281  break;
2282  case MB_ERR_MEMALLOC:
2283  fprintf(stderr, "\t reason: out of memory\n");
2284  break;
2285  case MB_ERR_INTERNAL:
2286  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2287  break;
2288  }
2289  }
2290  #endif
2291 
2292  //return bank_housing_debt_writeoff();
2293 }
2294 
2296 {
2297 
2298 
2299  //return government_init();
2300 }
2301 
2303 {
2304 
2305 
2306  //return idle();
2307 }
2308 
2310 {
2311 
2312 
2313  //return government_iterate();
2314 }
2315 
2317 {
2318  int rc;
2319 
2320 
2321  rc = MB_Iterator_Create(b_employment_status, &i_employment_status);
2322  #ifdef ERRCHECK
2323  if (rc != MB_SUCCESS)
2324  {
2325  fprintf(stderr, "ERROR: Could not create Iterator for 'employment_status'\n");
2326  switch(rc) {
2327  case MB_ERR_INVALID:
2328  fprintf(stderr, "\t reason: 'employment_status' board is invalid\n");
2329  break;
2330  case MB_ERR_LOCKED:
2331  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
2332  break;
2333  case MB_ERR_MEMALLOC:
2334  fprintf(stderr, "\t reason: out of memory\n");
2335  break;
2336  case MB_ERR_INTERNAL:
2337  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2338  break;
2339  }
2340  }
2341  #endif
2342 
2343  //return government_trace_unemployment_status();
2344 }
2345 
2347 {
2348 
2349 
2350  //return idle();
2351 }
2352 
2354 {
2355  int rc;
2356 
2357 
2358  rc = MB_Iterator_Create(b_capital_tax, &i_capital_tax);
2359  #ifdef ERRCHECK
2360  if (rc != MB_SUCCESS)
2361  {
2362  fprintf(stderr, "ERROR: Could not create Iterator for 'capital_tax'\n");
2363  switch(rc) {
2364  case MB_ERR_INVALID:
2365  fprintf(stderr, "\t reason: 'capital_tax' board is invalid\n");
2366  break;
2367  case MB_ERR_LOCKED:
2368  fprintf(stderr, "\t reason: 'capital_tax' board is locked\n");
2369  break;
2370  case MB_ERR_MEMALLOC:
2371  fprintf(stderr, "\t reason: out of memory\n");
2372  break;
2373  case MB_ERR_INTERNAL:
2374  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2375  break;
2376  }
2377  }
2378  #endif
2379 
2380  //return government_collect_capital_tax();
2381 }
2382 
2384 {
2385 
2386 
2387  //return idle();
2388 }
2389 
2391 {
2392 
2393 
2394  //return government_distribute_general_benefits();
2395 }
2396 
2398 {
2399 
2400 
2401  //return government_distribute_unemployment_benefits();
2402 }
2403 
2405 {
2406  int rc;
2407 
2408 
2409  rc = MB_Iterator_Create(b_labour_tax, &i_labour_tax);
2410  #ifdef ERRCHECK
2411  if (rc != MB_SUCCESS)
2412  {
2413  fprintf(stderr, "ERROR: Could not create Iterator for 'labour_tax'\n");
2414  switch(rc) {
2415  case MB_ERR_INVALID:
2416  fprintf(stderr, "\t reason: 'labour_tax' board is invalid\n");
2417  break;
2418  case MB_ERR_LOCKED:
2419  fprintf(stderr, "\t reason: 'labour_tax' board is locked\n");
2420  break;
2421  case MB_ERR_MEMALLOC:
2422  fprintf(stderr, "\t reason: out of memory\n");
2423  break;
2424  case MB_ERR_INTERNAL:
2425  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2426  break;
2427  }
2428  }
2429  #endif
2430 
2431  //return government_collect_labour_tax();
2432 }
2433 
2435 {
2436 
2437 
2438  //return idle();
2439 }
2440 
2442 {
2443  int rc;
2444 
2445 
2447  #ifdef ERRCHECK
2448  if (rc != MB_SUCCESS)
2449  {
2450  fprintf(stderr, "ERROR: Could not create Iterator for 'centralbank_government_profit'\n");
2451  switch(rc) {
2452  case MB_ERR_INVALID:
2453  fprintf(stderr, "\t reason: 'centralbank_government_profit' board is invalid\n");
2454  break;
2455  case MB_ERR_LOCKED:
2456  fprintf(stderr, "\t reason: 'centralbank_government_profit' board is locked\n");
2457  break;
2458  case MB_ERR_MEMALLOC:
2459  fprintf(stderr, "\t reason: out of memory\n");
2460  break;
2461  case MB_ERR_INTERNAL:
2462  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2463  break;
2464  }
2465  }
2466  #endif
2467 
2468  //return government_collect_centralbank_profit();
2469 }
2470 
2472 {
2473 
2474 
2475  //return government_compute_income_statement();
2476 }
2477 
2479 {
2480 
2481 
2482  //return government_do_balance_sheet();
2483 }
2484 
2486 {
2487 
2488 
2489  //return government_update_fiscal_policy();
2490 }
2491 
2493 {
2494 
2495 
2496  //return idle();
2497 }
2498 
2500 {
2501 
2502 
2503  //return idle();
2504 }
2505 
2507 {
2508  int rc;
2509 
2510 
2512  #ifdef ERRCHECK
2513  if (rc != MB_SUCCESS)
2514  {
2515  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_init_debt'\n");
2516  switch(rc) {
2517  case MB_ERR_INVALID:
2518  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board is invalid\n");
2519  break;
2520  case MB_ERR_LOCKED:
2521  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board is locked\n");
2522  break;
2523  case MB_ERR_MEMALLOC:
2524  fprintf(stderr, "\t reason: out of memory\n");
2525  break;
2526  case MB_ERR_INTERNAL:
2527  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2528  break;
2529  }
2530  }
2531  #endif
2532 
2533 
2535  #ifdef ERRCHECK
2536  if (rc != MB_SUCCESS)
2537  {
2538  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_init_deposit'\n");
2539  switch(rc) {
2540  case MB_ERR_INVALID:
2541  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
2542  break;
2543  case MB_ERR_LOCKED:
2544  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board is locked\n");
2545  break;
2546  case MB_ERR_MEMALLOC:
2547  fprintf(stderr, "\t reason: out of memory\n");
2548  break;
2549  case MB_ERR_INTERNAL:
2550  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2551  break;
2552  }
2553  }
2554  #endif
2555 
2556 
2558  #ifdef ERRCHECK
2559  if (rc != MB_SUCCESS)
2560  {
2561  fprintf(stderr, "ERROR: Could not create Iterator for 'fund_centralbank_init_deposit'\n");
2562  switch(rc) {
2563  case MB_ERR_INVALID:
2564  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
2565  break;
2566  case MB_ERR_LOCKED:
2567  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board is locked\n");
2568  break;
2569  case MB_ERR_MEMALLOC:
2570  fprintf(stderr, "\t reason: out of memory\n");
2571  break;
2572  case MB_ERR_INTERNAL:
2573  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2574  break;
2575  }
2576  }
2577  #endif
2578 
2579 
2581  #ifdef ERRCHECK
2582  if (rc != MB_SUCCESS)
2583  {
2584  fprintf(stderr, "ERROR: Could not create Iterator for 'gov_centralbank_init_deposit'\n");
2585  switch(rc) {
2586  case MB_ERR_INVALID:
2587  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
2588  break;
2589  case MB_ERR_LOCKED:
2590  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board is locked\n");
2591  break;
2592  case MB_ERR_MEMALLOC:
2593  fprintf(stderr, "\t reason: out of memory\n");
2594  break;
2595  case MB_ERR_INTERNAL:
2596  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2597  break;
2598  }
2599  }
2600  #endif
2601 
2602  //return centralbank_init_balancesheet();
2603 }
2604 
2606 {
2607 
2608 
2609  //return centralbank_iterate();
2610 }
2611 
2613 {
2614 
2615 
2616  //return idle();
2617 }
2618 
2620 {
2621  int rc;
2622 
2623 
2625  #ifdef ERRCHECK
2626  if (rc != MB_SUCCESS)
2627  {
2628  fprintf(stderr, "ERROR: Could not create Iterator for 'goods_transactions_summary'\n");
2629  switch(rc) {
2630  case MB_ERR_INVALID:
2631  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is invalid\n");
2632  break;
2633  case MB_ERR_LOCKED:
2634  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is locked\n");
2635  break;
2636  case MB_ERR_MEMALLOC:
2637  fprintf(stderr, "\t reason: out of memory\n");
2638  break;
2639  case MB_ERR_INTERNAL:
2640  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2641  break;
2642  }
2643  }
2644  #endif
2645 
2646  //return centralbank_trace_goods_prices();
2647 }
2648 
2650 {
2651 
2652 
2653  //return idle();
2654 }
2655 
2657 {
2658 
2659 
2660  //return centralbank_update_price_indices();
2661 }
2662 
2664 {
2665 
2666 
2667  //return idle();
2668 }
2669 
2671 {
2672  int rc;
2673 
2674 
2675  rc = MB_Iterator_Create(b_employment_status, &i_employment_status);
2676  #ifdef ERRCHECK
2677  if (rc != MB_SUCCESS)
2678  {
2679  fprintf(stderr, "ERROR: Could not create Iterator for 'employment_status'\n");
2680  switch(rc) {
2681  case MB_ERR_INVALID:
2682  fprintf(stderr, "\t reason: 'employment_status' board is invalid\n");
2683  break;
2684  case MB_ERR_LOCKED:
2685  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
2686  break;
2687  case MB_ERR_MEMALLOC:
2688  fprintf(stderr, "\t reason: out of memory\n");
2689  break;
2690  case MB_ERR_INTERNAL:
2691  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2692  break;
2693  }
2694  }
2695  #endif
2696 
2697  //return centralbank_trace_unemployment_status();
2698 }
2699 
2701 {
2702 
2703 
2704  //return idle();
2705 }
2706 
2708 {
2709  int rc;
2710 
2711 
2713  #ifdef ERRCHECK
2714  if (rc != MB_SUCCESS)
2715  {
2716  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_interest_payment'\n");
2717  switch(rc) {
2718  case MB_ERR_INVALID:
2719  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
2720  break;
2721  case MB_ERR_LOCKED:
2722  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board is locked\n");
2723  break;
2724  case MB_ERR_MEMALLOC:
2725  fprintf(stderr, "\t reason: out of memory\n");
2726  break;
2727  case MB_ERR_INTERNAL:
2728  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2729  break;
2730  }
2731  }
2732  #endif
2733 
2734  //return centralbank_collect_interest_payments();
2735 }
2736 
2738 {
2739  int rc;
2740 
2741 
2743  #ifdef ERRCHECK
2744  if (rc != MB_SUCCESS)
2745  {
2746  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_debt_request'\n");
2747  switch(rc) {
2748  case MB_ERR_INVALID:
2749  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board is invalid\n");
2750  break;
2751  case MB_ERR_LOCKED:
2752  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board is locked\n");
2753  break;
2754  case MB_ERR_MEMALLOC:
2755  fprintf(stderr, "\t reason: out of memory\n");
2756  break;
2757  case MB_ERR_INTERNAL:
2758  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2759  break;
2760  }
2761  }
2762  #endif
2763 
2764 
2766  #ifdef ERRCHECK
2767  if (rc != MB_SUCCESS)
2768  {
2769  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_debt_payment'\n");
2770  switch(rc) {
2771  case MB_ERR_INVALID:
2772  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
2773  break;
2774  case MB_ERR_LOCKED:
2775  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board is locked\n");
2776  break;
2777  case MB_ERR_MEMALLOC:
2778  fprintf(stderr, "\t reason: out of memory\n");
2779  break;
2780  case MB_ERR_INTERNAL:
2781  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2782  break;
2783  }
2784  }
2785  #endif
2786 
2787 
2789  #ifdef ERRCHECK
2790  if (rc != MB_SUCCESS)
2791  {
2792  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_centralbank_update_deposit'\n");
2793  switch(rc) {
2794  case MB_ERR_INVALID:
2795  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
2796  break;
2797  case MB_ERR_LOCKED:
2798  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board is locked\n");
2799  break;
2800  case MB_ERR_MEMALLOC:
2801  fprintf(stderr, "\t reason: out of memory\n");
2802  break;
2803  case MB_ERR_INTERNAL:
2804  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2805  break;
2806  }
2807  }
2808  #endif
2809 
2810  //return centralbank_process_debt_requests();
2811 }
2812 
2814 {
2815 
2816 
2817  //return idle();
2818 }
2819 
2821 {
2822 
2823 
2824  //return centralbank_compute_income_statement();
2825 }
2826 
2828 {
2829  int rc;
2830 
2831 
2833  #ifdef ERRCHECK
2834  if (rc != MB_SUCCESS)
2835  {
2836  fprintf(stderr, "ERROR: Could not create Iterator for 'gov_centralbank_debt_request'\n");
2837  switch(rc) {
2838  case MB_ERR_INVALID:
2839  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board is invalid\n");
2840  break;
2841  case MB_ERR_LOCKED:
2842  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board is locked\n");
2843  break;
2844  case MB_ERR_MEMALLOC:
2845  fprintf(stderr, "\t reason: out of memory\n");
2846  break;
2847  case MB_ERR_INTERNAL:
2848  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2849  break;
2850  }
2851  }
2852  #endif
2853 
2854 
2856  #ifdef ERRCHECK
2857  if (rc != MB_SUCCESS)
2858  {
2859  fprintf(stderr, "ERROR: Could not create Iterator for 'gov_centralbank_debt_payment'\n");
2860  switch(rc) {
2861  case MB_ERR_INVALID:
2862  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
2863  break;
2864  case MB_ERR_LOCKED:
2865  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board is locked\n");
2866  break;
2867  case MB_ERR_MEMALLOC:
2868  fprintf(stderr, "\t reason: out of memory\n");
2869  break;
2870  case MB_ERR_INTERNAL:
2871  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2872  break;
2873  }
2874  }
2875  #endif
2876 
2877 
2879  #ifdef ERRCHECK
2880  if (rc != MB_SUCCESS)
2881  {
2882  fprintf(stderr, "ERROR: Could not create Iterator for 'gov_centralbank_update_deposit'\n");
2883  switch(rc) {
2884  case MB_ERR_INVALID:
2885  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
2886  break;
2887  case MB_ERR_LOCKED:
2888  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board is locked\n");
2889  break;
2890  case MB_ERR_MEMALLOC:
2891  fprintf(stderr, "\t reason: out of memory\n");
2892  break;
2893  case MB_ERR_INTERNAL:
2894  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2895  break;
2896  }
2897  }
2898  #endif
2899 
2900  //return centralbank_process_government_requests();
2901 }
2902 
2904 {
2905  int rc;
2906 
2907 
2909  #ifdef ERRCHECK
2910  if (rc != MB_SUCCESS)
2911  {
2912  fprintf(stderr, "ERROR: Could not create Iterator for 'fund_centralbank_update_deposit'\n");
2913  switch(rc) {
2914  case MB_ERR_INVALID:
2915  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
2916  break;
2917  case MB_ERR_LOCKED:
2918  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board is locked\n");
2919  break;
2920  case MB_ERR_MEMALLOC:
2921  fprintf(stderr, "\t reason: out of memory\n");
2922  break;
2923  case MB_ERR_INTERNAL:
2924  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2925  break;
2926  }
2927  }
2928  #endif
2929 
2930  //return centralbank_do_balance_sheet();
2931 }
2932 
2934 {
2935 
2936 
2937  //return centralbank_set_interest_rate();
2938 }
2939 
2941 {
2942 
2943 
2944  //return idle();
2945 }
2946 
2948 {
2949  int rc;
2950 
2951 
2953  #ifdef ERRCHECK
2954  if (rc != MB_SUCCESS)
2955  {
2956  fprintf(stderr, "ERROR: Could not create Iterator for 'housing_transactions_summary'\n");
2957  switch(rc) {
2958  case MB_ERR_INVALID:
2959  fprintf(stderr, "\t reason: 'housing_transactions_summary' board is invalid\n");
2960  break;
2961  case MB_ERR_LOCKED:
2962  fprintf(stderr, "\t reason: 'housing_transactions_summary' board is locked\n");
2963  break;
2964  case MB_ERR_MEMALLOC:
2965  fprintf(stderr, "\t reason: out of memory\n");
2966  break;
2967  case MB_ERR_INTERNAL:
2968  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2969  break;
2970  }
2971  }
2972  #endif
2973 
2974  //return centralbank_trace_housing_prices();
2975 }
2976 
2978 {
2979 
2980 
2981  //return idle();
2982 }
2983 
2985 {
2986 
2987 
2988  //return idle();
2989 }
2990 
2992 {
2993  int rc;
2994 
2995 
2996  rc = MB_Iterator_Create(b_household_jpoffice_id, &i_household_jpoffice_id);
2997  #ifdef ERRCHECK
2998  if (rc != MB_SUCCESS)
2999  {
3000  fprintf(stderr, "ERROR: Could not create Iterator for 'household_jpoffice_id'\n");
3001  switch(rc) {
3002  case MB_ERR_INVALID:
3003  fprintf(stderr, "\t reason: 'household_jpoffice_id' board is invalid\n");
3004  break;
3005  case MB_ERR_LOCKED:
3006  fprintf(stderr, "\t reason: 'household_jpoffice_id' board is locked\n");
3007  break;
3008  case MB_ERR_MEMALLOC:
3009  fprintf(stderr, "\t reason: out of memory\n");
3010  break;
3011  case MB_ERR_INTERNAL:
3012  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3013  break;
3014  }
3015  }
3016  #endif
3017 
3018 
3019  rc = MB_Iterator_Create(b_firm_jpoffice_id, &i_firm_jpoffice_id);
3020  #ifdef ERRCHECK
3021  if (rc != MB_SUCCESS)
3022  {
3023  fprintf(stderr, "ERROR: Could not create Iterator for 'firm_jpoffice_id'\n");
3024  switch(rc) {
3025  case MB_ERR_INVALID:
3026  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board is invalid\n");
3027  break;
3028  case MB_ERR_LOCKED:
3029  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board is locked\n");
3030  break;
3031  case MB_ERR_MEMALLOC:
3032  fprintf(stderr, "\t reason: out of memory\n");
3033  break;
3034  case MB_ERR_INTERNAL:
3035  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3036  break;
3037  }
3038  }
3039  #endif
3040 
3041  //return jpoffice_init_employment();
3042 }
3043 
3045 {
3046 
3047 
3048  //return jpoffice_iterate();
3049 }
3050 
3052 {
3053 
3054 
3055  //return idle();
3056 }
3057 
3059 {
3060  int rc;
3061 
3062 
3063  rc = MB_Iterator_Create(b_vacancy_stage1, &i_vacancy_stage1);
3064  #ifdef ERRCHECK
3065  if (rc != MB_SUCCESS)
3066  {
3067  fprintf(stderr, "ERROR: Could not create Iterator for 'vacancy_stage1'\n");
3068  switch(rc) {
3069  case MB_ERR_INVALID:
3070  fprintf(stderr, "\t reason: 'vacancy_stage1' board is invalid\n");
3071  break;
3072  case MB_ERR_LOCKED:
3073  fprintf(stderr, "\t reason: 'vacancy_stage1' board is locked\n");
3074  break;
3075  case MB_ERR_MEMALLOC:
3076  fprintf(stderr, "\t reason: out of memory\n");
3077  break;
3078  case MB_ERR_INTERNAL:
3079  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3080  break;
3081  }
3082  }
3083  #endif
3084 
3085 
3086  rc = MB_Iterator_Create(b_job_application_stage1, &i_job_application_stage1);
3087  #ifdef ERRCHECK
3088  if (rc != MB_SUCCESS)
3089  {
3090  fprintf(stderr, "ERROR: Could not create Iterator for 'job_application_stage1'\n");
3091  switch(rc) {
3092  case MB_ERR_INVALID:
3093  fprintf(stderr, "\t reason: 'job_application_stage1' board is invalid\n");
3094  break;
3095  case MB_ERR_LOCKED:
3096  fprintf(stderr, "\t reason: 'job_application_stage1' board is locked\n");
3097  break;
3098  case MB_ERR_MEMALLOC:
3099  fprintf(stderr, "\t reason: out of memory\n");
3100  break;
3101  case MB_ERR_INTERNAL:
3102  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3103  break;
3104  }
3105  }
3106  #endif
3107 
3108  //return jpoffice_labour_stage1();
3109 }
3110 
3112 {
3113  int rc;
3114 
3115 
3116  rc = MB_Iterator_Create(b_vacancy_stage2, &i_vacancy_stage2);
3117  #ifdef ERRCHECK
3118  if (rc != MB_SUCCESS)
3119  {
3120  fprintf(stderr, "ERROR: Could not create Iterator for 'vacancy_stage2'\n");
3121  switch(rc) {
3122  case MB_ERR_INVALID:
3123  fprintf(stderr, "\t reason: 'vacancy_stage2' board is invalid\n");
3124  break;
3125  case MB_ERR_LOCKED:
3126  fprintf(stderr, "\t reason: 'vacancy_stage2' board is locked\n");
3127  break;
3128  case MB_ERR_MEMALLOC:
3129  fprintf(stderr, "\t reason: out of memory\n");
3130  break;
3131  case MB_ERR_INTERNAL:
3132  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3133  break;
3134  }
3135  }
3136  #endif
3137 
3138 
3139  rc = MB_Iterator_Create(b_job_application_stage2, &i_job_application_stage2);
3140  #ifdef ERRCHECK
3141  if (rc != MB_SUCCESS)
3142  {
3143  fprintf(stderr, "ERROR: Could not create Iterator for 'job_application_stage2'\n");
3144  switch(rc) {
3145  case MB_ERR_INVALID:
3146  fprintf(stderr, "\t reason: 'job_application_stage2' board is invalid\n");
3147  break;
3148  case MB_ERR_LOCKED:
3149  fprintf(stderr, "\t reason: 'job_application_stage2' board is locked\n");
3150  break;
3151  case MB_ERR_MEMALLOC:
3152  fprintf(stderr, "\t reason: out of memory\n");
3153  break;
3154  case MB_ERR_INTERNAL:
3155  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3156  break;
3157  }
3158  }
3159  #endif
3160 
3161  //return jpoffice_labour_stage2();
3162 }
3163 
3165 {
3166 
3167 
3168  //return mall_init();
3169 }
3170 
3172 {
3173 
3174 
3175  //return idle();
3176 }
3177 
3179 {
3180  int rc;
3181 
3182 
3183  rc = MB_Iterator_Create(b_sell, &i_sell);
3184  #ifdef ERRCHECK
3185  if (rc != MB_SUCCESS)
3186  {
3187  fprintf(stderr, "ERROR: Could not create Iterator for 'sell'\n");
3188  switch(rc) {
3189  case MB_ERR_INVALID:
3190  fprintf(stderr, "\t reason: 'sell' board is invalid\n");
3191  break;
3192  case MB_ERR_LOCKED:
3193  fprintf(stderr, "\t reason: 'sell' board is locked\n");
3194  break;
3195  case MB_ERR_MEMALLOC:
3196  fprintf(stderr, "\t reason: out of memory\n");
3197  break;
3198  case MB_ERR_INTERNAL:
3199  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3200  break;
3201  }
3202  }
3203  #endif
3204 
3205 
3206  rc = MB_Iterator_Create(b_buy, &i_buy);
3207  #ifdef ERRCHECK
3208  if (rc != MB_SUCCESS)
3209  {
3210  fprintf(stderr, "ERROR: Could not create Iterator for 'buy'\n");
3211  switch(rc) {
3212  case MB_ERR_INVALID:
3213  fprintf(stderr, "\t reason: 'buy' board is invalid\n");
3214  break;
3215  case MB_ERR_LOCKED:
3216  fprintf(stderr, "\t reason: 'buy' board is locked\n");
3217  break;
3218  case MB_ERR_MEMALLOC:
3219  fprintf(stderr, "\t reason: out of memory\n");
3220  break;
3221  case MB_ERR_INTERNAL:
3222  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3223  break;
3224  }
3225  }
3226  #endif
3227 
3228  //return mall_consumption_shopping();
3229 }
3230 
3232 {
3233 
3234 
3235  //return mall_consumption_summary();
3236 }
3237 
3239 {
3240 
3241 
3242  //return reagency_init();
3243 }
3244 
3246 {
3247 
3248 
3249  //return idle();
3250 }
3251 
3253 {
3254  int rc;
3255 
3256 
3257  rc = MB_Iterator_Create(b_interest_rate, &i_interest_rate);
3258  #ifdef ERRCHECK
3259  if (rc != MB_SUCCESS)
3260  {
3261  fprintf(stderr, "ERROR: Could not create Iterator for 'interest_rate'\n");
3262  switch(rc) {
3263  case MB_ERR_INVALID:
3264  fprintf(stderr, "\t reason: 'interest_rate' board is invalid\n");
3265  break;
3266  case MB_ERR_LOCKED:
3267  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
3268  break;
3269  case MB_ERR_MEMALLOC:
3270  fprintf(stderr, "\t reason: out of memory\n");
3271  break;
3272  case MB_ERR_INTERNAL:
3273  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3274  break;
3275  }
3276  }
3277  #endif
3278 
3279  //return reagency_check_interest_rate();
3280 }
3281 
3283 {
3284 
3285 
3286  //return idle();
3287 }
3288 
3290 {
3291  int rc;
3292 
3293 
3294  rc = MB_Iterator_Create(b_buy_housing, &i_buy_housing);
3295  #ifdef ERRCHECK
3296  if (rc != MB_SUCCESS)
3297  {
3298  fprintf(stderr, "ERROR: Could not create Iterator for 'buy_housing'\n");
3299  switch(rc) {
3300  case MB_ERR_INVALID:
3301  fprintf(stderr, "\t reason: 'buy_housing' board is invalid\n");
3302  break;
3303  case MB_ERR_LOCKED:
3304  fprintf(stderr, "\t reason: 'buy_housing' board is locked\n");
3305  break;
3306  case MB_ERR_MEMALLOC:
3307  fprintf(stderr, "\t reason: out of memory\n");
3308  break;
3309  case MB_ERR_INTERNAL:
3310  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3311  break;
3312  }
3313  }
3314  #endif
3315 
3316 
3317  rc = MB_Iterator_Create(b_sell_housing, &i_sell_housing);
3318  #ifdef ERRCHECK
3319  if (rc != MB_SUCCESS)
3320  {
3321  fprintf(stderr, "ERROR: Could not create Iterator for 'sell_housing'\n");
3322  switch(rc) {
3323  case MB_ERR_INVALID:
3324  fprintf(stderr, "\t reason: 'sell_housing' board is invalid\n");
3325  break;
3326  case MB_ERR_LOCKED:
3327  fprintf(stderr, "\t reason: 'sell_housing' board is locked\n");
3328  break;
3329  case MB_ERR_MEMALLOC:
3330  fprintf(stderr, "\t reason: out of memory\n");
3331  break;
3332  case MB_ERR_INTERNAL:
3333  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3334  break;
3335  }
3336  }
3337  #endif
3338 
3339 
3340  rc = MB_Iterator_Create(b_bank_reagency_credibility, &i_bank_reagency_credibility);
3341  #ifdef ERRCHECK
3342  if (rc != MB_SUCCESS)
3343  {
3344  fprintf(stderr, "ERROR: Could not create Iterator for 'bank_reagency_credibility'\n");
3345  switch(rc) {
3346  case MB_ERR_INVALID:
3347  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board is invalid\n");
3348  break;
3349  case MB_ERR_LOCKED:
3350  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board is locked\n");
3351  break;
3352  case MB_ERR_MEMALLOC:
3353  fprintf(stderr, "\t reason: out of memory\n");
3354  break;
3355  case MB_ERR_INTERNAL:
3356  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3357  break;
3358  }
3359  }
3360  #endif
3361 
3362  //return reagency_housing_process();
3363 }
3364 
3366 {
3367 
3368 
3369  //return reagency_housing_summary();
3370 }
3371 
3372 
3374 {
3375  int rc;
3376 
3377  rc = MB_Clear(b_firm_bank_init_loans);
3378  #ifdef ERRCHECK
3379  if (rc != MB_SUCCESS)
3380  {
3381  fprintf(stderr, "ERROR: Could not clear 'firm_bank_init_loans' board\n");
3382  switch(rc) {
3383  case MB_ERR_INVALID:
3384  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board is invalid\n");
3385  break;
3386  case MB_ERR_LOCKED:
3387  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board is locked\n");
3388  break;
3389  case MB_ERR_INTERNAL:
3390  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3391  break;
3392  default:
3393  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3394  break;
3395  }
3396 
3397 
3398  exit(rc);
3399  }
3400  #endif
3401 
3402  rc = MB_Clear(b_firm_bank_init_deposit);
3403  #ifdef ERRCHECK
3404  if (rc != MB_SUCCESS)
3405  {
3406  fprintf(stderr, "ERROR: Could not clear 'firm_bank_init_deposit' board\n");
3407  switch(rc) {
3408  case MB_ERR_INVALID:
3409  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board is invalid\n");
3410  break;
3411  case MB_ERR_LOCKED:
3412  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board is locked\n");
3413  break;
3414  case MB_ERR_INTERNAL:
3415  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3416  break;
3417  default:
3418  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3419  break;
3420  }
3421 
3422 
3423  exit(rc);
3424  }
3425  #endif
3426 
3427  rc = MB_Clear(b_firm_bank_update_deposit);
3428  #ifdef ERRCHECK
3429  if (rc != MB_SUCCESS)
3430  {
3431  fprintf(stderr, "ERROR: Could not clear 'firm_bank_update_deposit' board\n");
3432  switch(rc) {
3433  case MB_ERR_INVALID:
3434  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board is invalid\n");
3435  break;
3436  case MB_ERR_LOCKED:
3437  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board is locked\n");
3438  break;
3439  case MB_ERR_INTERNAL:
3440  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3441  break;
3442  default:
3443  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3444  break;
3445  }
3446 
3447 
3448  exit(rc);
3449  }
3450  #endif
3451 
3452  rc = MB_Clear(b_household_bank_init_mortgages);
3453  #ifdef ERRCHECK
3454  if (rc != MB_SUCCESS)
3455  {
3456  fprintf(stderr, "ERROR: Could not clear 'household_bank_init_mortgages' board\n");
3457  switch(rc) {
3458  case MB_ERR_INVALID:
3459  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board is invalid\n");
3460  break;
3461  case MB_ERR_LOCKED:
3462  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board is locked\n");
3463  break;
3464  case MB_ERR_INTERNAL:
3465  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3466  break;
3467  default:
3468  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3469  break;
3470  }
3471 
3472 
3473  exit(rc);
3474  }
3475  #endif
3476 
3477  rc = MB_Clear(b_household_bank_init_deposit);
3478  #ifdef ERRCHECK
3479  if (rc != MB_SUCCESS)
3480  {
3481  fprintf(stderr, "ERROR: Could not clear 'household_bank_init_deposit' board\n");
3482  switch(rc) {
3483  case MB_ERR_INVALID:
3484  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board is invalid\n");
3485  break;
3486  case MB_ERR_LOCKED:
3487  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board is locked\n");
3488  break;
3489  case MB_ERR_INTERNAL:
3490  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3491  break;
3492  default:
3493  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3494  break;
3495  }
3496 
3497 
3498  exit(rc);
3499  }
3500  #endif
3501 
3502  rc = MB_Clear(b_household_bank_update_deposit);
3503  #ifdef ERRCHECK
3504  if (rc != MB_SUCCESS)
3505  {
3506  fprintf(stderr, "ERROR: Could not clear 'household_bank_update_deposit' board\n");
3507  switch(rc) {
3508  case MB_ERR_INVALID:
3509  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board is invalid\n");
3510  break;
3511  case MB_ERR_LOCKED:
3512  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board is locked\n");
3513  break;
3514  case MB_ERR_INTERNAL:
3515  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3516  break;
3517  default:
3518  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3519  break;
3520  }
3521 
3522 
3523  exit(rc);
3524  }
3525  #endif
3526 
3527  rc = MB_Clear(b_bank_centralbank_init_debt);
3528  #ifdef ERRCHECK
3529  if (rc != MB_SUCCESS)
3530  {
3531  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_init_debt' board\n");
3532  switch(rc) {
3533  case MB_ERR_INVALID:
3534  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board is invalid\n");
3535  break;
3536  case MB_ERR_LOCKED:
3537  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board is locked\n");
3538  break;
3539  case MB_ERR_INTERNAL:
3540  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3541  break;
3542  default:
3543  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3544  break;
3545  }
3546 
3547 
3548  exit(rc);
3549  }
3550  #endif
3551 
3552  rc = MB_Clear(b_bank_centralbank_init_deposit);
3553  #ifdef ERRCHECK
3554  if (rc != MB_SUCCESS)
3555  {
3556  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_init_deposit' board\n");
3557  switch(rc) {
3558  case MB_ERR_INVALID:
3559  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
3560  break;
3561  case MB_ERR_LOCKED:
3562  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board is locked\n");
3563  break;
3564  case MB_ERR_INTERNAL:
3565  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3566  break;
3567  default:
3568  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3569  break;
3570  }
3571 
3572 
3573  exit(rc);
3574  }
3575  #endif
3576 
3577  rc = MB_Clear(b_bank_centralbank_update_deposit);
3578  #ifdef ERRCHECK
3579  if (rc != MB_SUCCESS)
3580  {
3581  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_update_deposit' board\n");
3582  switch(rc) {
3583  case MB_ERR_INVALID:
3584  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
3585  break;
3586  case MB_ERR_LOCKED:
3587  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board is locked\n");
3588  break;
3589  case MB_ERR_INTERNAL:
3590  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3591  break;
3592  default:
3593  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3594  break;
3595  }
3596 
3597 
3598  exit(rc);
3599  }
3600  #endif
3601 
3602  rc = MB_Clear(b_fund_centralbank_init_deposit);
3603  #ifdef ERRCHECK
3604  if (rc != MB_SUCCESS)
3605  {
3606  fprintf(stderr, "ERROR: Could not clear 'fund_centralbank_init_deposit' board\n");
3607  switch(rc) {
3608  case MB_ERR_INVALID:
3609  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
3610  break;
3611  case MB_ERR_LOCKED:
3612  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board is locked\n");
3613  break;
3614  case MB_ERR_INTERNAL:
3615  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3616  break;
3617  default:
3618  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3619  break;
3620  }
3621 
3622 
3623  exit(rc);
3624  }
3625  #endif
3626 
3627  rc = MB_Clear(b_fund_centralbank_update_deposit);
3628  #ifdef ERRCHECK
3629  if (rc != MB_SUCCESS)
3630  {
3631  fprintf(stderr, "ERROR: Could not clear 'fund_centralbank_update_deposit' board\n");
3632  switch(rc) {
3633  case MB_ERR_INVALID:
3634  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
3635  break;
3636  case MB_ERR_LOCKED:
3637  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board is locked\n");
3638  break;
3639  case MB_ERR_INTERNAL:
3640  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3641  break;
3642  default:
3643  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3644  break;
3645  }
3646 
3647 
3648  exit(rc);
3649  }
3650  #endif
3651 
3652  rc = MB_Clear(b_gov_centralbank_init_deposit);
3653  #ifdef ERRCHECK
3654  if (rc != MB_SUCCESS)
3655  {
3656  fprintf(stderr, "ERROR: Could not clear 'gov_centralbank_init_deposit' board\n");
3657  switch(rc) {
3658  case MB_ERR_INVALID:
3659  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
3660  break;
3661  case MB_ERR_LOCKED:
3662  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board is locked\n");
3663  break;
3664  case MB_ERR_INTERNAL:
3665  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3666  break;
3667  default:
3668  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3669  break;
3670  }
3671 
3672 
3673  exit(rc);
3674  }
3675  #endif
3676 
3677  rc = MB_Clear(b_gov_centralbank_update_deposit);
3678  #ifdef ERRCHECK
3679  if (rc != MB_SUCCESS)
3680  {
3681  fprintf(stderr, "ERROR: Could not clear 'gov_centralbank_update_deposit' board\n");
3682  switch(rc) {
3683  case MB_ERR_INVALID:
3684  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
3685  break;
3686  case MB_ERR_LOCKED:
3687  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board is locked\n");
3688  break;
3689  case MB_ERR_INTERNAL:
3690  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3691  break;
3692  default:
3693  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3694  break;
3695  }
3696 
3697 
3698  exit(rc);
3699  }
3700  #endif
3701 
3702  rc = MB_Clear(b_interest_rate);
3703  #ifdef ERRCHECK
3704  if (rc != MB_SUCCESS)
3705  {
3706  fprintf(stderr, "ERROR: Could not clear 'interest_rate' board\n");
3707  switch(rc) {
3708  case MB_ERR_INVALID:
3709  fprintf(stderr, "\t reason: 'interest_rate' board is invalid\n");
3710  break;
3711  case MB_ERR_LOCKED:
3712  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
3713  break;
3714  case MB_ERR_INTERNAL:
3715  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3716  break;
3717  default:
3718  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3719  break;
3720  }
3721 
3722 
3723  exit(rc);
3724  }
3725  #endif
3726 
3727  rc = MB_Clear(b_capital_tax_rate);
3728  #ifdef ERRCHECK
3729  if (rc != MB_SUCCESS)
3730  {
3731  fprintf(stderr, "ERROR: Could not clear 'capital_tax_rate' board\n");
3732  switch(rc) {
3733  case MB_ERR_INVALID:
3734  fprintf(stderr, "\t reason: 'capital_tax_rate' board is invalid\n");
3735  break;
3736  case MB_ERR_LOCKED:
3737  fprintf(stderr, "\t reason: 'capital_tax_rate' board is locked\n");
3738  break;
3739  case MB_ERR_INTERNAL:
3740  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3741  break;
3742  default:
3743  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3744  break;
3745  }
3746 
3747 
3748  exit(rc);
3749  }
3750  #endif
3751 
3752  rc = MB_Clear(b_labour_tax_rate);
3753  #ifdef ERRCHECK
3754  if (rc != MB_SUCCESS)
3755  {
3756  fprintf(stderr, "ERROR: Could not clear 'labour_tax_rate' board\n");
3757  switch(rc) {
3758  case MB_ERR_INVALID:
3759  fprintf(stderr, "\t reason: 'labour_tax_rate' board is invalid\n");
3760  break;
3761  case MB_ERR_LOCKED:
3762  fprintf(stderr, "\t reason: 'labour_tax_rate' board is locked\n");
3763  break;
3764  case MB_ERR_INTERNAL:
3765  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3766  break;
3767  default:
3768  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3769  break;
3770  }
3771 
3772 
3773  exit(rc);
3774  }
3775  #endif
3776 
3777  rc = MB_Clear(b_household_jpoffice_id);
3778  #ifdef ERRCHECK
3779  if (rc != MB_SUCCESS)
3780  {
3781  fprintf(stderr, "ERROR: Could not clear 'household_jpoffice_id' board\n");
3782  switch(rc) {
3783  case MB_ERR_INVALID:
3784  fprintf(stderr, "\t reason: 'household_jpoffice_id' board is invalid\n");
3785  break;
3786  case MB_ERR_LOCKED:
3787  fprintf(stderr, "\t reason: 'household_jpoffice_id' board is locked\n");
3788  break;
3789  case MB_ERR_INTERNAL:
3790  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3791  break;
3792  default:
3793  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3794  break;
3795  }
3796 
3797 
3798  exit(rc);
3799  }
3800  #endif
3801 
3802  rc = MB_Clear(b_jpoffice_household_employer);
3803  #ifdef ERRCHECK
3804  if (rc != MB_SUCCESS)
3805  {
3806  fprintf(stderr, "ERROR: Could not clear 'jpoffice_household_employer' board\n");
3807  switch(rc) {
3808  case MB_ERR_INVALID:
3809  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board is invalid\n");
3810  break;
3811  case MB_ERR_LOCKED:
3812  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board is locked\n");
3813  break;
3814  case MB_ERR_INTERNAL:
3815  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3816  break;
3817  default:
3818  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3819  break;
3820  }
3821 
3822 
3823  exit(rc);
3824  }
3825  #endif
3826 
3827  rc = MB_Clear(b_firm_jpoffice_id);
3828  #ifdef ERRCHECK
3829  if (rc != MB_SUCCESS)
3830  {
3831  fprintf(stderr, "ERROR: Could not clear 'firm_jpoffice_id' board\n");
3832  switch(rc) {
3833  case MB_ERR_INVALID:
3834  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board is invalid\n");
3835  break;
3836  case MB_ERR_LOCKED:
3837  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board is locked\n");
3838  break;
3839  case MB_ERR_INTERNAL:
3840  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3841  break;
3842  default:
3843  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3844  break;
3845  }
3846 
3847 
3848  exit(rc);
3849  }
3850  #endif
3851 
3852  rc = MB_Clear(b_jpoffice_firm_employee);
3853  #ifdef ERRCHECK
3854  if (rc != MB_SUCCESS)
3855  {
3856  fprintf(stderr, "ERROR: Could not clear 'jpoffice_firm_employee' board\n");
3857  switch(rc) {
3858  case MB_ERR_INVALID:
3859  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board is invalid\n");
3860  break;
3861  case MB_ERR_LOCKED:
3862  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board is locked\n");
3863  break;
3864  case MB_ERR_INTERNAL:
3865  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3866  break;
3867  default:
3868  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3869  break;
3870  }
3871 
3872 
3873  exit(rc);
3874  }
3875  #endif
3876 
3877  rc = MB_Clear(b_buy);
3878  #ifdef ERRCHECK
3879  if (rc != MB_SUCCESS)
3880  {
3881  fprintf(stderr, "ERROR: Could not clear 'buy' board\n");
3882  switch(rc) {
3883  case MB_ERR_INVALID:
3884  fprintf(stderr, "\t reason: 'buy' board is invalid\n");
3885  break;
3886  case MB_ERR_LOCKED:
3887  fprintf(stderr, "\t reason: 'buy' board is locked\n");
3888  break;
3889  case MB_ERR_INTERNAL:
3890  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3891  break;
3892  default:
3893  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3894  break;
3895  }
3896 
3897 
3898  exit(rc);
3899  }
3900  #endif
3901 
3902  rc = MB_Clear(b_bought);
3903  #ifdef ERRCHECK
3904  if (rc != MB_SUCCESS)
3905  {
3906  fprintf(stderr, "ERROR: Could not clear 'bought' board\n");
3907  switch(rc) {
3908  case MB_ERR_INVALID:
3909  fprintf(stderr, "\t reason: 'bought' board is invalid\n");
3910  break;
3911  case MB_ERR_LOCKED:
3912  fprintf(stderr, "\t reason: 'bought' board is locked\n");
3913  break;
3914  case MB_ERR_INTERNAL:
3915  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3916  break;
3917  default:
3918  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3919  break;
3920  }
3921 
3922 
3923  exit(rc);
3924  }
3925  #endif
3926 
3927  rc = MB_Clear(b_sell);
3928  #ifdef ERRCHECK
3929  if (rc != MB_SUCCESS)
3930  {
3931  fprintf(stderr, "ERROR: Could not clear 'sell' board\n");
3932  switch(rc) {
3933  case MB_ERR_INVALID:
3934  fprintf(stderr, "\t reason: 'sell' board is invalid\n");
3935  break;
3936  case MB_ERR_LOCKED:
3937  fprintf(stderr, "\t reason: 'sell' board is locked\n");
3938  break;
3939  case MB_ERR_INTERNAL:
3940  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3941  break;
3942  default:
3943  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3944  break;
3945  }
3946 
3947 
3948  exit(rc);
3949  }
3950  #endif
3951 
3952  rc = MB_Clear(b_sold);
3953  #ifdef ERRCHECK
3954  if (rc != MB_SUCCESS)
3955  {
3956  fprintf(stderr, "ERROR: Could not clear 'sold' board\n");
3957  switch(rc) {
3958  case MB_ERR_INVALID:
3959  fprintf(stderr, "\t reason: 'sold' board is invalid\n");
3960  break;
3961  case MB_ERR_LOCKED:
3962  fprintf(stderr, "\t reason: 'sold' board is locked\n");
3963  break;
3964  case MB_ERR_INTERNAL:
3965  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3966  break;
3967  default:
3968  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3969  break;
3970  }
3971 
3972 
3973  exit(rc);
3974  }
3975  #endif
3976 
3977  rc = MB_Clear(b_goods_transactions_summary);
3978  #ifdef ERRCHECK
3979  if (rc != MB_SUCCESS)
3980  {
3981  fprintf(stderr, "ERROR: Could not clear 'goods_transactions_summary' board\n");
3982  switch(rc) {
3983  case MB_ERR_INVALID:
3984  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is invalid\n");
3985  break;
3986  case MB_ERR_LOCKED:
3987  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is locked\n");
3988  break;
3989  case MB_ERR_INTERNAL:
3990  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3991  break;
3992  default:
3993  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
3994  break;
3995  }
3996 
3997 
3998  exit(rc);
3999  }
4000  #endif
4001 
4003  #ifdef ERRCHECK
4004  if (rc != MB_SUCCESS)
4005  {
4006  fprintf(stderr, "ERROR: Could not clear 'centralbank_households_quarterly_cpi' board\n");
4007  switch(rc) {
4008  case MB_ERR_INVALID:
4009  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
4010  break;
4011  case MB_ERR_LOCKED:
4012  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
4013  break;
4014  case MB_ERR_INTERNAL:
4015  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4016  break;
4017  default:
4018  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4019  break;
4020  }
4021 
4022 
4023  exit(rc);
4024  }
4025  #endif
4026 
4027  rc = MB_Clear(b_fired);
4028  #ifdef ERRCHECK
4029  if (rc != MB_SUCCESS)
4030  {
4031  fprintf(stderr, "ERROR: Could not clear 'fired' board\n");
4032  switch(rc) {
4033  case MB_ERR_INVALID:
4034  fprintf(stderr, "\t reason: 'fired' board is invalid\n");
4035  break;
4036  case MB_ERR_LOCKED:
4037  fprintf(stderr, "\t reason: 'fired' board is locked\n");
4038  break;
4039  case MB_ERR_INTERNAL:
4040  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4041  break;
4042  default:
4043  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4044  break;
4045  }
4046 
4047 
4048  exit(rc);
4049  }
4050  #endif
4051 
4052  rc = MB_Clear(b_vacancy_stage1);
4053  #ifdef ERRCHECK
4054  if (rc != MB_SUCCESS)
4055  {
4056  fprintf(stderr, "ERROR: Could not clear 'vacancy_stage1' board\n");
4057  switch(rc) {
4058  case MB_ERR_INVALID:
4059  fprintf(stderr, "\t reason: 'vacancy_stage1' board is invalid\n");
4060  break;
4061  case MB_ERR_LOCKED:
4062  fprintf(stderr, "\t reason: 'vacancy_stage1' board is locked\n");
4063  break;
4064  case MB_ERR_INTERNAL:
4065  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4066  break;
4067  default:
4068  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4069  break;
4070  }
4071 
4072 
4073  exit(rc);
4074  }
4075  #endif
4076 
4077  rc = MB_Clear(b_job_application_stage2);
4078  #ifdef ERRCHECK
4079  if (rc != MB_SUCCESS)
4080  {
4081  fprintf(stderr, "ERROR: Could not clear 'job_application_stage2' board\n");
4082  switch(rc) {
4083  case MB_ERR_INVALID:
4084  fprintf(stderr, "\t reason: 'job_application_stage2' board is invalid\n");
4085  break;
4086  case MB_ERR_LOCKED:
4087  fprintf(stderr, "\t reason: 'job_application_stage2' board is locked\n");
4088  break;
4089  case MB_ERR_INTERNAL:
4090  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4091  break;
4092  default:
4093  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4094  break;
4095  }
4096 
4097 
4098  exit(rc);
4099  }
4100  #endif
4101 
4102  rc = MB_Clear(b_job_application_stage1);
4103  #ifdef ERRCHECK
4104  if (rc != MB_SUCCESS)
4105  {
4106  fprintf(stderr, "ERROR: Could not clear 'job_application_stage1' board\n");
4107  switch(rc) {
4108  case MB_ERR_INVALID:
4109  fprintf(stderr, "\t reason: 'job_application_stage1' board is invalid\n");
4110  break;
4111  case MB_ERR_LOCKED:
4112  fprintf(stderr, "\t reason: 'job_application_stage1' board is locked\n");
4113  break;
4114  case MB_ERR_INTERNAL:
4115  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4116  break;
4117  default:
4118  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4119  break;
4120  }
4121 
4122 
4123  exit(rc);
4124  }
4125  #endif
4126 
4127  rc = MB_Clear(b_job_match_stage1);
4128  #ifdef ERRCHECK
4129  if (rc != MB_SUCCESS)
4130  {
4131  fprintf(stderr, "ERROR: Could not clear 'job_match_stage1' board\n");
4132  switch(rc) {
4133  case MB_ERR_INVALID:
4134  fprintf(stderr, "\t reason: 'job_match_stage1' board is invalid\n");
4135  break;
4136  case MB_ERR_LOCKED:
4137  fprintf(stderr, "\t reason: 'job_match_stage1' board is locked\n");
4138  break;
4139  case MB_ERR_INTERNAL:
4140  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4141  break;
4142  default:
4143  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4144  break;
4145  }
4146 
4147 
4148  exit(rc);
4149  }
4150  #endif
4151 
4152  rc = MB_Clear(b_job_change);
4153  #ifdef ERRCHECK
4154  if (rc != MB_SUCCESS)
4155  {
4156  fprintf(stderr, "ERROR: Could not clear 'job_change' board\n");
4157  switch(rc) {
4158  case MB_ERR_INVALID:
4159  fprintf(stderr, "\t reason: 'job_change' board is invalid\n");
4160  break;
4161  case MB_ERR_LOCKED:
4162  fprintf(stderr, "\t reason: 'job_change' board is locked\n");
4163  break;
4164  case MB_ERR_INTERNAL:
4165  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4166  break;
4167  default:
4168  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4169  break;
4170  }
4171 
4172 
4173  exit(rc);
4174  }
4175  #endif
4176 
4177  rc = MB_Clear(b_vacancy_stage2);
4178  #ifdef ERRCHECK
4179  if (rc != MB_SUCCESS)
4180  {
4181  fprintf(stderr, "ERROR: Could not clear 'vacancy_stage2' board\n");
4182  switch(rc) {
4183  case MB_ERR_INVALID:
4184  fprintf(stderr, "\t reason: 'vacancy_stage2' board is invalid\n");
4185  break;
4186  case MB_ERR_LOCKED:
4187  fprintf(stderr, "\t reason: 'vacancy_stage2' board is locked\n");
4188  break;
4189  case MB_ERR_INTERNAL:
4190  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4191  break;
4192  default:
4193  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4194  break;
4195  }
4196 
4197 
4198  exit(rc);
4199  }
4200  #endif
4201 
4202  rc = MB_Clear(b_job_match_stage2);
4203  #ifdef ERRCHECK
4204  if (rc != MB_SUCCESS)
4205  {
4206  fprintf(stderr, "ERROR: Could not clear 'job_match_stage2' board\n");
4207  switch(rc) {
4208  case MB_ERR_INVALID:
4209  fprintf(stderr, "\t reason: 'job_match_stage2' board is invalid\n");
4210  break;
4211  case MB_ERR_LOCKED:
4212  fprintf(stderr, "\t reason: 'job_match_stage2' board is locked\n");
4213  break;
4214  case MB_ERR_INTERNAL:
4215  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4216  break;
4217  default:
4218  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4219  break;
4220  }
4221 
4222 
4223  exit(rc);
4224  }
4225  #endif
4226 
4227  rc = MB_Clear(b_employment_status);
4228  #ifdef ERRCHECK
4229  if (rc != MB_SUCCESS)
4230  {
4231  fprintf(stderr, "ERROR: Could not clear 'employment_status' board\n");
4232  switch(rc) {
4233  case MB_ERR_INVALID:
4234  fprintf(stderr, "\t reason: 'employment_status' board is invalid\n");
4235  break;
4236  case MB_ERR_LOCKED:
4237  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
4238  break;
4239  case MB_ERR_INTERNAL:
4240  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4241  break;
4242  default:
4243  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4244  break;
4245  }
4246 
4247 
4248  exit(rc);
4249  }
4250  #endif
4251 
4252  rc = MB_Clear(b_firm_household_wage_payment);
4253  #ifdef ERRCHECK
4254  if (rc != MB_SUCCESS)
4255  {
4256  fprintf(stderr, "ERROR: Could not clear 'firm_household_wage_payment' board\n");
4257  switch(rc) {
4258  case MB_ERR_INVALID:
4259  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board is invalid\n");
4260  break;
4261  case MB_ERR_LOCKED:
4262  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board is locked\n");
4263  break;
4264  case MB_ERR_INTERNAL:
4265  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4266  break;
4267  default:
4268  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4269  break;
4270  }
4271 
4272 
4273  exit(rc);
4274  }
4275  #endif
4276 
4277  rc = MB_Clear(b_firm_bank_loan_request_1);
4278  #ifdef ERRCHECK
4279  if (rc != MB_SUCCESS)
4280  {
4281  fprintf(stderr, "ERROR: Could not clear 'firm_bank_loan_request_1' board\n");
4282  switch(rc) {
4283  case MB_ERR_INVALID:
4284  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board is invalid\n");
4285  break;
4286  case MB_ERR_LOCKED:
4287  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board is locked\n");
4288  break;
4289  case MB_ERR_INTERNAL:
4290  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4291  break;
4292  default:
4293  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4294  break;
4295  }
4296 
4297 
4298  exit(rc);
4299  }
4300  #endif
4301 
4302  rc = MB_Clear(b_firm_bank_loan_request_2);
4303  #ifdef ERRCHECK
4304  if (rc != MB_SUCCESS)
4305  {
4306  fprintf(stderr, "ERROR: Could not clear 'firm_bank_loan_request_2' board\n");
4307  switch(rc) {
4308  case MB_ERR_INVALID:
4309  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board is invalid\n");
4310  break;
4311  case MB_ERR_LOCKED:
4312  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board is locked\n");
4313  break;
4314  case MB_ERR_INTERNAL:
4315  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4316  break;
4317  default:
4318  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4319  break;
4320  }
4321 
4322 
4323  exit(rc);
4324  }
4325  #endif
4326 
4327  rc = MB_Clear(b_bank_firm_loan_acknowledge_1);
4328  #ifdef ERRCHECK
4329  if (rc != MB_SUCCESS)
4330  {
4331  fprintf(stderr, "ERROR: Could not clear 'bank_firm_loan_acknowledge_1' board\n");
4332  switch(rc) {
4333  case MB_ERR_INVALID:
4334  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
4335  break;
4336  case MB_ERR_LOCKED:
4337  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
4338  break;
4339  case MB_ERR_INTERNAL:
4340  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4341  break;
4342  default:
4343  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4344  break;
4345  }
4346 
4347 
4348  exit(rc);
4349  }
4350  #endif
4351 
4352  rc = MB_Clear(b_bank_firm_loan_acknowledge_2);
4353  #ifdef ERRCHECK
4354  if (rc != MB_SUCCESS)
4355  {
4356  fprintf(stderr, "ERROR: Could not clear 'bank_firm_loan_acknowledge_2' board\n");
4357  switch(rc) {
4358  case MB_ERR_INVALID:
4359  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
4360  break;
4361  case MB_ERR_LOCKED:
4362  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
4363  break;
4364  case MB_ERR_INTERNAL:
4365  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4366  break;
4367  default:
4368  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4369  break;
4370  }
4371 
4372 
4373  exit(rc);
4374  }
4375  #endif
4376 
4377  rc = MB_Clear(b_bank_centralbank_debt_request);
4378  #ifdef ERRCHECK
4379  if (rc != MB_SUCCESS)
4380  {
4381  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_debt_request' board\n");
4382  switch(rc) {
4383  case MB_ERR_INVALID:
4384  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board is invalid\n");
4385  break;
4386  case MB_ERR_LOCKED:
4387  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board is locked\n");
4388  break;
4389  case MB_ERR_INTERNAL:
4390  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4391  break;
4392  default:
4393  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4394  break;
4395  }
4396 
4397 
4398  exit(rc);
4399  }
4400  #endif
4401 
4402  rc = MB_Clear(b_household_share);
4403  #ifdef ERRCHECK
4404  if (rc != MB_SUCCESS)
4405  {
4406  fprintf(stderr, "ERROR: Could not clear 'household_share' board\n");
4407  switch(rc) {
4408  case MB_ERR_INVALID:
4409  fprintf(stderr, "\t reason: 'household_share' board is invalid\n");
4410  break;
4411  case MB_ERR_LOCKED:
4412  fprintf(stderr, "\t reason: 'household_share' board is locked\n");
4413  break;
4414  case MB_ERR_INTERNAL:
4415  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4416  break;
4417  default:
4418  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4419  break;
4420  }
4421 
4422 
4423  exit(rc);
4424  }
4425  #endif
4426 
4427  rc = MB_Clear(b_capital_tax);
4428  #ifdef ERRCHECK
4429  if (rc != MB_SUCCESS)
4430  {
4431  fprintf(stderr, "ERROR: Could not clear 'capital_tax' board\n");
4432  switch(rc) {
4433  case MB_ERR_INVALID:
4434  fprintf(stderr, "\t reason: 'capital_tax' board is invalid\n");
4435  break;
4436  case MB_ERR_LOCKED:
4437  fprintf(stderr, "\t reason: 'capital_tax' board is locked\n");
4438  break;
4439  case MB_ERR_INTERNAL:
4440  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4441  break;
4442  default:
4443  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4444  break;
4445  }
4446 
4447 
4448  exit(rc);
4449  }
4450  #endif
4451 
4452  rc = MB_Clear(b_labour_tax);
4453  #ifdef ERRCHECK
4454  if (rc != MB_SUCCESS)
4455  {
4456  fprintf(stderr, "ERROR: Could not clear 'labour_tax' board\n");
4457  switch(rc) {
4458  case MB_ERR_INVALID:
4459  fprintf(stderr, "\t reason: 'labour_tax' board is invalid\n");
4460  break;
4461  case MB_ERR_LOCKED:
4462  fprintf(stderr, "\t reason: 'labour_tax' board is locked\n");
4463  break;
4464  case MB_ERR_INTERNAL:
4465  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4466  break;
4467  default:
4468  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4469  break;
4470  }
4471 
4472 
4473  exit(rc);
4474  }
4475  #endif
4476 
4477  rc = MB_Clear(b_unemployment_benefit);
4478  #ifdef ERRCHECK
4479  if (rc != MB_SUCCESS)
4480  {
4481  fprintf(stderr, "ERROR: Could not clear 'unemployment_benefit' board\n");
4482  switch(rc) {
4483  case MB_ERR_INVALID:
4484  fprintf(stderr, "\t reason: 'unemployment_benefit' board is invalid\n");
4485  break;
4486  case MB_ERR_LOCKED:
4487  fprintf(stderr, "\t reason: 'unemployment_benefit' board is locked\n");
4488  break;
4489  case MB_ERR_INTERNAL:
4490  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4491  break;
4492  default:
4493  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4494  break;
4495  }
4496 
4497 
4498  exit(rc);
4499  }
4500  #endif
4501 
4502  rc = MB_Clear(b_general_benefit);
4503  #ifdef ERRCHECK
4504  if (rc != MB_SUCCESS)
4505  {
4506  fprintf(stderr, "ERROR: Could not clear 'general_benefit' board\n");
4507  switch(rc) {
4508  case MB_ERR_INVALID:
4509  fprintf(stderr, "\t reason: 'general_benefit' board is invalid\n");
4510  break;
4511  case MB_ERR_LOCKED:
4512  fprintf(stderr, "\t reason: 'general_benefit' board is locked\n");
4513  break;
4514  case MB_ERR_INTERNAL:
4515  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4516  break;
4517  default:
4518  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4519  break;
4520  }
4521 
4522 
4523  exit(rc);
4524  }
4525  #endif
4526 
4527  rc = MB_Clear(b_fund_request);
4528  #ifdef ERRCHECK
4529  if (rc != MB_SUCCESS)
4530  {
4531  fprintf(stderr, "ERROR: Could not clear 'fund_request' board\n");
4532  switch(rc) {
4533  case MB_ERR_INVALID:
4534  fprintf(stderr, "\t reason: 'fund_request' board is invalid\n");
4535  break;
4536  case MB_ERR_LOCKED:
4537  fprintf(stderr, "\t reason: 'fund_request' board is locked\n");
4538  break;
4539  case MB_ERR_INTERNAL:
4540  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4541  break;
4542  default:
4543  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4544  break;
4545  }
4546 
4547 
4548  exit(rc);
4549  }
4550  #endif
4551 
4552  rc = MB_Clear(b_fund_request_ack);
4553  #ifdef ERRCHECK
4554  if (rc != MB_SUCCESS)
4555  {
4556  fprintf(stderr, "ERROR: Could not clear 'fund_request_ack' board\n");
4557  switch(rc) {
4558  case MB_ERR_INVALID:
4559  fprintf(stderr, "\t reason: 'fund_request_ack' board is invalid\n");
4560  break;
4561  case MB_ERR_LOCKED:
4562  fprintf(stderr, "\t reason: 'fund_request_ack' board is locked\n");
4563  break;
4564  case MB_ERR_INTERNAL:
4565  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4566  break;
4567  default:
4568  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4569  break;
4570  }
4571 
4572 
4573  exit(rc);
4574  }
4575  #endif
4576 
4577  rc = MB_Clear(b_new_entrant_loan);
4578  #ifdef ERRCHECK
4579  if (rc != MB_SUCCESS)
4580  {
4581  fprintf(stderr, "ERROR: Could not clear 'new_entrant_loan' board\n");
4582  switch(rc) {
4583  case MB_ERR_INVALID:
4584  fprintf(stderr, "\t reason: 'new_entrant_loan' board is invalid\n");
4585  break;
4586  case MB_ERR_LOCKED:
4587  fprintf(stderr, "\t reason: 'new_entrant_loan' board is locked\n");
4588  break;
4589  case MB_ERR_INTERNAL:
4590  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4591  break;
4592  default:
4593  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4594  break;
4595  }
4596 
4597 
4598  exit(rc);
4599  }
4600  #endif
4601 
4602  rc = MB_Clear(b_firm_bank_interest_on_loan);
4603  #ifdef ERRCHECK
4604  if (rc != MB_SUCCESS)
4605  {
4606  fprintf(stderr, "ERROR: Could not clear 'firm_bank_interest_on_loan' board\n");
4607  switch(rc) {
4608  case MB_ERR_INVALID:
4609  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
4610  break;
4611  case MB_ERR_LOCKED:
4612  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board is locked\n");
4613  break;
4614  case MB_ERR_INTERNAL:
4615  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4616  break;
4617  default:
4618  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4619  break;
4620  }
4621 
4622 
4623  exit(rc);
4624  }
4625  #endif
4626 
4627  rc = MB_Clear(b_loan_writeoff);
4628  #ifdef ERRCHECK
4629  if (rc != MB_SUCCESS)
4630  {
4631  fprintf(stderr, "ERROR: Could not clear 'loan_writeoff' board\n");
4632  switch(rc) {
4633  case MB_ERR_INVALID:
4634  fprintf(stderr, "\t reason: 'loan_writeoff' board is invalid\n");
4635  break;
4636  case MB_ERR_LOCKED:
4637  fprintf(stderr, "\t reason: 'loan_writeoff' board is locked\n");
4638  break;
4639  case MB_ERR_INTERNAL:
4640  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4641  break;
4642  default:
4643  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4644  break;
4645  }
4646 
4647 
4648  exit(rc);
4649  }
4650  #endif
4651 
4652  rc = MB_Clear(b_firm_bank_insolvent_account);
4653  #ifdef ERRCHECK
4654  if (rc != MB_SUCCESS)
4655  {
4656  fprintf(stderr, "ERROR: Could not clear 'firm_bank_insolvent_account' board\n");
4657  switch(rc) {
4658  case MB_ERR_INVALID:
4659  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board is invalid\n");
4660  break;
4661  case MB_ERR_LOCKED:
4662  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board is locked\n");
4663  break;
4664  case MB_ERR_INTERNAL:
4665  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4666  break;
4667  default:
4668  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4669  break;
4670  }
4671 
4672 
4673  exit(rc);
4674  }
4675  #endif
4676 
4677  rc = MB_Clear(b_firm_net_profit);
4678  #ifdef ERRCHECK
4679  if (rc != MB_SUCCESS)
4680  {
4681  fprintf(stderr, "ERROR: Could not clear 'firm_net_profit' board\n");
4682  switch(rc) {
4683  case MB_ERR_INVALID:
4684  fprintf(stderr, "\t reason: 'firm_net_profit' board is invalid\n");
4685  break;
4686  case MB_ERR_LOCKED:
4687  fprintf(stderr, "\t reason: 'firm_net_profit' board is locked\n");
4688  break;
4689  case MB_ERR_INTERNAL:
4690  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4691  break;
4692  default:
4693  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4694  break;
4695  }
4696 
4697 
4698  exit(rc);
4699  }
4700  #endif
4701 
4702  rc = MB_Clear(b_bank_net_profit);
4703  #ifdef ERRCHECK
4704  if (rc != MB_SUCCESS)
4705  {
4706  fprintf(stderr, "ERROR: Could not clear 'bank_net_profit' board\n");
4707  switch(rc) {
4708  case MB_ERR_INVALID:
4709  fprintf(stderr, "\t reason: 'bank_net_profit' board is invalid\n");
4710  break;
4711  case MB_ERR_LOCKED:
4712  fprintf(stderr, "\t reason: 'bank_net_profit' board is locked\n");
4713  break;
4714  case MB_ERR_INTERNAL:
4715  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4716  break;
4717  default:
4718  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4719  break;
4720  }
4721 
4722 
4723  exit(rc);
4724  }
4725  #endif
4726 
4727  rc = MB_Clear(b_bank_centralbank_interest_payment);
4728  #ifdef ERRCHECK
4729  if (rc != MB_SUCCESS)
4730  {
4731  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_interest_payment' board\n");
4732  switch(rc) {
4733  case MB_ERR_INVALID:
4734  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
4735  break;
4736  case MB_ERR_LOCKED:
4737  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board is locked\n");
4738  break;
4739  case MB_ERR_INTERNAL:
4740  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4741  break;
4742  default:
4743  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4744  break;
4745  }
4746 
4747 
4748  exit(rc);
4749  }
4750  #endif
4751 
4752  rc = MB_Clear(b_bank_centralbank_debt_payment);
4753  #ifdef ERRCHECK
4754  if (rc != MB_SUCCESS)
4755  {
4756  fprintf(stderr, "ERROR: Could not clear 'bank_centralbank_debt_payment' board\n");
4757  switch(rc) {
4758  case MB_ERR_INVALID:
4759  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
4760  break;
4761  case MB_ERR_LOCKED:
4762  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board is locked\n");
4763  break;
4764  case MB_ERR_INTERNAL:
4765  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4766  break;
4767  default:
4768  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4769  break;
4770  }
4771 
4772 
4773  exit(rc);
4774  }
4775  #endif
4776 
4777  rc = MB_Clear(b_gov_centralbank_debt_request);
4778  #ifdef ERRCHECK
4779  if (rc != MB_SUCCESS)
4780  {
4781  fprintf(stderr, "ERROR: Could not clear 'gov_centralbank_debt_request' board\n");
4782  switch(rc) {
4783  case MB_ERR_INVALID:
4784  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board is invalid\n");
4785  break;
4786  case MB_ERR_LOCKED:
4787  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board is locked\n");
4788  break;
4789  case MB_ERR_INTERNAL:
4790  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4791  break;
4792  default:
4793  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4794  break;
4795  }
4796 
4797 
4798  exit(rc);
4799  }
4800  #endif
4801 
4802  rc = MB_Clear(b_gov_centralbank_debt_payment);
4803  #ifdef ERRCHECK
4804  if (rc != MB_SUCCESS)
4805  {
4806  fprintf(stderr, "ERROR: Could not clear 'gov_centralbank_debt_payment' board\n");
4807  switch(rc) {
4808  case MB_ERR_INVALID:
4809  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
4810  break;
4811  case MB_ERR_LOCKED:
4812  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board is locked\n");
4813  break;
4814  case MB_ERR_INTERNAL:
4815  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4816  break;
4817  default:
4818  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4819  break;
4820  }
4821 
4822 
4823  exit(rc);
4824  }
4825  #endif
4826 
4827  rc = MB_Clear(b_centralbank_government_profit);
4828  #ifdef ERRCHECK
4829  if (rc != MB_SUCCESS)
4830  {
4831  fprintf(stderr, "ERROR: Could not clear 'centralbank_government_profit' board\n");
4832  switch(rc) {
4833  case MB_ERR_INVALID:
4834  fprintf(stderr, "\t reason: 'centralbank_government_profit' board is invalid\n");
4835  break;
4836  case MB_ERR_LOCKED:
4837  fprintf(stderr, "\t reason: 'centralbank_government_profit' board is locked\n");
4838  break;
4839  case MB_ERR_INTERNAL:
4840  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4841  break;
4842  default:
4843  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4844  break;
4845  }
4846 
4847 
4848  exit(rc);
4849  }
4850  #endif
4851 
4852  rc = MB_Clear(b_housing_price);
4853  #ifdef ERRCHECK
4854  if (rc != MB_SUCCESS)
4855  {
4856  fprintf(stderr, "ERROR: Could not clear 'housing_price' board\n");
4857  switch(rc) {
4858  case MB_ERR_INVALID:
4859  fprintf(stderr, "\t reason: 'housing_price' board is invalid\n");
4860  break;
4861  case MB_ERR_LOCKED:
4862  fprintf(stderr, "\t reason: 'housing_price' board is locked\n");
4863  break;
4864  case MB_ERR_INTERNAL:
4865  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4866  break;
4867  default:
4868  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4869  break;
4870  }
4871 
4872 
4873  exit(rc);
4874  }
4875  #endif
4876 
4877  rc = MB_Clear(b_buy_housing);
4878  #ifdef ERRCHECK
4879  if (rc != MB_SUCCESS)
4880  {
4881  fprintf(stderr, "ERROR: Could not clear 'buy_housing' board\n");
4882  switch(rc) {
4883  case MB_ERR_INVALID:
4884  fprintf(stderr, "\t reason: 'buy_housing' board is invalid\n");
4885  break;
4886  case MB_ERR_LOCKED:
4887  fprintf(stderr, "\t reason: 'buy_housing' board is locked\n");
4888  break;
4889  case MB_ERR_INTERNAL:
4890  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4891  break;
4892  default:
4893  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4894  break;
4895  }
4896 
4897 
4898  exit(rc);
4899  }
4900  #endif
4901 
4902  rc = MB_Clear(b_sell_housing);
4903  #ifdef ERRCHECK
4904  if (rc != MB_SUCCESS)
4905  {
4906  fprintf(stderr, "ERROR: Could not clear 'sell_housing' board\n");
4907  switch(rc) {
4908  case MB_ERR_INVALID:
4909  fprintf(stderr, "\t reason: 'sell_housing' board is invalid\n");
4910  break;
4911  case MB_ERR_LOCKED:
4912  fprintf(stderr, "\t reason: 'sell_housing' board is locked\n");
4913  break;
4914  case MB_ERR_INTERNAL:
4915  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4916  break;
4917  default:
4918  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4919  break;
4920  }
4921 
4922 
4923  exit(rc);
4924  }
4925  #endif
4926 
4927  rc = MB_Clear(b_bought_housing);
4928  #ifdef ERRCHECK
4929  if (rc != MB_SUCCESS)
4930  {
4931  fprintf(stderr, "ERROR: Could not clear 'bought_housing' board\n");
4932  switch(rc) {
4933  case MB_ERR_INVALID:
4934  fprintf(stderr, "\t reason: 'bought_housing' board is invalid\n");
4935  break;
4936  case MB_ERR_LOCKED:
4937  fprintf(stderr, "\t reason: 'bought_housing' board is locked\n");
4938  break;
4939  case MB_ERR_INTERNAL:
4940  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4941  break;
4942  default:
4943  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4944  break;
4945  }
4946 
4947 
4948  exit(rc);
4949  }
4950  #endif
4951 
4952  rc = MB_Clear(b_sold_housing);
4953  #ifdef ERRCHECK
4954  if (rc != MB_SUCCESS)
4955  {
4956  fprintf(stderr, "ERROR: Could not clear 'sold_housing' board\n");
4957  switch(rc) {
4958  case MB_ERR_INVALID:
4959  fprintf(stderr, "\t reason: 'sold_housing' board is invalid\n");
4960  break;
4961  case MB_ERR_LOCKED:
4962  fprintf(stderr, "\t reason: 'sold_housing' board is locked\n");
4963  break;
4964  case MB_ERR_INTERNAL:
4965  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4966  break;
4967  default:
4968  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4969  break;
4970  }
4971 
4972 
4973  exit(rc);
4974  }
4975  #endif
4976 
4977  rc = MB_Clear(b_bank_reagency_credibility);
4978  #ifdef ERRCHECK
4979  if (rc != MB_SUCCESS)
4980  {
4981  fprintf(stderr, "ERROR: Could not clear 'bank_reagency_credibility' board\n");
4982  switch(rc) {
4983  case MB_ERR_INVALID:
4984  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board is invalid\n");
4985  break;
4986  case MB_ERR_LOCKED:
4987  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board is locked\n");
4988  break;
4989  case MB_ERR_INTERNAL:
4990  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4991  break;
4992  default:
4993  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
4994  break;
4995  }
4996 
4997 
4998  exit(rc);
4999  }
5000  #endif
5001 
5002  rc = MB_Clear(b_mortgage_requests);
5003  #ifdef ERRCHECK
5004  if (rc != MB_SUCCESS)
5005  {
5006  fprintf(stderr, "ERROR: Could not clear 'mortgage_requests' board\n");
5007  switch(rc) {
5008  case MB_ERR_INVALID:
5009  fprintf(stderr, "\t reason: 'mortgage_requests' board is invalid\n");
5010  break;
5011  case MB_ERR_LOCKED:
5012  fprintf(stderr, "\t reason: 'mortgage_requests' board is locked\n");
5013  break;
5014  case MB_ERR_INTERNAL:
5015  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5016  break;
5017  default:
5018  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
5019  break;
5020  }
5021 
5022 
5023  exit(rc);
5024  }
5025  #endif
5026 
5027  rc = MB_Clear(b_mortgage_payment_from_sale);
5028  #ifdef ERRCHECK
5029  if (rc != MB_SUCCESS)
5030  {
5031  fprintf(stderr, "ERROR: Could not clear 'mortgage_payment_from_sale' board\n");
5032  switch(rc) {
5033  case MB_ERR_INVALID:
5034  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board is invalid\n");
5035  break;
5036  case MB_ERR_LOCKED:
5037  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board is locked\n");
5038  break;
5039  case MB_ERR_INTERNAL:
5040  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5041  break;
5042  default:
5043  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
5044  break;
5045  }
5046 
5047 
5048  exit(rc);
5049  }
5050  #endif
5051 
5052  rc = MB_Clear(b_mortgage_payment);
5053  #ifdef ERRCHECK
5054  if (rc != MB_SUCCESS)
5055  {
5056  fprintf(stderr, "ERROR: Could not clear 'mortgage_payment' board\n");
5057  switch(rc) {
5058  case MB_ERR_INVALID:
5059  fprintf(stderr, "\t reason: 'mortgage_payment' board is invalid\n");
5060  break;
5061  case MB_ERR_LOCKED:
5062  fprintf(stderr, "\t reason: 'mortgage_payment' board is locked\n");
5063  break;
5064  case MB_ERR_INTERNAL:
5065  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5066  break;
5067  default:
5068  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
5069  break;
5070  }
5071 
5072 
5073  exit(rc);
5074  }
5075  #endif
5076 
5077  rc = MB_Clear(b_mortgage_writeoff);
5078  #ifdef ERRCHECK
5079  if (rc != MB_SUCCESS)
5080  {
5081  fprintf(stderr, "ERROR: Could not clear 'mortgage_writeoff' board\n");
5082  switch(rc) {
5083  case MB_ERR_INVALID:
5084  fprintf(stderr, "\t reason: 'mortgage_writeoff' board is invalid\n");
5085  break;
5086  case MB_ERR_LOCKED:
5087  fprintf(stderr, "\t reason: 'mortgage_writeoff' board is locked\n");
5088  break;
5089  case MB_ERR_INTERNAL:
5090  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5091  break;
5092  default:
5093  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
5094  break;
5095  }
5096 
5097 
5098  exit(rc);
5099  }
5100  #endif
5101 
5102  rc = MB_Clear(b_housing_transactions_summary);
5103  #ifdef ERRCHECK
5104  if (rc != MB_SUCCESS)
5105  {
5106  fprintf(stderr, "ERROR: Could not clear 'housing_transactions_summary' board\n");
5107  switch(rc) {
5108  case MB_ERR_INVALID:
5109  fprintf(stderr, "\t reason: 'housing_transactions_summary' board is invalid\n");
5110  break;
5111  case MB_ERR_LOCKED:
5112  fprintf(stderr, "\t reason: 'housing_transactions_summary' board is locked\n");
5113  break;
5114  case MB_ERR_INTERNAL:
5115  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5116  break;
5117  default:
5118  fprintf(stderr, "\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
5119  break;
5120  }
5121 
5122 
5123  exit(rc);
5124  }
5125  #endif
5126 
5127 }
5128 
5133 {
5134 int rc;
5135 
5136  /* Initialise message sync composite params as NULL */
5138 
5139  rc = MB_Create(&b_firm_bank_init_loans, sizeof(m_firm_bank_init_loans));
5140  #ifdef ERRCHECK
5141  if (rc != MB_SUCCESS)
5142  {
5143  fprintf(stderr, "ERROR: Could not create 'firm_bank_init_loans' board\n");
5144  switch(rc) {
5145  case MB_ERR_INVALID:
5146  fprintf(stderr, "\t reason: Invalid message size\n");
5147  break;
5148  case MB_ERR_MEMALLOC:
5149  fprintf(stderr, "\t reason: out of memory\n");
5150  break;
5151  case MB_ERR_INTERNAL:
5152  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5153  break;
5154  default:
5155  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5156  break;
5157  }
5158 
5159 
5160  exit(rc);
5161  }
5162  #endif
5163 
5164  /* Initialise message sync composite params as NULL */
5166 
5167  rc = MB_Create(&b_firm_bank_init_deposit, sizeof(m_firm_bank_init_deposit));
5168  #ifdef ERRCHECK
5169  if (rc != MB_SUCCESS)
5170  {
5171  fprintf(stderr, "ERROR: Could not create 'firm_bank_init_deposit' board\n");
5172  switch(rc) {
5173  case MB_ERR_INVALID:
5174  fprintf(stderr, "\t reason: Invalid message size\n");
5175  break;
5176  case MB_ERR_MEMALLOC:
5177  fprintf(stderr, "\t reason: out of memory\n");
5178  break;
5179  case MB_ERR_INTERNAL:
5180  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5181  break;
5182  default:
5183  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5184  break;
5185  }
5186 
5187 
5188  exit(rc);
5189  }
5190  #endif
5191 
5192  /* Initialise message sync composite params as NULL */
5194 
5195  rc = MB_Create(&b_firm_bank_update_deposit, sizeof(m_firm_bank_update_deposit));
5196  #ifdef ERRCHECK
5197  if (rc != MB_SUCCESS)
5198  {
5199  fprintf(stderr, "ERROR: Could not create 'firm_bank_update_deposit' board\n");
5200  switch(rc) {
5201  case MB_ERR_INVALID:
5202  fprintf(stderr, "\t reason: Invalid message size\n");
5203  break;
5204  case MB_ERR_MEMALLOC:
5205  fprintf(stderr, "\t reason: out of memory\n");
5206  break;
5207  case MB_ERR_INTERNAL:
5208  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5209  break;
5210  default:
5211  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5212  break;
5213  }
5214 
5215 
5216  exit(rc);
5217  }
5218  #endif
5219 
5220  /* Initialise message sync composite params as NULL */
5222 
5224  #ifdef ERRCHECK
5225  if (rc != MB_SUCCESS)
5226  {
5227  fprintf(stderr, "ERROR: Could not create 'household_bank_init_mortgages' board\n");
5228  switch(rc) {
5229  case MB_ERR_INVALID:
5230  fprintf(stderr, "\t reason: Invalid message size\n");
5231  break;
5232  case MB_ERR_MEMALLOC:
5233  fprintf(stderr, "\t reason: out of memory\n");
5234  break;
5235  case MB_ERR_INTERNAL:
5236  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5237  break;
5238  default:
5239  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5240  break;
5241  }
5242 
5243 
5244  exit(rc);
5245  }
5246  #endif
5247 
5248  /* Initialise message sync composite params as NULL */
5250 
5252  #ifdef ERRCHECK
5253  if (rc != MB_SUCCESS)
5254  {
5255  fprintf(stderr, "ERROR: Could not create 'household_bank_init_deposit' board\n");
5256  switch(rc) {
5257  case MB_ERR_INVALID:
5258  fprintf(stderr, "\t reason: Invalid message size\n");
5259  break;
5260  case MB_ERR_MEMALLOC:
5261  fprintf(stderr, "\t reason: out of memory\n");
5262  break;
5263  case MB_ERR_INTERNAL:
5264  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5265  break;
5266  default:
5267  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5268  break;
5269  }
5270 
5271 
5272  exit(rc);
5273  }
5274  #endif
5275 
5276  /* Initialise message sync composite params as NULL */
5278 
5280  #ifdef ERRCHECK
5281  if (rc != MB_SUCCESS)
5282  {
5283  fprintf(stderr, "ERROR: Could not create 'household_bank_update_deposit' board\n");
5284  switch(rc) {
5285  case MB_ERR_INVALID:
5286  fprintf(stderr, "\t reason: Invalid message size\n");
5287  break;
5288  case MB_ERR_MEMALLOC:
5289  fprintf(stderr, "\t reason: out of memory\n");
5290  break;
5291  case MB_ERR_INTERNAL:
5292  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5293  break;
5294  default:
5295  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5296  break;
5297  }
5298 
5299 
5300  exit(rc);
5301  }
5302  #endif
5303 
5304  /* Initialise message sync composite params as NULL */
5306 
5308  #ifdef ERRCHECK
5309  if (rc != MB_SUCCESS)
5310  {
5311  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_init_debt' board\n");
5312  switch(rc) {
5313  case MB_ERR_INVALID:
5314  fprintf(stderr, "\t reason: Invalid message size\n");
5315  break;
5316  case MB_ERR_MEMALLOC:
5317  fprintf(stderr, "\t reason: out of memory\n");
5318  break;
5319  case MB_ERR_INTERNAL:
5320  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5321  break;
5322  default:
5323  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5324  break;
5325  }
5326 
5327 
5328  exit(rc);
5329  }
5330  #endif
5331 
5332  /* Initialise message sync composite params as NULL */
5334 
5336  #ifdef ERRCHECK
5337  if (rc != MB_SUCCESS)
5338  {
5339  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_init_deposit' board\n");
5340  switch(rc) {
5341  case MB_ERR_INVALID:
5342  fprintf(stderr, "\t reason: Invalid message size\n");
5343  break;
5344  case MB_ERR_MEMALLOC:
5345  fprintf(stderr, "\t reason: out of memory\n");
5346  break;
5347  case MB_ERR_INTERNAL:
5348  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5349  break;
5350  default:
5351  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5352  break;
5353  }
5354 
5355 
5356  exit(rc);
5357  }
5358  #endif
5359 
5360  /* Initialise message sync composite params as NULL */
5362 
5364  #ifdef ERRCHECK
5365  if (rc != MB_SUCCESS)
5366  {
5367  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_update_deposit' board\n");
5368  switch(rc) {
5369  case MB_ERR_INVALID:
5370  fprintf(stderr, "\t reason: Invalid message size\n");
5371  break;
5372  case MB_ERR_MEMALLOC:
5373  fprintf(stderr, "\t reason: out of memory\n");
5374  break;
5375  case MB_ERR_INTERNAL:
5376  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5377  break;
5378  default:
5379  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5380  break;
5381  }
5382 
5383 
5384  exit(rc);
5385  }
5386  #endif
5387 
5388  /* Initialise message sync composite params as NULL */
5390 
5392  #ifdef ERRCHECK
5393  if (rc != MB_SUCCESS)
5394  {
5395  fprintf(stderr, "ERROR: Could not create 'fund_centralbank_init_deposit' board\n");
5396  switch(rc) {
5397  case MB_ERR_INVALID:
5398  fprintf(stderr, "\t reason: Invalid message size\n");
5399  break;
5400  case MB_ERR_MEMALLOC:
5401  fprintf(stderr, "\t reason: out of memory\n");
5402  break;
5403  case MB_ERR_INTERNAL:
5404  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5405  break;
5406  default:
5407  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5408  break;
5409  }
5410 
5411 
5412  exit(rc);
5413  }
5414  #endif
5415 
5416  /* Initialise message sync composite params as NULL */
5418 
5420  #ifdef ERRCHECK
5421  if (rc != MB_SUCCESS)
5422  {
5423  fprintf(stderr, "ERROR: Could not create 'fund_centralbank_update_deposit' board\n");
5424  switch(rc) {
5425  case MB_ERR_INVALID:
5426  fprintf(stderr, "\t reason: Invalid message size\n");
5427  break;
5428  case MB_ERR_MEMALLOC:
5429  fprintf(stderr, "\t reason: out of memory\n");
5430  break;
5431  case MB_ERR_INTERNAL:
5432  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5433  break;
5434  default:
5435  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5436  break;
5437  }
5438 
5439 
5440  exit(rc);
5441  }
5442  #endif
5443 
5444  /* Initialise message sync composite params as NULL */
5446 
5448  #ifdef ERRCHECK
5449  if (rc != MB_SUCCESS)
5450  {
5451  fprintf(stderr, "ERROR: Could not create 'gov_centralbank_init_deposit' board\n");
5452  switch(rc) {
5453  case MB_ERR_INVALID:
5454  fprintf(stderr, "\t reason: Invalid message size\n");
5455  break;
5456  case MB_ERR_MEMALLOC:
5457  fprintf(stderr, "\t reason: out of memory\n");
5458  break;
5459  case MB_ERR_INTERNAL:
5460  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5461  break;
5462  default:
5463  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5464  break;
5465  }
5466 
5467 
5468  exit(rc);
5469  }
5470  #endif
5471 
5472  /* Initialise message sync composite params as NULL */
5474 
5476  #ifdef ERRCHECK
5477  if (rc != MB_SUCCESS)
5478  {
5479  fprintf(stderr, "ERROR: Could not create 'gov_centralbank_update_deposit' board\n");
5480  switch(rc) {
5481  case MB_ERR_INVALID:
5482  fprintf(stderr, "\t reason: Invalid message size\n");
5483  break;
5484  case MB_ERR_MEMALLOC:
5485  fprintf(stderr, "\t reason: out of memory\n");
5486  break;
5487  case MB_ERR_INTERNAL:
5488  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5489  break;
5490  default:
5491  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5492  break;
5493  }
5494 
5495 
5496  exit(rc);
5497  }
5498  #endif
5499 
5500  /* Initialise message sync composite params as NULL */
5502 
5503  rc = MB_Create(&b_interest_rate, sizeof(m_interest_rate));
5504  #ifdef ERRCHECK
5505  if (rc != MB_SUCCESS)
5506  {
5507  fprintf(stderr, "ERROR: Could not create 'interest_rate' board\n");
5508  switch(rc) {
5509  case MB_ERR_INVALID:
5510  fprintf(stderr, "\t reason: Invalid message size\n");
5511  break;
5512  case MB_ERR_MEMALLOC:
5513  fprintf(stderr, "\t reason: out of memory\n");
5514  break;
5515  case MB_ERR_INTERNAL:
5516  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5517  break;
5518  default:
5519  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5520  break;
5521  }
5522 
5523 
5524  exit(rc);
5525  }
5526  #endif
5527 
5528  /* Initialise message sync composite params as NULL */
5530 
5531  rc = MB_Create(&b_capital_tax_rate, sizeof(m_capital_tax_rate));
5532  #ifdef ERRCHECK
5533  if (rc != MB_SUCCESS)
5534  {
5535  fprintf(stderr, "ERROR: Could not create 'capital_tax_rate' board\n");
5536  switch(rc) {
5537  case MB_ERR_INVALID:
5538  fprintf(stderr, "\t reason: Invalid message size\n");
5539  break;
5540  case MB_ERR_MEMALLOC:
5541  fprintf(stderr, "\t reason: out of memory\n");
5542  break;
5543  case MB_ERR_INTERNAL:
5544  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5545  break;
5546  default:
5547  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5548  break;
5549  }
5550 
5551 
5552  exit(rc);
5553  }
5554  #endif
5555 
5556  /* Initialise message sync composite params as NULL */
5558 
5559  rc = MB_Create(&b_labour_tax_rate, sizeof(m_labour_tax_rate));
5560  #ifdef ERRCHECK
5561  if (rc != MB_SUCCESS)
5562  {
5563  fprintf(stderr, "ERROR: Could not create 'labour_tax_rate' board\n");
5564  switch(rc) {
5565  case MB_ERR_INVALID:
5566  fprintf(stderr, "\t reason: Invalid message size\n");
5567  break;
5568  case MB_ERR_MEMALLOC:
5569  fprintf(stderr, "\t reason: out of memory\n");
5570  break;
5571  case MB_ERR_INTERNAL:
5572  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5573  break;
5574  default:
5575  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5576  break;
5577  }
5578 
5579 
5580  exit(rc);
5581  }
5582  #endif
5583 
5584  /* Initialise message sync composite params as NULL */
5586 
5587  rc = MB_Create(&b_household_jpoffice_id, sizeof(m_household_jpoffice_id));
5588  #ifdef ERRCHECK
5589  if (rc != MB_SUCCESS)
5590  {
5591  fprintf(stderr, "ERROR: Could not create 'household_jpoffice_id' board\n");
5592  switch(rc) {
5593  case MB_ERR_INVALID:
5594  fprintf(stderr, "\t reason: Invalid message size\n");
5595  break;
5596  case MB_ERR_MEMALLOC:
5597  fprintf(stderr, "\t reason: out of memory\n");
5598  break;
5599  case MB_ERR_INTERNAL:
5600  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5601  break;
5602  default:
5603  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5604  break;
5605  }
5606 
5607 
5608  exit(rc);
5609  }
5610  #endif
5611 
5612  /* Initialise message sync composite params as NULL */
5614 
5616  #ifdef ERRCHECK
5617  if (rc != MB_SUCCESS)
5618  {
5619  fprintf(stderr, "ERROR: Could not create 'jpoffice_household_employer' board\n");
5620  switch(rc) {
5621  case MB_ERR_INVALID:
5622  fprintf(stderr, "\t reason: Invalid message size\n");
5623  break;
5624  case MB_ERR_MEMALLOC:
5625  fprintf(stderr, "\t reason: out of memory\n");
5626  break;
5627  case MB_ERR_INTERNAL:
5628  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5629  break;
5630  default:
5631  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5632  break;
5633  }
5634 
5635 
5636  exit(rc);
5637  }
5638  #endif
5639 
5640  /* Initialise message sync composite params as NULL */
5642 
5643  rc = MB_Create(&b_firm_jpoffice_id, sizeof(m_firm_jpoffice_id));
5644  #ifdef ERRCHECK
5645  if (rc != MB_SUCCESS)
5646  {
5647  fprintf(stderr, "ERROR: Could not create 'firm_jpoffice_id' board\n");
5648  switch(rc) {
5649  case MB_ERR_INVALID:
5650  fprintf(stderr, "\t reason: Invalid message size\n");
5651  break;
5652  case MB_ERR_MEMALLOC:
5653  fprintf(stderr, "\t reason: out of memory\n");
5654  break;
5655  case MB_ERR_INTERNAL:
5656  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5657  break;
5658  default:
5659  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5660  break;
5661  }
5662 
5663 
5664  exit(rc);
5665  }
5666  #endif
5667 
5668  /* Initialise message sync composite params as NULL */
5670 
5671  rc = MB_Create(&b_jpoffice_firm_employee, sizeof(m_jpoffice_firm_employee));
5672  #ifdef ERRCHECK
5673  if (rc != MB_SUCCESS)
5674  {
5675  fprintf(stderr, "ERROR: Could not create 'jpoffice_firm_employee' board\n");
5676  switch(rc) {
5677  case MB_ERR_INVALID:
5678  fprintf(stderr, "\t reason: Invalid message size\n");
5679  break;
5680  case MB_ERR_MEMALLOC:
5681  fprintf(stderr, "\t reason: out of memory\n");
5682  break;
5683  case MB_ERR_INTERNAL:
5684  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5685  break;
5686  default:
5687  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5688  break;
5689  }
5690 
5691 
5692  exit(rc);
5693  }
5694  #endif
5695 
5696  /* Initialise message sync composite params as NULL */
5698 
5699  rc = MB_Create(&b_buy, sizeof(m_buy));
5700  #ifdef ERRCHECK
5701  if (rc != MB_SUCCESS)
5702  {
5703  fprintf(stderr, "ERROR: Could not create 'buy' board\n");
5704  switch(rc) {
5705  case MB_ERR_INVALID:
5706  fprintf(stderr, "\t reason: Invalid message size\n");
5707  break;
5708  case MB_ERR_MEMALLOC:
5709  fprintf(stderr, "\t reason: out of memory\n");
5710  break;
5711  case MB_ERR_INTERNAL:
5712  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5713  break;
5714  default:
5715  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5716  break;
5717  }
5718 
5719 
5720  exit(rc);
5721  }
5722  #endif
5723 
5724  /* Initialise message sync composite params as NULL */
5726 
5727  rc = MB_Create(&b_bought, sizeof(m_bought));
5728  #ifdef ERRCHECK
5729  if (rc != MB_SUCCESS)
5730  {
5731  fprintf(stderr, "ERROR: Could not create 'bought' board\n");
5732  switch(rc) {
5733  case MB_ERR_INVALID:
5734  fprintf(stderr, "\t reason: Invalid message size\n");
5735  break;
5736  case MB_ERR_MEMALLOC:
5737  fprintf(stderr, "\t reason: out of memory\n");
5738  break;
5739  case MB_ERR_INTERNAL:
5740  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5741  break;
5742  default:
5743  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5744  break;
5745  }
5746 
5747 
5748  exit(rc);
5749  }
5750  #endif
5751 
5752  /* Initialise message sync composite params as NULL */
5754 
5755  rc = MB_Create(&b_sell, sizeof(m_sell));
5756  #ifdef ERRCHECK
5757  if (rc != MB_SUCCESS)
5758  {
5759  fprintf(stderr, "ERROR: Could not create 'sell' board\n");
5760  switch(rc) {
5761  case MB_ERR_INVALID:
5762  fprintf(stderr, "\t reason: Invalid message size\n");
5763  break;
5764  case MB_ERR_MEMALLOC:
5765  fprintf(stderr, "\t reason: out of memory\n");
5766  break;
5767  case MB_ERR_INTERNAL:
5768  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5769  break;
5770  default:
5771  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5772  break;
5773  }
5774 
5775 
5776  exit(rc);
5777  }
5778  #endif
5779 
5780  /* Initialise message sync composite params as NULL */
5782 
5783  rc = MB_Create(&b_sold, sizeof(m_sold));
5784  #ifdef ERRCHECK
5785  if (rc != MB_SUCCESS)
5786  {
5787  fprintf(stderr, "ERROR: Could not create 'sold' board\n");
5788  switch(rc) {
5789  case MB_ERR_INVALID:
5790  fprintf(stderr, "\t reason: Invalid message size\n");
5791  break;
5792  case MB_ERR_MEMALLOC:
5793  fprintf(stderr, "\t reason: out of memory\n");
5794  break;
5795  case MB_ERR_INTERNAL:
5796  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5797  break;
5798  default:
5799  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5800  break;
5801  }
5802 
5803 
5804  exit(rc);
5805  }
5806  #endif
5807 
5808  /* Initialise message sync composite params as NULL */
5810 
5812  #ifdef ERRCHECK
5813  if (rc != MB_SUCCESS)
5814  {
5815  fprintf(stderr, "ERROR: Could not create 'goods_transactions_summary' board\n");
5816  switch(rc) {
5817  case MB_ERR_INVALID:
5818  fprintf(stderr, "\t reason: Invalid message size\n");
5819  break;
5820  case MB_ERR_MEMALLOC:
5821  fprintf(stderr, "\t reason: out of memory\n");
5822  break;
5823  case MB_ERR_INTERNAL:
5824  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5825  break;
5826  default:
5827  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5828  break;
5829  }
5830 
5831 
5832  exit(rc);
5833  }
5834  #endif
5835 
5836  /* Initialise message sync composite params as NULL */
5838 
5840  #ifdef ERRCHECK
5841  if (rc != MB_SUCCESS)
5842  {
5843  fprintf(stderr, "ERROR: Could not create 'centralbank_households_quarterly_cpi' board\n");
5844  switch(rc) {
5845  case MB_ERR_INVALID:
5846  fprintf(stderr, "\t reason: Invalid message size\n");
5847  break;
5848  case MB_ERR_MEMALLOC:
5849  fprintf(stderr, "\t reason: out of memory\n");
5850  break;
5851  case MB_ERR_INTERNAL:
5852  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5853  break;
5854  default:
5855  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5856  break;
5857  }
5858 
5859 
5860  exit(rc);
5861  }
5862  #endif
5863 
5864  /* Initialise message sync composite params as NULL */
5866 
5867  rc = MB_Create(&b_fired, sizeof(m_fired));
5868  #ifdef ERRCHECK
5869  if (rc != MB_SUCCESS)
5870  {
5871  fprintf(stderr, "ERROR: Could not create 'fired' board\n");
5872  switch(rc) {
5873  case MB_ERR_INVALID:
5874  fprintf(stderr, "\t reason: Invalid message size\n");
5875  break;
5876  case MB_ERR_MEMALLOC:
5877  fprintf(stderr, "\t reason: out of memory\n");
5878  break;
5879  case MB_ERR_INTERNAL:
5880  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5881  break;
5882  default:
5883  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5884  break;
5885  }
5886 
5887 
5888  exit(rc);
5889  }
5890  #endif
5891 
5892  /* Initialise message sync composite params as NULL */
5894 
5895  rc = MB_Create(&b_vacancy_stage1, sizeof(m_vacancy_stage1));
5896  #ifdef ERRCHECK
5897  if (rc != MB_SUCCESS)
5898  {
5899  fprintf(stderr, "ERROR: Could not create 'vacancy_stage1' board\n");
5900  switch(rc) {
5901  case MB_ERR_INVALID:
5902  fprintf(stderr, "\t reason: Invalid message size\n");
5903  break;
5904  case MB_ERR_MEMALLOC:
5905  fprintf(stderr, "\t reason: out of memory\n");
5906  break;
5907  case MB_ERR_INTERNAL:
5908  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5909  break;
5910  default:
5911  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5912  break;
5913  }
5914 
5915 
5916  exit(rc);
5917  }
5918  #endif
5919 
5920  /* Initialise message sync composite params as NULL */
5922 
5923  rc = MB_Create(&b_job_application_stage2, sizeof(m_job_application_stage2));
5924  #ifdef ERRCHECK
5925  if (rc != MB_SUCCESS)
5926  {
5927  fprintf(stderr, "ERROR: Could not create 'job_application_stage2' board\n");
5928  switch(rc) {
5929  case MB_ERR_INVALID:
5930  fprintf(stderr, "\t reason: Invalid message size\n");
5931  break;
5932  case MB_ERR_MEMALLOC:
5933  fprintf(stderr, "\t reason: out of memory\n");
5934  break;
5935  case MB_ERR_INTERNAL:
5936  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5937  break;
5938  default:
5939  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5940  break;
5941  }
5942 
5943 
5944  exit(rc);
5945  }
5946  #endif
5947 
5948  /* Initialise message sync composite params as NULL */
5950 
5951  rc = MB_Create(&b_job_application_stage1, sizeof(m_job_application_stage1));
5952  #ifdef ERRCHECK
5953  if (rc != MB_SUCCESS)
5954  {
5955  fprintf(stderr, "ERROR: Could not create 'job_application_stage1' board\n");
5956  switch(rc) {
5957  case MB_ERR_INVALID:
5958  fprintf(stderr, "\t reason: Invalid message size\n");
5959  break;
5960  case MB_ERR_MEMALLOC:
5961  fprintf(stderr, "\t reason: out of memory\n");
5962  break;
5963  case MB_ERR_INTERNAL:
5964  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5965  break;
5966  default:
5967  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5968  break;
5969  }
5970 
5971 
5972  exit(rc);
5973  }
5974  #endif
5975 
5976  /* Initialise message sync composite params as NULL */
5978 
5979  rc = MB_Create(&b_job_match_stage1, sizeof(m_job_match_stage1));
5980  #ifdef ERRCHECK
5981  if (rc != MB_SUCCESS)
5982  {
5983  fprintf(stderr, "ERROR: Could not create 'job_match_stage1' board\n");
5984  switch(rc) {
5985  case MB_ERR_INVALID:
5986  fprintf(stderr, "\t reason: Invalid message size\n");
5987  break;
5988  case MB_ERR_MEMALLOC:
5989  fprintf(stderr, "\t reason: out of memory\n");
5990  break;
5991  case MB_ERR_INTERNAL:
5992  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5993  break;
5994  default:
5995  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
5996  break;
5997  }
5998 
5999 
6000  exit(rc);
6001  }
6002  #endif
6003 
6004  /* Initialise message sync composite params as NULL */
6006 
6007  rc = MB_Create(&b_job_change, sizeof(m_job_change));
6008  #ifdef ERRCHECK
6009  if (rc != MB_SUCCESS)
6010  {
6011  fprintf(stderr, "ERROR: Could not create 'job_change' board\n");
6012  switch(rc) {
6013  case MB_ERR_INVALID:
6014  fprintf(stderr, "\t reason: Invalid message size\n");
6015  break;
6016  case MB_ERR_MEMALLOC:
6017  fprintf(stderr, "\t reason: out of memory\n");
6018  break;
6019  case MB_ERR_INTERNAL:
6020  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6021  break;
6022  default:
6023  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6024  break;
6025  }
6026 
6027 
6028  exit(rc);
6029  }
6030  #endif
6031 
6032  /* Initialise message sync composite params as NULL */
6034 
6035  rc = MB_Create(&b_vacancy_stage2, sizeof(m_vacancy_stage2));
6036  #ifdef ERRCHECK
6037  if (rc != MB_SUCCESS)
6038  {
6039  fprintf(stderr, "ERROR: Could not create 'vacancy_stage2' board\n");
6040  switch(rc) {
6041  case MB_ERR_INVALID:
6042  fprintf(stderr, "\t reason: Invalid message size\n");
6043  break;
6044  case MB_ERR_MEMALLOC:
6045  fprintf(stderr, "\t reason: out of memory\n");
6046  break;
6047  case MB_ERR_INTERNAL:
6048  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6049  break;
6050  default:
6051  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6052  break;
6053  }
6054 
6055 
6056  exit(rc);
6057  }
6058  #endif
6059 
6060  /* Initialise message sync composite params as NULL */
6062 
6063  rc = MB_Create(&b_job_match_stage2, sizeof(m_job_match_stage2));
6064  #ifdef ERRCHECK
6065  if (rc != MB_SUCCESS)
6066  {
6067  fprintf(stderr, "ERROR: Could not create 'job_match_stage2' board\n");
6068  switch(rc) {
6069  case MB_ERR_INVALID:
6070  fprintf(stderr, "\t reason: Invalid message size\n");
6071  break;
6072  case MB_ERR_MEMALLOC:
6073  fprintf(stderr, "\t reason: out of memory\n");
6074  break;
6075  case MB_ERR_INTERNAL:
6076  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6077  break;
6078  default:
6079  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6080  break;
6081  }
6082 
6083 
6084  exit(rc);
6085  }
6086  #endif
6087 
6088  /* Initialise message sync composite params as NULL */
6090 
6091  rc = MB_Create(&b_employment_status, sizeof(m_employment_status));
6092  #ifdef ERRCHECK
6093  if (rc != MB_SUCCESS)
6094  {
6095  fprintf(stderr, "ERROR: Could not create 'employment_status' board\n");
6096  switch(rc) {
6097  case MB_ERR_INVALID:
6098  fprintf(stderr, "\t reason: Invalid message size\n");
6099  break;
6100  case MB_ERR_MEMALLOC:
6101  fprintf(stderr, "\t reason: out of memory\n");
6102  break;
6103  case MB_ERR_INTERNAL:
6104  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6105  break;
6106  default:
6107  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6108  break;
6109  }
6110 
6111 
6112  exit(rc);
6113  }
6114  #endif
6115 
6116  /* Initialise message sync composite params as NULL */
6118 
6120  #ifdef ERRCHECK
6121  if (rc != MB_SUCCESS)
6122  {
6123  fprintf(stderr, "ERROR: Could not create 'firm_household_wage_payment' board\n");
6124  switch(rc) {
6125  case MB_ERR_INVALID:
6126  fprintf(stderr, "\t reason: Invalid message size\n");
6127  break;
6128  case MB_ERR_MEMALLOC:
6129  fprintf(stderr, "\t reason: out of memory\n");
6130  break;
6131  case MB_ERR_INTERNAL:
6132  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6133  break;
6134  default:
6135  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6136  break;
6137  }
6138 
6139 
6140  exit(rc);
6141  }
6142  #endif
6143 
6144  /* Initialise message sync composite params as NULL */
6146 
6147  rc = MB_Create(&b_firm_bank_loan_request_1, sizeof(m_firm_bank_loan_request_1));
6148  #ifdef ERRCHECK
6149  if (rc != MB_SUCCESS)
6150  {
6151  fprintf(stderr, "ERROR: Could not create 'firm_bank_loan_request_1' board\n");
6152  switch(rc) {
6153  case MB_ERR_INVALID:
6154  fprintf(stderr, "\t reason: Invalid message size\n");
6155  break;
6156  case MB_ERR_MEMALLOC:
6157  fprintf(stderr, "\t reason: out of memory\n");
6158  break;
6159  case MB_ERR_INTERNAL:
6160  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6161  break;
6162  default:
6163  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6164  break;
6165  }
6166 
6167 
6168  exit(rc);
6169  }
6170  #endif
6171 
6172  /* Initialise message sync composite params as NULL */
6174 
6175  rc = MB_Create(&b_firm_bank_loan_request_2, sizeof(m_firm_bank_loan_request_2));
6176  #ifdef ERRCHECK
6177  if (rc != MB_SUCCESS)
6178  {
6179  fprintf(stderr, "ERROR: Could not create 'firm_bank_loan_request_2' board\n");
6180  switch(rc) {
6181  case MB_ERR_INVALID:
6182  fprintf(stderr, "\t reason: Invalid message size\n");
6183  break;
6184  case MB_ERR_MEMALLOC:
6185  fprintf(stderr, "\t reason: out of memory\n");
6186  break;
6187  case MB_ERR_INTERNAL:
6188  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6189  break;
6190  default:
6191  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6192  break;
6193  }
6194 
6195 
6196  exit(rc);
6197  }
6198  #endif
6199 
6200  /* Initialise message sync composite params as NULL */
6202 
6204  #ifdef ERRCHECK
6205  if (rc != MB_SUCCESS)
6206  {
6207  fprintf(stderr, "ERROR: Could not create 'bank_firm_loan_acknowledge_1' board\n");
6208  switch(rc) {
6209  case MB_ERR_INVALID:
6210  fprintf(stderr, "\t reason: Invalid message size\n");
6211  break;
6212  case MB_ERR_MEMALLOC:
6213  fprintf(stderr, "\t reason: out of memory\n");
6214  break;
6215  case MB_ERR_INTERNAL:
6216  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6217  break;
6218  default:
6219  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6220  break;
6221  }
6222 
6223 
6224  exit(rc);
6225  }
6226  #endif
6227 
6228  /* Initialise message sync composite params as NULL */
6230 
6232  #ifdef ERRCHECK
6233  if (rc != MB_SUCCESS)
6234  {
6235  fprintf(stderr, "ERROR: Could not create 'bank_firm_loan_acknowledge_2' board\n");
6236  switch(rc) {
6237  case MB_ERR_INVALID:
6238  fprintf(stderr, "\t reason: Invalid message size\n");
6239  break;
6240  case MB_ERR_MEMALLOC:
6241  fprintf(stderr, "\t reason: out of memory\n");
6242  break;
6243  case MB_ERR_INTERNAL:
6244  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6245  break;
6246  default:
6247  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6248  break;
6249  }
6250 
6251 
6252  exit(rc);
6253  }
6254  #endif
6255 
6256  /* Initialise message sync composite params as NULL */
6258 
6260  #ifdef ERRCHECK
6261  if (rc != MB_SUCCESS)
6262  {
6263  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_debt_request' board\n");
6264  switch(rc) {
6265  case MB_ERR_INVALID:
6266  fprintf(stderr, "\t reason: Invalid message size\n");
6267  break;
6268  case MB_ERR_MEMALLOC:
6269  fprintf(stderr, "\t reason: out of memory\n");
6270  break;
6271  case MB_ERR_INTERNAL:
6272  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6273  break;
6274  default:
6275  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6276  break;
6277  }
6278 
6279 
6280  exit(rc);
6281  }
6282  #endif
6283 
6284  /* Initialise message sync composite params as NULL */
6286 
6287  rc = MB_Create(&b_household_share, sizeof(m_household_share));
6288  #ifdef ERRCHECK
6289  if (rc != MB_SUCCESS)
6290  {
6291  fprintf(stderr, "ERROR: Could not create 'household_share' board\n");
6292  switch(rc) {
6293  case MB_ERR_INVALID:
6294  fprintf(stderr, "\t reason: Invalid message size\n");
6295  break;
6296  case MB_ERR_MEMALLOC:
6297  fprintf(stderr, "\t reason: out of memory\n");
6298  break;
6299  case MB_ERR_INTERNAL:
6300  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6301  break;
6302  default:
6303  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6304  break;
6305  }
6306 
6307 
6308  exit(rc);
6309  }
6310  #endif
6311 
6312  /* Initialise message sync composite params as NULL */
6314 
6315  rc = MB_Create(&b_capital_tax, sizeof(m_capital_tax));
6316  #ifdef ERRCHECK
6317  if (rc != MB_SUCCESS)
6318  {
6319  fprintf(stderr, "ERROR: Could not create 'capital_tax' board\n");
6320  switch(rc) {
6321  case MB_ERR_INVALID:
6322  fprintf(stderr, "\t reason: Invalid message size\n");
6323  break;
6324  case MB_ERR_MEMALLOC:
6325  fprintf(stderr, "\t reason: out of memory\n");
6326  break;
6327  case MB_ERR_INTERNAL:
6328  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6329  break;
6330  default:
6331  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6332  break;
6333  }
6334 
6335 
6336  exit(rc);
6337  }
6338  #endif
6339 
6340  /* Initialise message sync composite params as NULL */
6342 
6343  rc = MB_Create(&b_labour_tax, sizeof(m_labour_tax));
6344  #ifdef ERRCHECK
6345  if (rc != MB_SUCCESS)
6346  {
6347  fprintf(stderr, "ERROR: Could not create 'labour_tax' board\n");
6348  switch(rc) {
6349  case MB_ERR_INVALID:
6350  fprintf(stderr, "\t reason: Invalid message size\n");
6351  break;
6352  case MB_ERR_MEMALLOC:
6353  fprintf(stderr, "\t reason: out of memory\n");
6354  break;
6355  case MB_ERR_INTERNAL:
6356  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6357  break;
6358  default:
6359  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6360  break;
6361  }
6362 
6363 
6364  exit(rc);
6365  }
6366  #endif
6367 
6368  /* Initialise message sync composite params as NULL */
6370 
6371  rc = MB_Create(&b_unemployment_benefit, sizeof(m_unemployment_benefit));
6372  #ifdef ERRCHECK
6373  if (rc != MB_SUCCESS)
6374  {
6375  fprintf(stderr, "ERROR: Could not create 'unemployment_benefit' board\n");
6376  switch(rc) {
6377  case MB_ERR_INVALID:
6378  fprintf(stderr, "\t reason: Invalid message size\n");
6379  break;
6380  case MB_ERR_MEMALLOC:
6381  fprintf(stderr, "\t reason: out of memory\n");
6382  break;
6383  case MB_ERR_INTERNAL:
6384  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6385  break;
6386  default:
6387  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6388  break;
6389  }
6390 
6391 
6392  exit(rc);
6393  }
6394  #endif
6395 
6396  /* Initialise message sync composite params as NULL */
6398 
6399  rc = MB_Create(&b_general_benefit, sizeof(m_general_benefit));
6400  #ifdef ERRCHECK
6401  if (rc != MB_SUCCESS)
6402  {
6403  fprintf(stderr, "ERROR: Could not create 'general_benefit' board\n");
6404  switch(rc) {
6405  case MB_ERR_INVALID:
6406  fprintf(stderr, "\t reason: Invalid message size\n");
6407  break;
6408  case MB_ERR_MEMALLOC:
6409  fprintf(stderr, "\t reason: out of memory\n");
6410  break;
6411  case MB_ERR_INTERNAL:
6412  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6413  break;
6414  default:
6415  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6416  break;
6417  }
6418 
6419 
6420  exit(rc);
6421  }
6422  #endif
6423 
6424  /* Initialise message sync composite params as NULL */
6426 
6427  rc = MB_Create(&b_fund_request, sizeof(m_fund_request));
6428  #ifdef ERRCHECK
6429  if (rc != MB_SUCCESS)
6430  {
6431  fprintf(stderr, "ERROR: Could not create 'fund_request' board\n");
6432  switch(rc) {
6433  case MB_ERR_INVALID:
6434  fprintf(stderr, "\t reason: Invalid message size\n");
6435  break;
6436  case MB_ERR_MEMALLOC:
6437  fprintf(stderr, "\t reason: out of memory\n");
6438  break;
6439  case MB_ERR_INTERNAL:
6440  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6441  break;
6442  default:
6443  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6444  break;
6445  }
6446 
6447 
6448  exit(rc);
6449  }
6450  #endif
6451 
6452  /* Initialise message sync composite params as NULL */
6454 
6455  rc = MB_Create(&b_fund_request_ack, sizeof(m_fund_request_ack));
6456  #ifdef ERRCHECK
6457  if (rc != MB_SUCCESS)
6458  {
6459  fprintf(stderr, "ERROR: Could not create 'fund_request_ack' board\n");
6460  switch(rc) {
6461  case MB_ERR_INVALID:
6462  fprintf(stderr, "\t reason: Invalid message size\n");
6463  break;
6464  case MB_ERR_MEMALLOC:
6465  fprintf(stderr, "\t reason: out of memory\n");
6466  break;
6467  case MB_ERR_INTERNAL:
6468  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6469  break;
6470  default:
6471  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6472  break;
6473  }
6474 
6475 
6476  exit(rc);
6477  }
6478  #endif
6479 
6480  /* Initialise message sync composite params as NULL */
6482 
6483  rc = MB_Create(&b_new_entrant_loan, sizeof(m_new_entrant_loan));
6484  #ifdef ERRCHECK
6485  if (rc != MB_SUCCESS)
6486  {
6487  fprintf(stderr, "ERROR: Could not create 'new_entrant_loan' board\n");
6488  switch(rc) {
6489  case MB_ERR_INVALID:
6490  fprintf(stderr, "\t reason: Invalid message size\n");
6491  break;
6492  case MB_ERR_MEMALLOC:
6493  fprintf(stderr, "\t reason: out of memory\n");
6494  break;
6495  case MB_ERR_INTERNAL:
6496  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6497  break;
6498  default:
6499  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6500  break;
6501  }
6502 
6503 
6504  exit(rc);
6505  }
6506  #endif
6507 
6508  /* Initialise message sync composite params as NULL */
6510 
6512  #ifdef ERRCHECK
6513  if (rc != MB_SUCCESS)
6514  {
6515  fprintf(stderr, "ERROR: Could not create 'firm_bank_interest_on_loan' board\n");
6516  switch(rc) {
6517  case MB_ERR_INVALID:
6518  fprintf(stderr, "\t reason: Invalid message size\n");
6519  break;
6520  case MB_ERR_MEMALLOC:
6521  fprintf(stderr, "\t reason: out of memory\n");
6522  break;
6523  case MB_ERR_INTERNAL:
6524  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6525  break;
6526  default:
6527  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6528  break;
6529  }
6530 
6531 
6532  exit(rc);
6533  }
6534  #endif
6535 
6536  /* Initialise message sync composite params as NULL */
6538 
6539  rc = MB_Create(&b_loan_writeoff, sizeof(m_loan_writeoff));
6540  #ifdef ERRCHECK
6541  if (rc != MB_SUCCESS)
6542  {
6543  fprintf(stderr, "ERROR: Could not create 'loan_writeoff' board\n");
6544  switch(rc) {
6545  case MB_ERR_INVALID:
6546  fprintf(stderr, "\t reason: Invalid message size\n");
6547  break;
6548  case MB_ERR_MEMALLOC:
6549  fprintf(stderr, "\t reason: out of memory\n");
6550  break;
6551  case MB_ERR_INTERNAL:
6552  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6553  break;
6554  default:
6555  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6556  break;
6557  }
6558 
6559 
6560  exit(rc);
6561  }
6562  #endif
6563 
6564  /* Initialise message sync composite params as NULL */
6566 
6568  #ifdef ERRCHECK
6569  if (rc != MB_SUCCESS)
6570  {
6571  fprintf(stderr, "ERROR: Could not create 'firm_bank_insolvent_account' board\n");
6572  switch(rc) {
6573  case MB_ERR_INVALID:
6574  fprintf(stderr, "\t reason: Invalid message size\n");
6575  break;
6576  case MB_ERR_MEMALLOC:
6577  fprintf(stderr, "\t reason: out of memory\n");
6578  break;
6579  case MB_ERR_INTERNAL:
6580  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6581  break;
6582  default:
6583  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6584  break;
6585  }
6586 
6587 
6588  exit(rc);
6589  }
6590  #endif
6591 
6592  /* Initialise message sync composite params as NULL */
6594 
6595  rc = MB_Create(&b_firm_net_profit, sizeof(m_firm_net_profit));
6596  #ifdef ERRCHECK
6597  if (rc != MB_SUCCESS)
6598  {
6599  fprintf(stderr, "ERROR: Could not create 'firm_net_profit' board\n");
6600  switch(rc) {
6601  case MB_ERR_INVALID:
6602  fprintf(stderr, "\t reason: Invalid message size\n");
6603  break;
6604  case MB_ERR_MEMALLOC:
6605  fprintf(stderr, "\t reason: out of memory\n");
6606  break;
6607  case MB_ERR_INTERNAL:
6608  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6609  break;
6610  default:
6611  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6612  break;
6613  }
6614 
6615 
6616  exit(rc);
6617  }
6618  #endif
6619 
6620  /* Initialise message sync composite params as NULL */
6622 
6623  rc = MB_Create(&b_bank_net_profit, sizeof(m_bank_net_profit));
6624  #ifdef ERRCHECK
6625  if (rc != MB_SUCCESS)
6626  {
6627  fprintf(stderr, "ERROR: Could not create 'bank_net_profit' board\n");
6628  switch(rc) {
6629  case MB_ERR_INVALID:
6630  fprintf(stderr, "\t reason: Invalid message size\n");
6631  break;
6632  case MB_ERR_MEMALLOC:
6633  fprintf(stderr, "\t reason: out of memory\n");
6634  break;
6635  case MB_ERR_INTERNAL:
6636  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6637  break;
6638  default:
6639  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6640  break;
6641  }
6642 
6643 
6644  exit(rc);
6645  }
6646  #endif
6647 
6648  /* Initialise message sync composite params as NULL */
6650 
6652  #ifdef ERRCHECK
6653  if (rc != MB_SUCCESS)
6654  {
6655  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_interest_payment' board\n");
6656  switch(rc) {
6657  case MB_ERR_INVALID:
6658  fprintf(stderr, "\t reason: Invalid message size\n");
6659  break;
6660  case MB_ERR_MEMALLOC:
6661  fprintf(stderr, "\t reason: out of memory\n");
6662  break;
6663  case MB_ERR_INTERNAL:
6664  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6665  break;
6666  default:
6667  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6668  break;
6669  }
6670 
6671 
6672  exit(rc);
6673  }
6674  #endif
6675 
6676  /* Initialise message sync composite params as NULL */
6678 
6680  #ifdef ERRCHECK
6681  if (rc != MB_SUCCESS)
6682  {
6683  fprintf(stderr, "ERROR: Could not create 'bank_centralbank_debt_payment' board\n");
6684  switch(rc) {
6685  case MB_ERR_INVALID:
6686  fprintf(stderr, "\t reason: Invalid message size\n");
6687  break;
6688  case MB_ERR_MEMALLOC:
6689  fprintf(stderr, "\t reason: out of memory\n");
6690  break;
6691  case MB_ERR_INTERNAL:
6692  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6693  break;
6694  default:
6695  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6696  break;
6697  }
6698 
6699 
6700  exit(rc);
6701  }
6702  #endif
6703 
6704  /* Initialise message sync composite params as NULL */
6706 
6708  #ifdef ERRCHECK
6709  if (rc != MB_SUCCESS)
6710  {
6711  fprintf(stderr, "ERROR: Could not create 'gov_centralbank_debt_request' board\n");
6712  switch(rc) {
6713  case MB_ERR_INVALID:
6714  fprintf(stderr, "\t reason: Invalid message size\n");
6715  break;
6716  case MB_ERR_MEMALLOC:
6717  fprintf(stderr, "\t reason: out of memory\n");
6718  break;
6719  case MB_ERR_INTERNAL:
6720  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6721  break;
6722  default:
6723  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6724  break;
6725  }
6726 
6727 
6728  exit(rc);
6729  }
6730  #endif
6731 
6732  /* Initialise message sync composite params as NULL */
6734 
6736  #ifdef ERRCHECK
6737  if (rc != MB_SUCCESS)
6738  {
6739  fprintf(stderr, "ERROR: Could not create 'gov_centralbank_debt_payment' board\n");
6740  switch(rc) {
6741  case MB_ERR_INVALID:
6742  fprintf(stderr, "\t reason: Invalid message size\n");
6743  break;
6744  case MB_ERR_MEMALLOC:
6745  fprintf(stderr, "\t reason: out of memory\n");
6746  break;
6747  case MB_ERR_INTERNAL:
6748  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6749  break;
6750  default:
6751  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6752  break;
6753  }
6754 
6755 
6756  exit(rc);
6757  }
6758  #endif
6759 
6760  /* Initialise message sync composite params as NULL */
6762 
6764  #ifdef ERRCHECK
6765  if (rc != MB_SUCCESS)
6766  {
6767  fprintf(stderr, "ERROR: Could not create 'centralbank_government_profit' board\n");
6768  switch(rc) {
6769  case MB_ERR_INVALID:
6770  fprintf(stderr, "\t reason: Invalid message size\n");
6771  break;
6772  case MB_ERR_MEMALLOC:
6773  fprintf(stderr, "\t reason: out of memory\n");
6774  break;
6775  case MB_ERR_INTERNAL:
6776  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6777  break;
6778  default:
6779  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6780  break;
6781  }
6782 
6783 
6784  exit(rc);
6785  }
6786  #endif
6787 
6788  /* Initialise message sync composite params as NULL */
6790 
6791  rc = MB_Create(&b_housing_price, sizeof(m_housing_price));
6792  #ifdef ERRCHECK
6793  if (rc != MB_SUCCESS)
6794  {
6795  fprintf(stderr, "ERROR: Could not create 'housing_price' board\n");
6796  switch(rc) {
6797  case MB_ERR_INVALID:
6798  fprintf(stderr, "\t reason: Invalid message size\n");
6799  break;
6800  case MB_ERR_MEMALLOC:
6801  fprintf(stderr, "\t reason: out of memory\n");
6802  break;
6803  case MB_ERR_INTERNAL:
6804  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6805  break;
6806  default:
6807  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6808  break;
6809  }
6810 
6811 
6812  exit(rc);
6813  }
6814  #endif
6815 
6816  /* Initialise message sync composite params as NULL */
6818 
6819  rc = MB_Create(&b_buy_housing, sizeof(m_buy_housing));
6820  #ifdef ERRCHECK
6821  if (rc != MB_SUCCESS)
6822  {
6823  fprintf(stderr, "ERROR: Could not create 'buy_housing' board\n");
6824  switch(rc) {
6825  case MB_ERR_INVALID:
6826  fprintf(stderr, "\t reason: Invalid message size\n");
6827  break;
6828  case MB_ERR_MEMALLOC:
6829  fprintf(stderr, "\t reason: out of memory\n");
6830  break;
6831  case MB_ERR_INTERNAL:
6832  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6833  break;
6834  default:
6835  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6836  break;
6837  }
6838 
6839 
6840  exit(rc);
6841  }
6842  #endif
6843 
6844  /* Initialise message sync composite params as NULL */
6846 
6847  rc = MB_Create(&b_sell_housing, sizeof(m_sell_housing));
6848  #ifdef ERRCHECK
6849  if (rc != MB_SUCCESS)
6850  {
6851  fprintf(stderr, "ERROR: Could not create 'sell_housing' board\n");
6852  switch(rc) {
6853  case MB_ERR_INVALID:
6854  fprintf(stderr, "\t reason: Invalid message size\n");
6855  break;
6856  case MB_ERR_MEMALLOC:
6857  fprintf(stderr, "\t reason: out of memory\n");
6858  break;
6859  case MB_ERR_INTERNAL:
6860  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6861  break;
6862  default:
6863  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6864  break;
6865  }
6866 
6867 
6868  exit(rc);
6869  }
6870  #endif
6871 
6872  /* Initialise message sync composite params as NULL */
6874 
6875  rc = MB_Create(&b_bought_housing, sizeof(m_bought_housing));
6876  #ifdef ERRCHECK
6877  if (rc != MB_SUCCESS)
6878  {
6879  fprintf(stderr, "ERROR: Could not create 'bought_housing' board\n");
6880  switch(rc) {
6881  case MB_ERR_INVALID:
6882  fprintf(stderr, "\t reason: Invalid message size\n");
6883  break;
6884  case MB_ERR_MEMALLOC:
6885  fprintf(stderr, "\t reason: out of memory\n");
6886  break;
6887  case MB_ERR_INTERNAL:
6888  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6889  break;
6890  default:
6891  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6892  break;
6893  }
6894 
6895 
6896  exit(rc);
6897  }
6898  #endif
6899 
6900  /* Initialise message sync composite params as NULL */
6902 
6903  rc = MB_Create(&b_sold_housing, sizeof(m_sold_housing));
6904  #ifdef ERRCHECK
6905  if (rc != MB_SUCCESS)
6906  {
6907  fprintf(stderr, "ERROR: Could not create 'sold_housing' board\n");
6908  switch(rc) {
6909  case MB_ERR_INVALID:
6910  fprintf(stderr, "\t reason: Invalid message size\n");
6911  break;
6912  case MB_ERR_MEMALLOC:
6913  fprintf(stderr, "\t reason: out of memory\n");
6914  break;
6915  case MB_ERR_INTERNAL:
6916  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6917  break;
6918  default:
6919  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6920  break;
6921  }
6922 
6923 
6924  exit(rc);
6925  }
6926  #endif
6927 
6928  /* Initialise message sync composite params as NULL */
6930 
6931  rc = MB_Create(&b_bank_reagency_credibility, sizeof(m_bank_reagency_credibility));
6932  #ifdef ERRCHECK
6933  if (rc != MB_SUCCESS)
6934  {
6935  fprintf(stderr, "ERROR: Could not create 'bank_reagency_credibility' board\n");
6936  switch(rc) {
6937  case MB_ERR_INVALID:
6938  fprintf(stderr, "\t reason: Invalid message size\n");
6939  break;
6940  case MB_ERR_MEMALLOC:
6941  fprintf(stderr, "\t reason: out of memory\n");
6942  break;
6943  case MB_ERR_INTERNAL:
6944  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6945  break;
6946  default:
6947  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6948  break;
6949  }
6950 
6951 
6952  exit(rc);
6953  }
6954  #endif
6955 
6956  /* Initialise message sync composite params as NULL */
6958 
6959  rc = MB_Create(&b_mortgage_requests, sizeof(m_mortgage_requests));
6960  #ifdef ERRCHECK
6961  if (rc != MB_SUCCESS)
6962  {
6963  fprintf(stderr, "ERROR: Could not create 'mortgage_requests' board\n");
6964  switch(rc) {
6965  case MB_ERR_INVALID:
6966  fprintf(stderr, "\t reason: Invalid message size\n");
6967  break;
6968  case MB_ERR_MEMALLOC:
6969  fprintf(stderr, "\t reason: out of memory\n");
6970  break;
6971  case MB_ERR_INTERNAL:
6972  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6973  break;
6974  default:
6975  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
6976  break;
6977  }
6978 
6979 
6980  exit(rc);
6981  }
6982  #endif
6983 
6984  /* Initialise message sync composite params as NULL */
6986 
6988  #ifdef ERRCHECK
6989  if (rc != MB_SUCCESS)
6990  {
6991  fprintf(stderr, "ERROR: Could not create 'mortgage_payment_from_sale' board\n");
6992  switch(rc) {
6993  case MB_ERR_INVALID:
6994  fprintf(stderr, "\t reason: Invalid message size\n");
6995  break;
6996  case MB_ERR_MEMALLOC:
6997  fprintf(stderr, "\t reason: out of memory\n");
6998  break;
6999  case MB_ERR_INTERNAL:
7000  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7001  break;
7002  default:
7003  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
7004  break;
7005  }
7006 
7007 
7008  exit(rc);
7009  }
7010  #endif
7011 
7012  /* Initialise message sync composite params as NULL */
7014 
7015  rc = MB_Create(&b_mortgage_payment, sizeof(m_mortgage_payment));
7016  #ifdef ERRCHECK
7017  if (rc != MB_SUCCESS)
7018  {
7019  fprintf(stderr, "ERROR: Could not create 'mortgage_payment' board\n");
7020  switch(rc) {
7021  case MB_ERR_INVALID:
7022  fprintf(stderr, "\t reason: Invalid message size\n");
7023  break;
7024  case MB_ERR_MEMALLOC:
7025  fprintf(stderr, "\t reason: out of memory\n");
7026  break;
7027  case MB_ERR_INTERNAL:
7028  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7029  break;
7030  default:
7031  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
7032  break;
7033  }
7034 
7035 
7036  exit(rc);
7037  }
7038  #endif
7039 
7040  /* Initialise message sync composite params as NULL */
7042 
7043  rc = MB_Create(&b_mortgage_writeoff, sizeof(m_mortgage_writeoff));
7044  #ifdef ERRCHECK
7045  if (rc != MB_SUCCESS)
7046  {
7047  fprintf(stderr, "ERROR: Could not create 'mortgage_writeoff' board\n");
7048  switch(rc) {
7049  case MB_ERR_INVALID:
7050  fprintf(stderr, "\t reason: Invalid message size\n");
7051  break;
7052  case MB_ERR_MEMALLOC:
7053  fprintf(stderr, "\t reason: out of memory\n");
7054  break;
7055  case MB_ERR_INTERNAL:
7056  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7057  break;
7058  default:
7059  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
7060  break;
7061  }
7062 
7063 
7064  exit(rc);
7065  }
7066  #endif
7067 
7068  /* Initialise message sync composite params as NULL */
7070 
7072  #ifdef ERRCHECK
7073  if (rc != MB_SUCCESS)
7074  {
7075  fprintf(stderr, "ERROR: Could not create 'housing_transactions_summary' board\n");
7076  switch(rc) {
7077  case MB_ERR_INVALID:
7078  fprintf(stderr, "\t reason: Invalid message size\n");
7079  break;
7080  case MB_ERR_MEMALLOC:
7081  fprintf(stderr, "\t reason: out of memory\n");
7082  break;
7083  case MB_ERR_INTERNAL:
7084  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7085  break;
7086  default:
7087  fprintf(stderr, "\t MB_Create returned error code: %d (see libmboard docs for details)\n", rc);
7088  break;
7089  }
7090 
7091 
7092  exit(rc);
7093  }
7094  #endif
7095 
7097 
7099 
7101 
7103 
7105 
7107 
7109 
7111 
7113 
7115 
7117 
7119 
7121 
7123 
7125 
7127 
7129 
7131 
7133 
7135 
7137 
7139 
7141 
7143 
7145 
7147 
7149 
7151 
7153 
7155 
7157 
7159 
7161 
7163 
7165 
7167 
7169 
7171 
7173 
7175 
7177 
7179 
7181 
7183 
7185 
7187 
7189 
7191 
7193 
7195 
7197 
7199 
7201 
7203 
7205 
7207 
7209 
7211 
7213 
7215 
7217 
7219 
7221 
7223 
7225 
7227 
7229 
7231 
7233 
7235 
7237 
7239 
7241 
7243 
7245 
7247 
7249 
7251 
7253 
7255 
7257 
7259 
7261 
7263 
7265 
7267 
7269 
7271 
7273 
7275 
7277 
7279 
7281 
7283 
7285 
7287 
7289 
7291 
7293 
7295 
7297 
7299 
7301 
7303 
7305 
7307 
7309 
7311 
7313 
7315 
7317 
7319 
7321 
7323 
7325 
7327 
7329 
7331 
7333 
7335 
7337 
7339 
7341 
7343 
7345 
7347 
7349 
7351 
7353 
7355 
7357 
7359 
7361 
7363 
7365 
7367 
7369 
7371 
7373 
7375 
7377 
7379 
7381 
7383 
7385 
7387 
7389 
7391 
7393 
7395 
7397 
7399 
7401 
7403 
7404  temp_node_info = NULL;
7406 }
7407 
7412 {
7413  int rc;
7414 
7415  rc = MB_Env_Init();
7416  #ifdef ERRCHECK
7417  if (rc != MB_SUCCESS)
7418  {
7419  fprintf(stderr, "ERROR: Failed to initialise Message Board environment\n");
7420  switch(rc) {
7421  case MB_ERR_MPI:
7422  fprintf(stderr, "\t reason: MPI library not initialised\n");
7423  break;
7424  case MB_ERR_MEMALLOC:
7425  fprintf(stderr, "\t reason: out of memory\n");
7426  break;
7427  default:
7428  fprintf(stderr, "\t MB_Env_Init returned error code: %d (see libmboard docs for details)\n", rc);
7429  break;
7430  }
7431 
7432 
7433  exit(rc);
7434 
7435  }
7436  #endif
7437 
7439 }
7440 
7442 {
7443  FLAME_output * current;
7444 
7445  current = (FLAME_output *)malloc(sizeof(FLAME_output));
7446  CHECK_POINTER(current);
7447  current->next = *outputs;
7448  *outputs = current;
7449 
7450  current->type = -1;
7451  current->format = -1;
7452  current->location = NULL;
7453  current->period = -1;
7454  current->phase = -1;
7455  current->flag = 0;
7456 
7457  return current;
7458 }
7459 
7461 {
7462  FLAME_output * current, * next;
7463 
7464  current = *outputs;
7465  while(current)
7466  {
7467  next = current->next;
7468  free(current->location);
7469  free(current);
7470  current = next;
7471  }
7472  *outputs = NULL;
7473 }
7474 
7475 /* add_location */
7481 void add_location(double point, location ** p_location)
7482 {
7483  location * current = *p_location;
7484  location * tmp = NULL;
7485  location * newlocation = NULL;
7486  int found = 0;
7487 
7488  while(found == 0)
7489  {
7490  if(current == NULL) found = 1;
7491  else if(point > current->point) found = 1;
7492  else
7493  {
7494  tmp = current;
7495  current = current->next;
7496  }
7497  }
7498 
7499  newlocation = (location *)malloc(sizeof(location));
7500  CHECK_POINTER(newlocation);
7501  if(tmp)
7502  {
7503  tmp->next = newlocation;
7504  }
7505  else
7506  {
7507  *p_location = newlocation;
7508  }
7509 
7510  newlocation->next = current;
7511  newlocation->point = point;
7512 }
7513 
7514 /* freelocations */
7519 void freelocations(location ** p_location)
7520 {
7521  location * head = *p_location;
7522  location * tmp = NULL;
7523 
7524  while(head)
7525  {
7526  tmp = head->next;
7527  free(head);
7528  head = tmp;
7529  }
7530 
7531  *p_location = NULL;
7532 }
7533 
7534 void init_int_static_array(/*@out@*/ int * array, int size)
7535 {
7536  int i;
7537 
7538  for(i = 0; i < size; i++) array[i] = 0;
7539 }
7540 
7541 void init_float_static_array(/*@out@*/ float * array, int size)
7542 {
7543  int i;
7544 
7545  for(i = 0; i < size; i++) array[i] = 0.0;
7546 }
7547 
7548 void init_double_static_array(/*@out@*/ double* array, int size)
7549 {
7550  int i;
7551 
7552  for(i = 0; i < size; i++) array[i] = 0.0;
7553 }
7554 
7555 void init_char_static_array(/*@out@*/ char * array, int size)
7556 {
7557  int i;
7558 
7559  for(i = 0; i < size; i++) array[i] = '\0';
7560 }
7561 
7562 
7563 
7564 void init_transaction(/*@out@*/ transaction * temp)
7565 {
7566  (*temp).quantity = 0;
7567  (*temp).avg_price = 0.0;
7568 
7569 }
7570 
7571 void init_transaction_static_array(/*@out@*/ transaction * array, int size)
7572 {
7573  int i;
7574 
7575  for(i = 0; i < size; i++) init_transaction(&array[i]);
7576 }
7577 
7579 {
7580 
7581 }
7582 
7584 {
7585  int i;
7586 
7587  for(i = 0; i < size; i++) free_transaction(&array[i]);
7588 }
7589 
7591 {
7592  (*to).quantity = (*from).quantity;
7593  (*to).avg_price = (*from).avg_price;
7594 }
7595 
7597 {
7598  int i;
7599 
7600  for(i = 0; i < size; i++)
7601  {
7602  copy_transaction(&from[i], &to[i]);
7603  }
7604 }
7605 
7606 
7607 void init_buyer(/*@out@*/ buyer * temp)
7608 {
7609  (*temp).id = 0;
7610  (*temp).budget = 0.0;
7611 
7612 }
7613 
7614 void init_buyer_static_array(/*@out@*/ buyer * array, int size)
7615 {
7616  int i;
7617 
7618  for(i = 0; i < size; i++) init_buyer(&array[i]);
7619 }
7620 
7621 void free_buyer(buyer * temp)
7622 {
7623 
7624 }
7625 
7626 void free_buyer_static_array(buyer * array, int size)
7627 {
7628  int i;
7629 
7630  for(i = 0; i < size; i++) free_buyer(&array[i]);
7631 }
7632 
7633 void copy_buyer(buyer * from, buyer * to)
7634 {
7635  (*to).id = (*from).id;
7636  (*to).budget = (*from).budget;
7637 }
7638 
7639 void copy_buyer_static_array(buyer * from, buyer * to, int size)
7640 {
7641  int i;
7642 
7643  for(i = 0; i < size; i++)
7644  {
7645  copy_buyer(&from[i], &to[i]);
7646  }
7647 }
7648 
7649 
7650 void init_seller(/*@out@*/ seller * temp)
7651 {
7652  (*temp).id = 0;
7653  (*temp).price = 0.0;
7654  (*temp).inventory = 0;
7655  (*temp).inv_price = 0.0;
7656 
7657 }
7658 
7659 void init_seller_static_array(/*@out@*/ seller * array, int size)
7660 {
7661  int i;
7662 
7663  for(i = 0; i < size; i++) init_seller(&array[i]);
7664 }
7665 
7666 void free_seller(seller * temp)
7667 {
7668 
7669 }
7670 
7671 void free_seller_static_array(seller * array, int size)
7672 {
7673  int i;
7674 
7675  for(i = 0; i < size; i++) free_seller(&array[i]);
7676 }
7677 
7678 void copy_seller(seller * from, seller * to)
7679 {
7680  (*to).id = (*from).id;
7681  (*to).price = (*from).price;
7682  (*to).inventory = (*from).inventory;
7683  (*to).inv_price = (*from).inv_price;
7684 }
7685 
7686 void copy_seller_static_array(seller * from, seller * to, int size)
7687 {
7688  int i;
7689 
7690  for(i = 0; i < size; i++)
7691  {
7692  copy_seller(&from[i], &to[i]);
7693  }
7694 }
7695 
7696 
7697 void init_vacancy(/*@out@*/ vacancy * temp)
7698 {
7699  (*temp).id = 0;
7700  (*temp).wage = 0.0;
7701 
7702 }
7703 
7704 void init_vacancy_static_array(/*@out@*/ vacancy * array, int size)
7705 {
7706  int i;
7707 
7708  for(i = 0; i < size; i++) init_vacancy(&array[i]);
7709 }
7710 
7711 void free_vacancy(vacancy * temp)
7712 {
7713 
7714 }
7715 
7716 void free_vacancy_static_array(vacancy * array, int size)
7717 {
7718  int i;
7719 
7720  for(i = 0; i < size; i++) free_vacancy(&array[i]);
7721 }
7722 
7723 void copy_vacancy(vacancy * from, vacancy * to)
7724 {
7725  (*to).id = (*from).id;
7726  (*to).wage = (*from).wage;
7727 }
7728 
7729 void copy_vacancy_static_array(vacancy * from, vacancy * to, int size)
7730 {
7731  int i;
7732 
7733  for(i = 0; i < size; i++)
7734  {
7735  copy_vacancy(&from[i], &to[i]);
7736  }
7737 }
7738 
7739 
7740 void init_employee(/*@out@*/ employee * temp)
7741 {
7742  (*temp).id = 0;
7743  (*temp).wage = 0.0;
7744 
7745 }
7746 
7747 void init_employee_static_array(/*@out@*/ employee * array, int size)
7748 {
7749  int i;
7750 
7751  for(i = 0; i < size; i++) init_employee(&array[i]);
7752 }
7753 
7755 {
7756 
7757 }
7758 
7759 void free_employee_static_array(employee * array, int size)
7760 {
7761  int i;
7762 
7763  for(i = 0; i < size; i++) free_employee(&array[i]);
7764 }
7765 
7766 void copy_employee(employee * from, employee * to)
7767 {
7768  (*to).id = (*from).id;
7769  (*to).wage = (*from).wage;
7770 }
7771 
7772 void copy_employee_static_array(employee * from, employee * to, int size)
7773 {
7774  int i;
7775 
7776  for(i = 0; i < size; i++)
7777  {
7778  copy_employee(&from[i], &to[i]);
7779  }
7780 }
7781 
7782 
7783 void init_mortgage(/*@out@*/ mortgage * temp)
7784 {
7785  (*temp).bank_id = 0;
7786  (*temp).principal = 0.0;
7787  (*temp).quarters_left = 0;
7788  (*temp).quarterly_interest = 0.0;
7789  (*temp).quarterly_principal = 0.0;
7790  (*temp).interestrate = 0.0;
7791  (*temp).mtype = 0;
7792 
7793 }
7794 
7795 void init_mortgage_static_array(/*@out@*/ mortgage * array, int size)
7796 {
7797  int i;
7798 
7799  for(i = 0; i < size; i++) init_mortgage(&array[i]);
7800 }
7801 
7803 {
7804 
7805 }
7806 
7807 void free_mortgage_static_array(mortgage * array, int size)
7808 {
7809  int i;
7810 
7811  for(i = 0; i < size; i++) free_mortgage(&array[i]);
7812 }
7813 
7814 void copy_mortgage(mortgage * from, mortgage * to)
7815 {
7816  (*to).bank_id = (*from).bank_id;
7817  (*to).principal = (*from).principal;
7818  (*to).quarters_left = (*from).quarters_left;
7819  (*to).quarterly_interest = (*from).quarterly_interest;
7820  (*to).quarterly_principal = (*from).quarterly_principal;
7821  (*to).interestrate = (*from).interestrate;
7822  (*to).mtype = (*from).mtype;
7823 }
7824 
7825 void copy_mortgage_static_array(mortgage * from, mortgage * to, int size)
7826 {
7827  int i;
7828 
7829  for(i = 0; i < size; i++)
7830  {
7831  copy_mortgage(&from[i], &to[i]);
7832  }
7833 }
7834 
7835 
7836 void init_loan(/*@out@*/ loan * temp)
7837 {
7838  (*temp).bank_id = 0;
7839  (*temp).amount = 0.0;
7840  (*temp).to_be_paid = 0.0;
7841 
7842 }
7843 
7844 void init_loan_static_array(/*@out@*/ loan * array, int size)
7845 {
7846  int i;
7847 
7848  for(i = 0; i < size; i++) init_loan(&array[i]);
7849 }
7850 
7851 void free_loan(loan * temp)
7852 {
7853 
7854 }
7855 
7856 void free_loan_static_array(loan * array, int size)
7857 {
7858  int i;
7859 
7860  for(i = 0; i < size; i++) free_loan(&array[i]);
7861 }
7862 
7863 void copy_loan(loan * from, loan * to)
7864 {
7865  (*to).bank_id = (*from).bank_id;
7866  (*to).amount = (*from).amount;
7867  (*to).to_be_paid = (*from).to_be_paid;
7868 }
7869 
7870 void copy_loan_static_array(loan * from, loan * to, int size)
7871 {
7872  int i;
7873 
7874  for(i = 0; i < size; i++)
7875  {
7876  copy_loan(&from[i], &to[i]);
7877  }
7878 }
7879 
7880 
7881 void init_hbuyer(/*@out@*/ hbuyer * temp)
7882 {
7883  (*temp).buyer_id = 0;
7884  (*temp).bank_id = 0;
7885  (*temp).liquidity = 0.0;
7886  (*temp).quarterly_income = 0.0;
7887  (*temp).quarterly_mortgage_paid = 0.0;
7888  (*temp).choice = 0;
7889 
7890 }
7891 
7892 void init_hbuyer_static_array(/*@out@*/ hbuyer * array, int size)
7893 {
7894  int i;
7895 
7896  for(i = 0; i < size; i++) init_hbuyer(&array[i]);
7897 }
7898 
7899 void free_hbuyer(hbuyer * temp)
7900 {
7901 
7902 }
7903 
7904 void free_hbuyer_static_array(hbuyer * array, int size)
7905 {
7906  int i;
7907 
7908  for(i = 0; i < size; i++) free_hbuyer(&array[i]);
7909 }
7910 
7911 void copy_hbuyer(hbuyer * from, hbuyer * to)
7912 {
7913  (*to).buyer_id = (*from).buyer_id;
7914  (*to).bank_id = (*from).bank_id;
7915  (*to).liquidity = (*from).liquidity;
7916  (*to).quarterly_income = (*from).quarterly_income;
7917  (*to).quarterly_mortgage_paid = (*from).quarterly_mortgage_paid;
7918  (*to).choice = (*from).choice;
7919 }
7920 
7921 void copy_hbuyer_static_array(hbuyer * from, hbuyer * to, int size)
7922 {
7923  int i;
7924 
7925  for(i = 0; i < size; i++)
7926  {
7927  copy_hbuyer(&from[i], &to[i]);
7928  }
7929 }
7930 
7931 
7932 void init_hseller(/*@out@*/ hseller * temp)
7933 {
7934  (*temp).seller_id = 0;
7935  (*temp).price = 0.0;
7936  (*temp).quantity = 0;
7937  (*temp).type = 0;
7938 
7939 }
7940 
7941 void init_hseller_static_array(/*@out@*/ hseller * array, int size)
7942 {
7943  int i;
7944 
7945  for(i = 0; i < size; i++) init_hseller(&array[i]);
7946 }
7947 
7948 void free_hseller(hseller * temp)
7949 {
7950 
7951 }
7952 
7953 void free_hseller_static_array(hseller * array, int size)
7954 {
7955  int i;
7956 
7957  for(i = 0; i < size; i++) free_hseller(&array[i]);
7958 }
7959 
7960 void copy_hseller(hseller * from, hseller * to)
7961 {
7962  (*to).seller_id = (*from).seller_id;
7963  (*to).price = (*from).price;
7964  (*to).quantity = (*from).quantity;
7965  (*to).type = (*from).type;
7966 }
7967 
7968 void copy_hseller_static_array(hseller * from, hseller * to, int size)
7969 {
7970  int i;
7971 
7972  for(i = 0; i < size; i++)
7973  {
7974  copy_hseller(&from[i], &to[i]);
7975  }
7976 }
7977 
7978 
7979 void init_hbank(/*@out@*/ hbank * temp)
7980 {
7981  (*temp).id = 0;
7982  (*temp).equity = 0.0;
7983  (*temp).risky_assets = 0.0;
7984  (*temp).amount_mortgaged = 0.0;
7985 
7986 }
7987 
7988 void init_hbank_static_array(/*@out@*/ hbank * array, int size)
7989 {
7990  int i;
7991 
7992  for(i = 0; i < size; i++) init_hbank(&array[i]);
7993 }
7994 
7995 void free_hbank(hbank * temp)
7996 {
7997 
7998 }
7999 
8000 void free_hbank_static_array(hbank * array, int size)
8001 {
8002  int i;
8003 
8004  for(i = 0; i < size; i++) free_hbank(&array[i]);
8005 }
8006 
8007 void copy_hbank(hbank * from, hbank * to)
8008 {
8009  (*to).id = (*from).id;
8010  (*to).equity = (*from).equity;
8011  (*to).risky_assets = (*from).risky_assets;
8012  (*to).amount_mortgaged = (*from).amount_mortgaged;
8013 }
8014 
8015 void copy_hbank_static_array(hbank * from, hbank * to, int size)
8016 {
8017  int i;
8018 
8019  for(i = 0; i < size; i++)
8020  {
8021  copy_hbank(&from[i], &to[i]);
8022  }
8023 }
8024 
8025 
8026 
8028 {
8030  CHECK_POINTER(current);
8031 
8032  current->agents = NULL;
8033  current->count = 0;
8034 
8035  return current;
8036 }
8037 
8039 {
8040  xmachine_memory_firm * current = (xmachine_memory_firm *)malloc(sizeof(xmachine_memory_firm));
8041  CHECK_POINTER(current);
8042 
8043  current->id = 0;
8044  current->bank_id = 0;
8045  current->isconstructor = 0;
8046  current->day_of_month_to_act = 0;
8047  current->isinsolvent = 0;
8048  current->it_no = 0;
8049  current->day_of_week_to_act = 0;
8050  current->average_goods_price = 0.0;
8051  init_int_array(&current->employees);
8052  current->manager = 0;
8053  current->wage_offer = 0.0;
8054  current->average_wage = 0.0;
8055  current->no_employees = 0;
8056  current->vacancies = 0;
8057  current->employees_needed = 0;
8058  current->day_of_month_wages_paid = 0;
8059  current->labour_productivity = 0.0;
8060  current->capital_productivity = 0.0;
8061  current->capital_goods = 0;
8062  current->capital_goods_price = 0.0;
8063  current->production_current = 0;
8064  current->expected_sales = 0;
8065  current->production_plan = 0;
8066  current->unit_goods_price = 0.0;
8067  current->unit_cost = 0.0;
8068  current->day_of_month_production_completed = 0;
8069  current->unit_house_price = 0.0;
8070  init_int_static_array(current->projects, 12);
8071  current->loans_interest_rate = 0.0;
8072  current->debt = 0.0;
8073  current->inventory = 0;
8074  current->sales = 0;
8075  current->revenues = 0.0;
8076  current->total_assets = 0.0;
8077  current->operating_costs = 0.0;
8078  current->labour_costs = 0.0;
8079  current->total_interest_payments = 0.0;
8080  current->dividends_paid = 0.0;
8081  current->dividends_to_be_paid = 0.0;
8082  current->retained_earnings = 0.0;
8083  current->net_earnings = 0.0;
8084  current->ebit = 0.0;
8085  current->equity = 0.0;
8086  current->liquidity = 0.0;
8087  current->isliquidshort = 0;
8088  current->hasloan = 0;
8089  current->hasinvestment = 0;
8090  current->isilliquid = 0;
8091  current->planned_investment_costs = 0.0;
8092  current->liquidity_need = 0.0;
8093  init_loan_static_array(current->loan_list, 2);
8094  current->labour_tax_rate = 0.0;
8095  current->delta_housing_price = 0.0;
8096 
8097  return current;
8098 }
8099 
8101 {
8102  if(tmp->prev == NULL) state->agents = tmp->next;
8103  else tmp->prev->next = tmp->next;
8104  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
8105 
8106  free_int_array(&tmp->agent->employees);
8108 
8109 
8110  free(tmp->agent);
8111  free(tmp);
8112 }
8113 
8115 {
8117  CHECK_POINTER(current);
8118 
8148  current_xmachine_firm->debt = 0.0;
8160  current_xmachine_firm->ebit = 0.0;
8172 
8173 }
8174 
8176 {
8179 
8180  free(current_xmachine_firm);
8181 }
8182 
8184 {
8187  {
8191  }
8195  {
8199  }
8203  {
8207  }
8211  {
8215  }
8219  {
8223  }
8224  firm_end_state->count = 0;
8227  {
8231  }
8235  {
8239  }
8243  {
8247  }
8251  {
8255  }
8259  {
8263  }
8267  {
8271  }
8275  {
8279  }
8283  {
8287  }
8291  {
8295  }
8299  {
8303  }
8307  {
8311  }
8315  {
8319  }
8323  {
8327  }
8331  {
8335  }
8339  {
8343  }
8347  {
8351  }
8355  {
8359  }
8363  {
8367  }
8371  {
8375  }
8379  {
8383  }
8387  {
8391  }
8395  {
8399  }
8403  {
8407  }
8411  {
8415  }
8419  {
8423  }
8427  {
8431  }
8435  {
8439  }
8443  {
8447  }
8451  {
8455  }
8459  {
8463  }
8467  {
8471  }
8475  {
8479  }
8483  {
8487  }
8491  {
8495  }
8499  {
8503  }
8507  {
8511  }
8515  {
8519  }
8523  {
8527  }
8531  {
8535  }
8539  {
8543  }
8547  {
8551  }
8555  {
8559  }
8560  firm_start_state->count = 0;
8561 }
8562 
8564 {
8569  free(firm_end_state);
8609  free(firm_FirmLoop_state);
8611  free(firm_start_state);
8612 }
8613 
8615 {
8616  if(tmp->prev == NULL) from_state->agents = tmp->next;
8617  else tmp->prev->next = tmp->next;
8618  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
8619 
8620  add_firm_agent_internal(tmp->agent, to_state);
8621  free(tmp);
8622 }
8623 
8625 {
8627  CHECK_POINTER(current);
8628 
8629  current->next = state->agents;
8630  current->prev = NULL;
8631  state->agents = current;
8632  if(current->next != NULL) current->next->prev = current;
8633  current->agent = agent;
8634 
8635  state->count++;
8636 
8637 }
8638 
8695 void add_firm_agent(int id, int bank_id, int isconstructor, int day_of_month_to_act, int isinsolvent, int it_no, int day_of_week_to_act, double average_goods_price, int_array * employees, int manager, double wage_offer, double average_wage, int no_employees, int vacancies, int employees_needed, int day_of_month_wages_paid, double labour_productivity, double capital_productivity, int capital_goods, double capital_goods_price, int production_current, int expected_sales, int production_plan, double unit_goods_price, double unit_cost, int day_of_month_production_completed, double unit_house_price, int projects[], double loans_interest_rate, double debt, int inventory, int sales, double revenues, double total_assets, double operating_costs, double labour_costs, double total_interest_payments, double dividends_paid, double dividends_to_be_paid, double retained_earnings, double net_earnings, double ebit, double equity, double liquidity, int isliquidshort, int hasloan, int hasinvestment, int isilliquid, double planned_investment_costs, double liquidity_need, loan loan_list[], double labour_tax_rate, double delta_housing_price)
8696 {
8697  xmachine_memory_firm * current;
8698 
8699  current = init_firm_agent();
8700  /* new line added to handle dynamic agent creation*/
8703 
8704  current->id = id;
8705  current->bank_id = bank_id;
8706  current->isconstructor = isconstructor;
8707  current->day_of_month_to_act = day_of_month_to_act;
8708  current->isinsolvent = isinsolvent;
8709  current->it_no = it_no;
8710  current->day_of_week_to_act = day_of_week_to_act;
8711  current->average_goods_price = average_goods_price;
8712  copy_int_array(employees, &current->employees);
8713  current->manager = manager;
8714  current->wage_offer = wage_offer;
8715  current->average_wage = average_wage;
8716  current->no_employees = no_employees;
8717  current->vacancies = vacancies;
8718  current->employees_needed = employees_needed;
8719  current->day_of_month_wages_paid = day_of_month_wages_paid;
8720  current->labour_productivity = labour_productivity;
8721  current->capital_productivity = capital_productivity;
8722  current->capital_goods = capital_goods;
8723  current->capital_goods_price = capital_goods_price;
8724  current->production_current = production_current;
8725  current->expected_sales = expected_sales;
8726  current->production_plan = production_plan;
8727  current->unit_goods_price = unit_goods_price;
8728  current->unit_cost = unit_cost;
8729  current->day_of_month_production_completed = day_of_month_production_completed;
8730  current->unit_house_price = unit_house_price;
8731  memcpy(current->projects, projects, 12*sizeof(int));
8732  current->loans_interest_rate = loans_interest_rate;
8733  current->debt = debt;
8734  current->inventory = inventory;
8735  current->sales = sales;
8736  current->revenues = revenues;
8737  current->total_assets = total_assets;
8738  current->operating_costs = operating_costs;
8739  current->labour_costs = labour_costs;
8740  current->total_interest_payments = total_interest_payments;
8741  current->dividends_paid = dividends_paid;
8742  current->dividends_to_be_paid = dividends_to_be_paid;
8743  current->retained_earnings = retained_earnings;
8744  current->net_earnings = net_earnings;
8745  current->ebit = ebit;
8746  current->equity = equity;
8747  current->liquidity = liquidity;
8748  current->isliquidshort = isliquidshort;
8749  current->hasloan = hasloan;
8750  current->hasinvestment = hasinvestment;
8751  current->isilliquid = isilliquid;
8752  current->planned_investment_costs = planned_investment_costs;
8753  current->liquidity_need = liquidity_need;
8754  copy_loan_static_array(loan_list, current->loan_list, 2);
8755  current->labour_tax_rate = labour_tax_rate;
8756  current->delta_housing_price = delta_housing_price;
8757 }
8758 
8760 {
8762  CHECK_POINTER(current);
8763 
8764  current->agents = NULL;
8765  current->count = 0;
8766 
8767  return current;
8768 }
8769 
8771 {
8773  CHECK_POINTER(current);
8774 
8775  current->id = 0;
8776  current->bank_id = 0;
8777  current->it_no = 0;
8778  current->day_of_week_to_act = 0;
8779  current->weekly_consumption_budget = 0.0;
8780  current->mall_budget = 0.0;
8781  current->quarterly_price_change = 0.0;
8782  current->my_employer_id = 0;
8783  current->wage = 0.0;
8784  current->ismanager = 0;
8785  current->government_benefits = 0.0;
8786  current->day_of_month_to_act = 0;
8787  current->day_of_month_wage_recieved = 0;
8788  current->mortgages_interest_rate = 0.0;
8789  current->labour_tax_rate = 0.0;
8791  current->mortgages = 0.0;
8792  current->housing_payment = 0.0;
8793  current->equity = 0.0;
8794  current->housing_price = 0.0;
8795  current->housing_units = 0;
8796  current->n_shares = 0;
8797  current->liquidity = 0.0;
8798  current->capital_income = 0.0;
8801  current->labour_income = 0.0;
8802  current->total_assets = 0.0;
8803  current->housing_value = 0.0;
8804  current->expected_housing_payment = 0.0;
8805  current->hmarket_role = 0;
8806  current->equity_ratio = 0.0;
8807  current->minimum_equity_ratio = 0.0;
8809  current->delta_housing_value = 0.0;
8810  current->mortgage_choice = 0;
8811 
8812  return current;
8813 }
8814 
8816 {
8817  if(tmp->prev == NULL) state->agents = tmp->next;
8818  else tmp->prev->next = tmp->next;
8819  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
8820 
8822 
8823 
8824  free(tmp->agent);
8825  free(tmp);
8826 }
8827 
8829 {
8831  CHECK_POINTER(current);
8832 
8869 
8870 }
8871 
8873 {
8875 
8877 }
8878 
8880 {
8883  {
8887  }
8891  {
8895  }
8899  {
8903  }
8907  {
8911  }
8915  {
8919  }
8923  {
8927  }
8931  {
8935  }
8939  {
8943  }
8947  {
8951  }
8955  {
8959  }
8963  {
8967  }
8971  {
8975  }
8979  {
8983  }
8987  {
8991  }
8995  {
8999  }
9003  {
9007  }
9011  {
9015  }
9019  {
9023  }
9027  {
9031  }
9035  {
9039  }
9043  {
9047  }
9051  {
9055  }
9059  {
9063  }
9067  {
9071  }
9075  {
9079  }
9083  {
9087  }
9091  {
9095  }
9099  {
9103  }
9107  {
9111  }
9115  {
9119  }
9123  {
9127  }
9131  {
9135  }
9139  {
9143  }
9145 }
9146 
9148 {
9158  free(household_end_state);
9181  free(household_start_state);
9182 }
9183 
9185 {
9186  if(tmp->prev == NULL) from_state->agents = tmp->next;
9187  else tmp->prev->next = tmp->next;
9188  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9189 
9190  add_household_agent_internal(tmp->agent, to_state);
9191  free(tmp);
9192 }
9193 
9195 {
9197  CHECK_POINTER(current);
9198 
9199  current->next = state->agents;
9200  current->prev = NULL;
9201  state->agents = current;
9202  if(current->next != NULL) current->next->prev = current;
9203  current->agent = agent;
9204 
9205  state->count++;
9206 
9207 }
9208 
9248 void add_household_agent(int id, int bank_id, int it_no, int day_of_week_to_act, double weekly_consumption_budget, double mall_budget, double quarterly_price_change, int my_employer_id, double wage, int ismanager, double government_benefits, int day_of_month_to_act, int day_of_month_wage_recieved, double mortgages_interest_rate, double labour_tax_rate, mortgage_array * mortgages_list, double mortgages, double housing_payment, double equity, double housing_price, int housing_units, int n_shares, double liquidity, double capital_income, double previous_wages[], double previous_benefits[], double labour_income, double total_assets, double housing_value, double expected_housing_payment, int hmarket_role, double equity_ratio, double minimum_equity_ratio, double mortgage_costs[], double delta_housing_value, int mortgage_choice)
9249 {
9250  xmachine_memory_household * current;
9251 
9252  current = init_household_agent();
9253  /* new line added to handle dynamic agent creation*/
9256 
9257  current->id = id;
9258  current->bank_id = bank_id;
9259  current->it_no = it_no;
9260  current->day_of_week_to_act = day_of_week_to_act;
9261  current->weekly_consumption_budget = weekly_consumption_budget;
9262  current->mall_budget = mall_budget;
9263  current->quarterly_price_change = quarterly_price_change;
9264  current->my_employer_id = my_employer_id;
9265  current->wage = wage;
9266  current->ismanager = ismanager;
9267  current->government_benefits = government_benefits;
9268  current->day_of_month_to_act = day_of_month_to_act;
9269  current->day_of_month_wage_recieved = day_of_month_wage_recieved;
9270  current->mortgages_interest_rate = mortgages_interest_rate;
9271  current->labour_tax_rate = labour_tax_rate;
9272  copy_mortgage_array(mortgages_list, &current->mortgages_list);
9273  current->mortgages = mortgages;
9274  current->housing_payment = housing_payment;
9275  current->equity = equity;
9276  current->housing_price = housing_price;
9277  current->housing_units = housing_units;
9278  current->n_shares = n_shares;
9279  current->liquidity = liquidity;
9280  current->capital_income = capital_income;
9281  memcpy(current->previous_wages, previous_wages, 3*sizeof(double));
9282  memcpy(current->previous_benefits, previous_benefits, 3*sizeof(double));
9283  current->labour_income = labour_income;
9284  current->total_assets = total_assets;
9285  current->housing_value = housing_value;
9286  current->expected_housing_payment = expected_housing_payment;
9287  current->hmarket_role = hmarket_role;
9288  current->equity_ratio = equity_ratio;
9289  current->minimum_equity_ratio = minimum_equity_ratio;
9290  memcpy(current->mortgage_costs, mortgage_costs, 3*sizeof(double));
9291  current->delta_housing_value = delta_housing_value;
9292  current->mortgage_choice = mortgage_choice;
9293 }
9294 
9296 {
9298  CHECK_POINTER(current);
9299 
9300  current->agents = NULL;
9301  current->count = 0;
9302 
9303  return current;
9304 }
9305 
9307 {
9309  CHECK_POINTER(current);
9310 
9311  current->id = 0;
9312  current->it_no = 0;
9313  current->day_of_month_to_act = 0;
9314  current->day_of_month_wages_paid = 0;
9315  current->share_firms = 0.0;
9316  current->share_construction_firms = 0.0;
9317  current->share_banks = 0.0;
9318  current->equity = 0.0;
9319  current->liquidity = 0.0;
9320  current->n_shares = 0;
9321  current->dividends_recieved = 0.0;
9322  current->dividends_retained = 0.0;
9323  current->dividends_paid = 0.0;
9324  current->firm_investment = 0.0;
9325  current->capital_tax_rate = 0.0;
9326 
9327  return current;
9328 }
9329 
9331 {
9332  if(tmp->prev == NULL) state->agents = tmp->next;
9333  else tmp->prev->next = tmp->next;
9334  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9335 
9336 
9337 
9338  free(tmp->agent);
9339  free(tmp);
9340 }
9341 
9343 {
9345  CHECK_POINTER(current);
9346 
9362 
9363 }
9364 
9366 {
9367 
9369 }
9370 
9372 {
9375  {
9379  }
9383  {
9387  }
9391  {
9395  }
9399  {
9403  }
9407  {
9411  }
9415  {
9419  }
9423  {
9427  }
9431  {
9435  }
9439  {
9443  }
9447  {
9451  }
9455  {
9459  }
9461 }
9462 
9464 {
9467  free(equityfund_end_state);
9475  free(equityfund_start_state);
9476 }
9477 
9479 {
9480  if(tmp->prev == NULL) from_state->agents = tmp->next;
9481  else tmp->prev->next = tmp->next;
9482  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9483 
9484  add_equityfund_agent_internal(tmp->agent, to_state);
9485  free(tmp);
9486 }
9487 
9489 {
9491  CHECK_POINTER(current);
9492 
9493  current->next = state->agents;
9494  current->prev = NULL;
9495  state->agents = current;
9496  if(current->next != NULL) current->next->prev = current;
9497  current->agent = agent;
9498 
9499  state->count++;
9500 
9501 }
9502 
9521 void add_equityfund_agent(int id, int it_no, int day_of_month_to_act, int day_of_month_wages_paid, double share_firms, double share_construction_firms, double share_banks, double equity, double liquidity, int n_shares, double dividends_recieved, double dividends_retained, double dividends_paid, double firm_investment, double capital_tax_rate)
9522 {
9523  xmachine_memory_equityfund * current;
9524 
9525  current = init_equityfund_agent();
9526  /* new line added to handle dynamic agent creation*/
9529 
9530  current->id = id;
9531  current->it_no = it_no;
9532  current->day_of_month_to_act = day_of_month_to_act;
9533  current->day_of_month_wages_paid = day_of_month_wages_paid;
9534  current->share_firms = share_firms;
9535  current->share_construction_firms = share_construction_firms;
9536  current->share_banks = share_banks;
9537  current->equity = equity;
9538  current->liquidity = liquidity;
9539  current->n_shares = n_shares;
9540  current->dividends_recieved = dividends_recieved;
9541  current->dividends_retained = dividends_retained;
9542  current->dividends_paid = dividends_paid;
9543  current->firm_investment = firm_investment;
9544  current->capital_tax_rate = capital_tax_rate;
9545 }
9546 
9548 {
9550  CHECK_POINTER(current);
9551 
9552  current->agents = NULL;
9553  current->count = 0;
9554 
9555  return current;
9556 }
9557 
9559 {
9560  xmachine_memory_bank * current = (xmachine_memory_bank *)malloc(sizeof(xmachine_memory_bank));
9561  CHECK_POINTER(current);
9562 
9563  current->id = 0;
9564  current->day_of_month_to_act = 0;
9565  current->day_of_week_to_act = 0;
9566  current->it_no = 0;
9567  current->total_assets = 0.0;
9568  current->loans = 0.0;
9569  current->loans_start = 0.0;
9570  current->mortgages = 0.0;
9571  current->deposits = 0.0;
9572  current->centralbank_debt = 0.0;
9573  current->equity = 0.0;
9574  current->liquidity = 0.0;
9575  current->revenues = 0.0;
9576  current->total_writeoffs = 0.0;
9577  current->interest_rate = 0.0;
9578  current->interests_accrued = 0.0;
9579  current->interests_paid = 0.0;
9580  current->dividends_paid = 0.0;
9581  current->total_dividends = 0.0;
9582  current->retained_earnings = 0.0;
9583  current->net_earnings = 0.0;
9584  current->total_costs = 0.0;
9585 
9586  return current;
9587 }
9588 
9590 {
9591  if(tmp->prev == NULL) state->agents = tmp->next;
9592  else tmp->prev->next = tmp->next;
9593  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9594 
9595 
9596 
9597  free(tmp->agent);
9598  free(tmp);
9599 }
9600 
9602 {
9604  CHECK_POINTER(current);
9605 
9628 
9629 }
9630 
9632 {
9633 
9634  free(current_xmachine_bank);
9635 }
9636 
9638 {
9641  {
9645  }
9649  {
9653  }
9657  {
9661  }
9665  {
9669  }
9673  {
9677  }
9678  bank_end_state->count = 0;
9681  {
9685  }
9689  {
9693  }
9697  {
9701  }
9705  {
9709  }
9713  {
9717  }
9721  {
9725  }
9729  {
9733  }
9737  {
9741  }
9745  {
9749  }
9753  {
9757  }
9761  {
9765  }
9769  {
9773  }
9777  {
9781  }
9785  {
9789  }
9793  {
9797  }
9801  {
9805  }
9809  {
9813  }
9814  bank_start_state->count = 0;
9815 }
9816 
9818 {
9823  free(bank_end_state);
9838  free(bank_BankLoop_state);
9840  free(bank_start_state);
9841 }
9842 
9844 {
9845  if(tmp->prev == NULL) from_state->agents = tmp->next;
9846  else tmp->prev->next = tmp->next;
9847  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9848 
9849  add_bank_agent_internal(tmp->agent, to_state);
9850  free(tmp);
9851 }
9852 
9854 {
9856  CHECK_POINTER(current);
9857 
9858  current->next = state->agents;
9859  current->prev = NULL;
9860  state->agents = current;
9861  if(current->next != NULL) current->next->prev = current;
9862  current->agent = agent;
9863 
9864  state->count++;
9865 
9866 }
9867 
9893 void add_bank_agent(int id, int day_of_month_to_act, int day_of_week_to_act, int it_no, double total_assets, double loans, double loans_start, double mortgages, double deposits, double centralbank_debt, double equity, double liquidity, double revenues, double total_writeoffs, double interest_rate, double interests_accrued, double interests_paid, double dividends_paid, double total_dividends, double retained_earnings, double net_earnings, double total_costs)
9894 {
9895  xmachine_memory_bank * current;
9896 
9897  current = init_bank_agent();
9898  /* new line added to handle dynamic agent creation*/
9901 
9902  current->id = id;
9903  current->day_of_month_to_act = day_of_month_to_act;
9904  current->day_of_week_to_act = day_of_week_to_act;
9905  current->it_no = it_no;
9906  current->total_assets = total_assets;
9907  current->loans = loans;
9908  current->loans_start = loans_start;
9909  current->mortgages = mortgages;
9910  current->deposits = deposits;
9911  current->centralbank_debt = centralbank_debt;
9912  current->equity = equity;
9913  current->liquidity = liquidity;
9914  current->revenues = revenues;
9915  current->total_writeoffs = total_writeoffs;
9916  current->interest_rate = interest_rate;
9917  current->interests_accrued = interests_accrued;
9918  current->interests_paid = interests_paid;
9919  current->dividends_paid = dividends_paid;
9920  current->total_dividends = total_dividends;
9921  current->retained_earnings = retained_earnings;
9922  current->net_earnings = net_earnings;
9923  current->total_costs = total_costs;
9924 }
9925 
9927 {
9929  CHECK_POINTER(current);
9930 
9931  current->agents = NULL;
9932  current->count = 0;
9933 
9934  return current;
9935 }
9936 
9938 {
9940  CHECK_POINTER(current);
9941 
9942  current->id = 0;
9943  current->it_no = 0;
9944  current->average_wage = 0.0;
9945  current->unemployment_rate = 0.0;
9946  current->population_size = 0;
9947  current->debt = 0.0;
9948  current->equity = 0.0;
9949  current->liquidity = 0.0;
9950  current->day_of_month_to_act = 0;
9951  current->day_of_month_wages_paid = 0;
9952  current->capital_tax_rate = 0.0;
9953  current->labour_tax_rate = 0.0;
9954  current->labour_tax_income = 0.0;
9955  current->capital_tax_income = 0.0;
9956  current->gov_general_benefit_rate = 0.0;
9957  current->gov_unemployment_rate = 0.0;
9958  current->general_benefits = 0.0;
9959  current->unemployment_benefits = 0.0;
9960  current->earnings = 0.0;
9961  current->centralbank_income = 0.0;
9962  current->expenditures = 0.0;
9963 
9964  return current;
9965 }
9966 
9968 {
9969  if(tmp->prev == NULL) state->agents = tmp->next;
9970  else tmp->prev->next = tmp->next;
9971  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
9972 
9973 
9974 
9975  free(tmp->agent);
9976  free(tmp);
9977 }
9978 
9980 {
9982  CHECK_POINTER(current);
9983 
10005 
10006 }
10007 
10009 {
10010 
10012 }
10013 
10015 {
10018  {
10022  }
10026  {
10030  }
10034  {
10038  }
10042  {
10046  }
10050  {
10054  }
10058  {
10062  }
10066  {
10070  }
10074  {
10078  }
10082  {
10086  }
10090  {
10094  }
10098  {
10102  }
10106  {
10110  }
10112 }
10113 
10115 {
10119  free(government_end_state);
10127  free(government_start_state);
10128 }
10129 
10131 {
10132  if(tmp->prev == NULL) from_state->agents = tmp->next;
10133  else tmp->prev->next = tmp->next;
10134  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10135 
10136  add_government_agent_internal(tmp->agent, to_state);
10137  free(tmp);
10138 }
10139 
10141 {
10143  CHECK_POINTER(current);
10144 
10145  current->next = state->agents;
10146  current->prev = NULL;
10147  state->agents = current;
10148  if(current->next != NULL) current->next->prev = current;
10149  current->agent = agent;
10150 
10151  state->count++;
10152 
10153 }
10154 
10179 void add_government_agent(int id, int it_no, double average_wage, double unemployment_rate, int population_size, double debt, double equity, double liquidity, int day_of_month_to_act, int day_of_month_wages_paid, double capital_tax_rate, double labour_tax_rate, double labour_tax_income, double capital_tax_income, double gov_general_benefit_rate, double gov_unemployment_rate, double general_benefits, double unemployment_benefits, double earnings, double centralbank_income, double expenditures)
10180 {
10181  xmachine_memory_government * current;
10182 
10183  current = init_government_agent();
10184  /* new line added to handle dynamic agent creation*/
10187 
10188  current->id = id;
10189  current->it_no = it_no;
10190  current->average_wage = average_wage;
10191  current->unemployment_rate = unemployment_rate;
10192  current->population_size = population_size;
10193  current->debt = debt;
10194  current->equity = equity;
10195  current->liquidity = liquidity;
10196  current->day_of_month_to_act = day_of_month_to_act;
10197  current->day_of_month_wages_paid = day_of_month_wages_paid;
10198  current->capital_tax_rate = capital_tax_rate;
10199  current->labour_tax_rate = labour_tax_rate;
10200  current->labour_tax_income = labour_tax_income;
10201  current->capital_tax_income = capital_tax_income;
10202  current->gov_general_benefit_rate = gov_general_benefit_rate;
10203  current->gov_unemployment_rate = gov_unemployment_rate;
10204  current->general_benefits = general_benefits;
10205  current->unemployment_benefits = unemployment_benefits;
10206  current->earnings = earnings;
10207  current->centralbank_income = centralbank_income;
10208  current->expenditures = expenditures;
10209 }
10210 
10212 {
10214  CHECK_POINTER(current);
10215 
10216  current->agents = NULL;
10217  current->count = 0;
10218 
10219  return current;
10220 }
10221 
10223 {
10225  CHECK_POINTER(current);
10226 
10227  current->id = 0;
10228  current->day_of_month_to_act = 0;
10229  current->unemployment_rate = 0.0;
10230  current->inflation_rate = 0.0;
10232  current->it_no = 0;
10233  current->day_of_week_to_act = 0;
10234  init_transaction(&current->goods);
10236  current->day_of_month_wages_paid = 0;
10237  current->interest_rate = 0.0;
10238  current->liquidity = 0.0;
10239  current->loans_banks = 0.0;
10240  current->loans_government = 0.0;
10241  current->fiat_money = 0.0;
10242  current->equity = 0.0;
10243  current->liquidity_banks = 0.0;
10244  current->liquidity_government = 0.0;
10245  current->liquidity_equityfund = 0.0;
10246  current->total_assets = 0.0;
10247  current->total_writeoffs = 0.0;
10248  current->interests_accrued = 0.0;
10249  current->revenues = 0.0;
10250  current->net_earnings = 0.0;
10251  current->total_costs = 0.0;
10252  init_transaction(&current->houses);
10253 
10254  return current;
10255 }
10256 
10258 {
10259  if(tmp->prev == NULL) state->agents = tmp->next;
10260  else tmp->prev->next = tmp->next;
10261  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10262 
10263  free_transaction(&tmp->agent->goods);
10264  free_transaction(&tmp->agent->houses);
10265 
10266 
10267  free(tmp->agent);
10268  free(tmp);
10269 }
10270 
10272 {
10274  CHECK_POINTER(current);
10275 
10302 
10303 }
10304 
10306 {
10309 
10311 }
10312 
10314 {
10317  {
10321  }
10325  {
10329  }
10333  {
10337  }
10341  {
10345  }
10349  {
10353  }
10357  {
10361  }
10365  {
10369  }
10373  {
10377  }
10381  {
10385  }
10389  {
10393  }
10397  {
10401  }
10405  {
10409  }
10413  {
10417  }
10421  {
10425  }
10427 }
10428 
10430 {
10434  free(centralbank_end_state);
10445 }
10446 
10448 {
10449  if(tmp->prev == NULL) from_state->agents = tmp->next;
10450  else tmp->prev->next = tmp->next;
10451  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10452 
10453  add_centralbank_agent_internal(tmp->agent, to_state);
10454  free(tmp);
10455 }
10456 
10458 {
10460  CHECK_POINTER(current);
10461 
10462  current->next = state->agents;
10463  current->prev = NULL;
10464  state->agents = current;
10465  if(current->next != NULL) current->next->prev = current;
10466  current->agent = agent;
10467 
10468  state->count++;
10469 
10470 }
10471 
10501 void add_centralbank_agent(int id, int day_of_month_to_act, double unemployment_rate, double inflation_rate, double consumption_goods_prices[], int it_no, int day_of_week_to_act, transaction goods, double weekly_price_averages[], int day_of_month_wages_paid, double interest_rate, double liquidity, double loans_banks, double loans_government, double fiat_money, double equity, double liquidity_banks, double liquidity_government, double liquidity_equityfund, double total_assets, double total_writeoffs, double interests_accrued, double revenues, double net_earnings, double total_costs, transaction houses)
10502 {
10503  xmachine_memory_centralbank * current;
10504 
10505  current = init_centralbank_agent();
10506  /* new line added to handle dynamic agent creation*/
10509 
10510  current->id = id;
10511  current->day_of_month_to_act = day_of_month_to_act;
10512  current->unemployment_rate = unemployment_rate;
10513  current->inflation_rate = inflation_rate;
10514  memcpy(current->consumption_goods_prices, consumption_goods_prices, 12*sizeof(double));
10515  current->it_no = it_no;
10516  current->day_of_week_to_act = day_of_week_to_act;
10517  copy_transaction(&goods, &current->goods);
10518  memcpy(current->weekly_price_averages, weekly_price_averages, 4*sizeof(double));
10519  current->day_of_month_wages_paid = day_of_month_wages_paid;
10520  current->interest_rate = interest_rate;
10521  current->liquidity = liquidity;
10522  current->loans_banks = loans_banks;
10523  current->loans_government = loans_government;
10524  current->fiat_money = fiat_money;
10525  current->equity = equity;
10526  current->liquidity_banks = liquidity_banks;
10527  current->liquidity_government = liquidity_government;
10528  current->liquidity_equityfund = liquidity_equityfund;
10529  current->total_assets = total_assets;
10530  current->total_writeoffs = total_writeoffs;
10531  current->interests_accrued = interests_accrued;
10532  current->revenues = revenues;
10533  current->net_earnings = net_earnings;
10534  current->total_costs = total_costs;
10535  copy_transaction(&houses, &current->houses);
10536 }
10537 
10539 {
10541  CHECK_POINTER(current);
10542 
10543  current->agents = NULL;
10544  current->count = 0;
10545 
10546  return current;
10547 }
10548 
10550 {
10552  CHECK_POINTER(current);
10553 
10554  current->id = 0;
10555  current->it_no = 0;
10556  current->day_of_month_to_act = 0;
10557 
10558  return current;
10559 }
10560 
10562 {
10563  if(tmp->prev == NULL) state->agents = tmp->next;
10564  else tmp->prev->next = tmp->next;
10565  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10566 
10567 
10568 
10569  free(tmp->agent);
10570  free(tmp);
10571 }
10572 
10574 {
10576  CHECK_POINTER(current);
10577 
10581 
10582 }
10583 
10585 {
10586 
10588 }
10589 
10591 {
10594  {
10598  }
10602  {
10606  }
10610  {
10614  }
10618  {
10622  }
10626  {
10630  }
10634  {
10638  }
10640 }
10641 
10643 {
10645  free(jpoffice_end_state);
10649  free(jpoffice_start_state);
10650 }
10651 
10653 {
10654  if(tmp->prev == NULL) from_state->agents = tmp->next;
10655  else tmp->prev->next = tmp->next;
10656  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10657 
10658  add_jpoffice_agent_internal(tmp->agent, to_state);
10659  free(tmp);
10660 }
10661 
10663 {
10665  CHECK_POINTER(current);
10666 
10667  current->next = state->agents;
10668  current->prev = NULL;
10669  state->agents = current;
10670  if(current->next != NULL) current->next->prev = current;
10671  current->agent = agent;
10672 
10673  state->count++;
10674 
10675 }
10676 
10683 void add_jpoffice_agent(int id, int it_no, int day_of_month_to_act)
10684 {
10685  xmachine_memory_jpoffice * current;
10686 
10687  current = init_jpoffice_agent();
10688  /* new line added to handle dynamic agent creation*/
10691 
10692  current->id = id;
10693  current->it_no = it_no;
10694  current->day_of_month_to_act = day_of_month_to_act;
10695 }
10696 
10698 {
10700  CHECK_POINTER(current);
10701 
10702  current->agents = NULL;
10703  current->count = 0;
10704 
10705  return current;
10706 }
10707 
10709 {
10710  xmachine_memory_mall * current = (xmachine_memory_mall *)malloc(sizeof(xmachine_memory_mall));
10711  CHECK_POINTER(current);
10712 
10713  current->id = 0;
10714  current->it_no = 0;
10715  current->day_of_week_to_act = 0;
10717 
10718  return current;
10719 }
10720 
10722 {
10723  if(tmp->prev == NULL) state->agents = tmp->next;
10724  else tmp->prev->next = tmp->next;
10725  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10726 
10728 
10729 
10730  free(tmp->agent);
10731  free(tmp);
10732 }
10733 
10735 {
10737  CHECK_POINTER(current);
10738 
10743 
10744 }
10745 
10747 {
10749 
10750  free(current_xmachine_mall);
10751 }
10752 
10754 {
10757  {
10761  }
10765  {
10769  }
10770  mall_end_state->count = 0;
10773  {
10777  }
10781  {
10785  }
10786  mall_start_state->count = 0;
10787 }
10788 
10790 {
10792  free(mall_end_state);
10794  free(mall_start_state);
10795 }
10796 
10798 {
10799  if(tmp->prev == NULL) from_state->agents = tmp->next;
10800  else tmp->prev->next = tmp->next;
10801  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10802 
10803  add_mall_agent_internal(tmp->agent, to_state);
10804  free(tmp);
10805 }
10806 
10808 {
10810  CHECK_POINTER(current);
10811 
10812  current->next = state->agents;
10813  current->prev = NULL;
10814  state->agents = current;
10815  if(current->next != NULL) current->next->prev = current;
10816  current->agent = agent;
10817 
10818  state->count++;
10819 
10820 }
10821 
10829 void add_mall_agent(int id, int it_no, int day_of_week_to_act, transaction goods_transactions)
10830 {
10831  xmachine_memory_mall * current;
10832 
10833  current = init_mall_agent();
10834  /* new line added to handle dynamic agent creation*/
10837 
10838  current->id = id;
10839  current->it_no = it_no;
10840  current->day_of_week_to_act = day_of_week_to_act;
10841  copy_transaction(&goods_transactions, &current->goods_transactions);
10842 }
10843 
10845 {
10847  CHECK_POINTER(current);
10848 
10849  current->agents = NULL;
10850  current->count = 0;
10851 
10852  return current;
10853 }
10854 
10856 {
10858  CHECK_POINTER(current);
10859 
10860  current->id = 0;
10861  current->day_of_month_to_act = 0;
10862  current->it_no = 0;
10863  current->mortgages_interest_rate = 0.0;
10865 
10866  return current;
10867 }
10868 
10870 {
10871  if(tmp->prev == NULL) state->agents = tmp->next;
10872  else tmp->prev->next = tmp->next;
10873  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10874 
10876 
10877 
10878  free(tmp->agent);
10879  free(tmp);
10880 }
10881 
10883 {
10885  CHECK_POINTER(current);
10886 
10892 
10893 }
10894 
10896 {
10898 
10900 }
10901 
10903 {
10906  {
10910  }
10914  {
10918  }
10922  {
10926  }
10930  {
10934  }
10938  {
10942  }
10944 }
10945 
10947 {
10949  free(reagency_end_state);
10952  free(reagency_start_state);
10953 }
10954 
10956 {
10957  if(tmp->prev == NULL) from_state->agents = tmp->next;
10958  else tmp->prev->next = tmp->next;
10959  if(tmp->next != NULL) tmp->next->prev = tmp->prev;
10960 
10961  add_reagency_agent_internal(tmp->agent, to_state);
10962  free(tmp);
10963 }
10964 
10966 {
10968  CHECK_POINTER(current);
10969 
10970  current->next = state->agents;
10971  current->prev = NULL;
10972  state->agents = current;
10973  if(current->next != NULL) current->next->prev = current;
10974  current->agent = agent;
10975 
10976  state->count++;
10977 
10978 }
10979 
10988 void add_reagency_agent(int id, int day_of_month_to_act, int it_no, double mortgages_interest_rate, transaction housing_transactions)
10989 {
10990  xmachine_memory_reagency * current;
10991 
10992  current = init_reagency_agent();
10993  /* new line added to handle dynamic agent creation*/
10996 
10997  current->id = id;
10998  current->day_of_month_to_act = day_of_month_to_act;
10999  current->it_no = it_no;
11000  current->mortgages_interest_rate = mortgages_interest_rate;
11001  copy_transaction(&housing_transactions, &current->housing_transactions);
11002 }
11003 
11004 
11005 /* freexmachines */
11010 {
11011  free_firm_agents();
11014  free_bank_agents();
11018  free_mall_agents();
11020 
11021 }
11022 
11023 
11028 void set_id(int id)
11029 {
11039 }
11040 
11045 int get_id()
11046 {
11056 
11057  // suppress compiler warning by returning dummy value /
11058  // this statement should rightfully NEVER be reached /
11059  return (int)0;
11060 }
11061 
11066 void set_bank_id(int bank_id)
11067 {
11068  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).bank_id = bank_id;
11070 }
11071 
11077 {
11080 
11081  // suppress compiler warning by returning dummy value /
11082  // this statement should rightfully NEVER be reached /
11083  return (int)0;
11084 }
11085 
11090 void set_isconstructor(int isconstructor)
11091 {
11092  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).isconstructor = isconstructor;
11093 }
11094 
11100 {
11101  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).isconstructor;
11102 
11103  // suppress compiler warning by returning dummy value /
11104  // this statement should rightfully NEVER be reached /
11105  return (int)0;
11106 }
11107 
11112 void set_day_of_month_to_act(int day_of_month_to_act)
11113 {
11114  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).day_of_month_to_act = day_of_month_to_act;
11115  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).day_of_month_to_act = day_of_month_to_act;
11116  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).day_of_month_to_act = day_of_month_to_act;
11117  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).day_of_month_to_act = day_of_month_to_act;
11118  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).day_of_month_to_act = day_of_month_to_act;
11119  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).day_of_month_to_act = day_of_month_to_act;
11120  if(current_xmachine->xmachine_jpoffice) (*current_xmachine->xmachine_jpoffice).day_of_month_to_act = day_of_month_to_act;
11121  if(current_xmachine->xmachine_reagency) (*current_xmachine->xmachine_reagency).day_of_month_to_act = day_of_month_to_act;
11122 }
11123 
11129 {
11130  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).day_of_month_to_act;
11131  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).day_of_month_to_act;
11132  if(current_xmachine->xmachine_equityfund) return (*current_xmachine->xmachine_equityfund).day_of_month_to_act;
11133  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).day_of_month_to_act;
11134  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).day_of_month_to_act;
11135  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).day_of_month_to_act;
11136  if(current_xmachine->xmachine_jpoffice) return (*current_xmachine->xmachine_jpoffice).day_of_month_to_act;
11137  if(current_xmachine->xmachine_reagency) return (*current_xmachine->xmachine_reagency).day_of_month_to_act;
11138 
11139  // suppress compiler warning by returning dummy value /
11140  // this statement should rightfully NEVER be reached /
11141  return (int)0;
11142 }
11143 
11148 void set_isinsolvent(int isinsolvent)
11149 {
11150  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).isinsolvent = isinsolvent;
11151 }
11152 
11158 {
11159  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).isinsolvent;
11160 
11161  // suppress compiler warning by returning dummy value /
11162  // this statement should rightfully NEVER be reached /
11163  return (int)0;
11164 }
11165 
11170 void set_it_no(int it_no)
11171 {
11181 }
11182 
11188 {
11198 
11199  // suppress compiler warning by returning dummy value /
11200  // this statement should rightfully NEVER be reached /
11201  return (int)0;
11202 }
11203 
11208 void set_day_of_week_to_act(int day_of_week_to_act)
11209 {
11210  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).day_of_week_to_act = day_of_week_to_act;
11211  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).day_of_week_to_act = day_of_week_to_act;
11212  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).day_of_week_to_act = day_of_week_to_act;
11213  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).day_of_week_to_act = day_of_week_to_act;
11214  if(current_xmachine->xmachine_mall) (*current_xmachine->xmachine_mall).day_of_week_to_act = day_of_week_to_act;
11215 }
11216 
11222 {
11223  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).day_of_week_to_act;
11224  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).day_of_week_to_act;
11225  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).day_of_week_to_act;
11227  if(current_xmachine->xmachine_mall) return (*current_xmachine->xmachine_mall).day_of_week_to_act;
11228 
11229  // suppress compiler warning by returning dummy value /
11230  // this statement should rightfully NEVER be reached /
11231  return (int)0;
11232 }
11233 
11238 void set_average_goods_price(double average_goods_price)
11239 {
11240  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).average_goods_price = average_goods_price;
11241 }
11242 
11248 {
11249  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).average_goods_price;
11250 
11251  // suppress compiler warning by returning dummy value /
11252  // this statement should rightfully NEVER be reached /
11253  return (double)0;
11254 }
11255 
11261 {
11262  if(current_xmachine->xmachine_firm) return &(*current_xmachine->xmachine_firm).employees;
11263 
11264  // suppress compiler warning by returning dummy value /
11265  // this statement should rightfully NEVER be reached /
11266  return NULL;
11267 }
11268 
11273 void set_manager(int manager)
11274 {
11275  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).manager = manager;
11276 }
11277 
11283 {
11285 
11286  // suppress compiler warning by returning dummy value /
11287  // this statement should rightfully NEVER be reached /
11288  return (int)0;
11289 }
11290 
11295 void set_wage_offer(double wage_offer)
11296 {
11297  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).wage_offer = wage_offer;
11298 }
11299 
11305 {
11306  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).wage_offer;
11307 
11308  // suppress compiler warning by returning dummy value /
11309  // this statement should rightfully NEVER be reached /
11310  return (double)0;
11311 }
11312 
11317 void set_average_wage(double average_wage)
11318 {
11319  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).average_wage = average_wage;
11320  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).average_wage = average_wage;
11321 }
11322 
11328 {
11329  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).average_wage;
11331 
11332  // suppress compiler warning by returning dummy value /
11333  // this statement should rightfully NEVER be reached /
11334  return (double)0;
11335 }
11336 
11341 void set_no_employees(int no_employees)
11342 {
11343  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).no_employees = no_employees;
11344 }
11345 
11351 {
11352  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).no_employees;
11353 
11354  // suppress compiler warning by returning dummy value /
11355  // this statement should rightfully NEVER be reached /
11356  return (int)0;
11357 }
11358 
11363 void set_vacancies(int vacancies)
11364 {
11365  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).vacancies = vacancies;
11366 }
11367 
11373 {
11375 
11376  // suppress compiler warning by returning dummy value /
11377  // this statement should rightfully NEVER be reached /
11378  return (int)0;
11379 }
11380 
11385 void set_employees_needed(int employees_needed)
11386 {
11387  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).employees_needed = employees_needed;
11388 }
11389 
11395 {
11396  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).employees_needed;
11397 
11398  // suppress compiler warning by returning dummy value /
11399  // this statement should rightfully NEVER be reached /
11400  return (int)0;
11401 }
11402 
11407 void set_day_of_month_wages_paid(int day_of_month_wages_paid)
11408 {
11409  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).day_of_month_wages_paid = day_of_month_wages_paid;
11410  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).day_of_month_wages_paid = day_of_month_wages_paid;
11411  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).day_of_month_wages_paid = day_of_month_wages_paid;
11412  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).day_of_month_wages_paid = day_of_month_wages_paid;
11413 }
11414 
11420 {
11421  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).day_of_month_wages_paid;
11422  if(current_xmachine->xmachine_equityfund) return (*current_xmachine->xmachine_equityfund).day_of_month_wages_paid;
11423  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).day_of_month_wages_paid;
11424  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).day_of_month_wages_paid;
11425 
11426  // suppress compiler warning by returning dummy value /
11427  // this statement should rightfully NEVER be reached /
11428  return (int)0;
11429 }
11430 
11435 void set_labour_productivity(double labour_productivity)
11436 {
11437  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).labour_productivity = labour_productivity;
11438 }
11439 
11445 {
11446  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).labour_productivity;
11447 
11448  // suppress compiler warning by returning dummy value /
11449  // this statement should rightfully NEVER be reached /
11450  return (double)0;
11451 }
11452 
11457 void set_capital_productivity(double capital_productivity)
11458 {
11459  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).capital_productivity = capital_productivity;
11460 }
11461 
11467 {
11468  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).capital_productivity;
11469 
11470  // suppress compiler warning by returning dummy value /
11471  // this statement should rightfully NEVER be reached /
11472  return (double)0;
11473 }
11474 
11479 void set_capital_goods(int capital_goods)
11480 {
11481  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).capital_goods = capital_goods;
11482 }
11483 
11489 {
11490  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).capital_goods;
11491 
11492  // suppress compiler warning by returning dummy value /
11493  // this statement should rightfully NEVER be reached /
11494  return (int)0;
11495 }
11496 
11501 void set_capital_goods_price(double capital_goods_price)
11502 {
11503  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).capital_goods_price = capital_goods_price;
11504 }
11505 
11511 {
11512  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).capital_goods_price;
11513 
11514  // suppress compiler warning by returning dummy value /
11515  // this statement should rightfully NEVER be reached /
11516  return (double)0;
11517 }
11518 
11523 void set_production_current(int production_current)
11524 {
11525  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).production_current = production_current;
11526 }
11527 
11533 {
11534  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).production_current;
11535 
11536  // suppress compiler warning by returning dummy value /
11537  // this statement should rightfully NEVER be reached /
11538  return (int)0;
11539 }
11540 
11545 void set_expected_sales(int expected_sales)
11546 {
11547  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).expected_sales = expected_sales;
11548 }
11549 
11555 {
11556  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).expected_sales;
11557 
11558  // suppress compiler warning by returning dummy value /
11559  // this statement should rightfully NEVER be reached /
11560  return (int)0;
11561 }
11562 
11567 void set_production_plan(int production_plan)
11568 {
11569  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).production_plan = production_plan;
11570 }
11571 
11577 {
11578  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).production_plan;
11579 
11580  // suppress compiler warning by returning dummy value /
11581  // this statement should rightfully NEVER be reached /
11582  return (int)0;
11583 }
11584 
11589 void set_unit_goods_price(double unit_goods_price)
11590 {
11591  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).unit_goods_price = unit_goods_price;
11592 }
11593 
11599 {
11600  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).unit_goods_price;
11601 
11602  // suppress compiler warning by returning dummy value /
11603  // this statement should rightfully NEVER be reached /
11604  return (double)0;
11605 }
11606 
11611 void set_unit_cost(double unit_cost)
11612 {
11613  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).unit_cost = unit_cost;
11614 }
11615 
11621 {
11623 
11624  // suppress compiler warning by returning dummy value /
11625  // this statement should rightfully NEVER be reached /
11626  return (double)0;
11627 }
11628 
11633 void set_day_of_month_production_completed(int day_of_month_production_completed)
11634 {
11635  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).day_of_month_production_completed = day_of_month_production_completed;
11636 }
11637 
11643 {
11644  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).day_of_month_production_completed;
11645 
11646  // suppress compiler warning by returning dummy value /
11647  // this statement should rightfully NEVER be reached /
11648  return (int)0;
11649 }
11650 
11655 void set_unit_house_price(double unit_house_price)
11656 {
11657  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).unit_house_price = unit_house_price;
11658 }
11659 
11665 {
11666  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).unit_house_price;
11667 
11668  // suppress compiler warning by returning dummy value /
11669  // this statement should rightfully NEVER be reached /
11670  return (double)0;
11671 }
11672 
11678 {
11680 
11681  // suppress compiler warning by returning dummy value /
11682  // this statement should rightfully NEVER be reached /
11683  return NULL;
11684 }
11685 
11690 void set_loans_interest_rate(double loans_interest_rate)
11691 {
11692  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).loans_interest_rate = loans_interest_rate;
11693 }
11694 
11700 {
11701  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).loans_interest_rate;
11702 
11703  // suppress compiler warning by returning dummy value /
11704  // this statement should rightfully NEVER be reached /
11705  return (double)0;
11706 }
11707 
11712 void set_debt(double debt)
11713 {
11716 }
11717 
11722 double get_debt()
11723 {
11726 
11727  // suppress compiler warning by returning dummy value /
11728  // this statement should rightfully NEVER be reached /
11729  return (double)0;
11730 }
11731 
11736 void set_inventory(int inventory)
11737 {
11738  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).inventory = inventory;
11739 }
11740 
11746 {
11748 
11749  // suppress compiler warning by returning dummy value /
11750  // this statement should rightfully NEVER be reached /
11751  return (int)0;
11752 }
11753 
11758 void set_sales(int sales)
11759 {
11761 }
11762 
11768 {
11770 
11771  // suppress compiler warning by returning dummy value /
11772  // this statement should rightfully NEVER be reached /
11773  return (int)0;
11774 }
11775 
11780 void set_revenues(double revenues)
11781 {
11782  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).revenues = revenues;
11783  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).revenues = revenues;
11785 }
11786 
11792 {
11796 
11797  // suppress compiler warning by returning dummy value /
11798  // this statement should rightfully NEVER be reached /
11799  return (double)0;
11800 }
11801 
11806 void set_total_assets(double total_assets)
11807 {
11808  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).total_assets = total_assets;
11809  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).total_assets = total_assets;
11810  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).total_assets = total_assets;
11811  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).total_assets = total_assets;
11812 }
11813 
11819 {
11820  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).total_assets;
11822  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).total_assets;
11824 
11825  // suppress compiler warning by returning dummy value /
11826  // this statement should rightfully NEVER be reached /
11827  return (double)0;
11828 }
11829 
11834 void set_operating_costs(double operating_costs)
11835 {
11836  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).operating_costs = operating_costs;
11837 }
11838 
11844 {
11845  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).operating_costs;
11846 
11847  // suppress compiler warning by returning dummy value /
11848  // this statement should rightfully NEVER be reached /
11849  return (double)0;
11850 }
11851 
11856 void set_labour_costs(double labour_costs)
11857 {
11858  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).labour_costs = labour_costs;
11859 }
11860 
11866 {
11867  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).labour_costs;
11868 
11869  // suppress compiler warning by returning dummy value /
11870  // this statement should rightfully NEVER be reached /
11871  return (double)0;
11872 }
11873 
11878 void set_total_interest_payments(double total_interest_payments)
11879 {
11880  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).total_interest_payments = total_interest_payments;
11881 }
11882 
11888 {
11889  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).total_interest_payments;
11890 
11891  // suppress compiler warning by returning dummy value /
11892  // this statement should rightfully NEVER be reached /
11893  return (double)0;
11894 }
11895 
11900 void set_dividends_paid(double dividends_paid)
11901 {
11902  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).dividends_paid = dividends_paid;
11903  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).dividends_paid = dividends_paid;
11904  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).dividends_paid = dividends_paid;
11905 }
11906 
11912 {
11913  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).dividends_paid;
11915  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).dividends_paid;
11916 
11917  // suppress compiler warning by returning dummy value /
11918  // this statement should rightfully NEVER be reached /
11919  return (double)0;
11920 }
11921 
11926 void set_dividends_to_be_paid(double dividends_to_be_paid)
11927 {
11928  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).dividends_to_be_paid = dividends_to_be_paid;
11929 }
11930 
11936 {
11937  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).dividends_to_be_paid;
11938 
11939  // suppress compiler warning by returning dummy value /
11940  // this statement should rightfully NEVER be reached /
11941  return (double)0;
11942 }
11943 
11948 void set_retained_earnings(double retained_earnings)
11949 {
11950  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).retained_earnings = retained_earnings;
11951  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).retained_earnings = retained_earnings;
11952 }
11953 
11959 {
11960  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).retained_earnings;
11961  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).retained_earnings;
11962 
11963  // suppress compiler warning by returning dummy value /
11964  // this statement should rightfully NEVER be reached /
11965  return (double)0;
11966 }
11967 
11972 void set_net_earnings(double net_earnings)
11973 {
11974  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).net_earnings = net_earnings;
11975  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).net_earnings = net_earnings;
11976  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).net_earnings = net_earnings;
11977 }
11978 
11984 {
11985  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).net_earnings;
11986  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).net_earnings;
11988 
11989  // suppress compiler warning by returning dummy value /
11990  // this statement should rightfully NEVER be reached /
11991  return (double)0;
11992 }
11993 
11998 void set_ebit(double ebit)
11999 {
12001 }
12002 
12007 double get_ebit()
12008 {
12010 
12011  // suppress compiler warning by returning dummy value /
12012  // this statement should rightfully NEVER be reached /
12013  return (double)0;
12014 }
12015 
12020 void set_equity(double equity)
12021 {
12028 }
12029 
12034 double get_equity()
12035 {
12042 
12043  // suppress compiler warning by returning dummy value /
12044  // this statement should rightfully NEVER be reached /
12045  return (double)0;
12046 }
12047 
12052 void set_liquidity(double liquidity)
12053 {
12054  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).liquidity = liquidity;
12057  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).liquidity = liquidity;
12060 }
12061 
12067 {
12074 
12075  // suppress compiler warning by returning dummy value /
12076  // this statement should rightfully NEVER be reached /
12077  return (double)0;
12078 }
12079 
12084 void set_isliquidshort(int isliquidshort)
12085 {
12086  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).isliquidshort = isliquidshort;
12087 }
12088 
12094 {
12095  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).isliquidshort;
12096 
12097  // suppress compiler warning by returning dummy value /
12098  // this statement should rightfully NEVER be reached /
12099  return (int)0;
12100 }
12101 
12106 void set_hasloan(int hasloan)
12107 {
12108  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).hasloan = hasloan;
12109 }
12110 
12116 {
12118 
12119  // suppress compiler warning by returning dummy value /
12120  // this statement should rightfully NEVER be reached /
12121  return (int)0;
12122 }
12123 
12128 void set_hasinvestment(int hasinvestment)
12129 {
12130  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).hasinvestment = hasinvestment;
12131 }
12132 
12138 {
12139  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).hasinvestment;
12140 
12141  // suppress compiler warning by returning dummy value /
12142  // this statement should rightfully NEVER be reached /
12143  return (int)0;
12144 }
12145 
12150 void set_isilliquid(int isilliquid)
12151 {
12152  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).isilliquid = isilliquid;
12153 }
12154 
12160 {
12161  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).isilliquid;
12162 
12163  // suppress compiler warning by returning dummy value /
12164  // this statement should rightfully NEVER be reached /
12165  return (int)0;
12166 }
12167 
12172 void set_planned_investment_costs(double planned_investment_costs)
12173 {
12174  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).planned_investment_costs = planned_investment_costs;
12175 }
12176 
12182 {
12183  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).planned_investment_costs;
12184 
12185  // suppress compiler warning by returning dummy value /
12186  // this statement should rightfully NEVER be reached /
12187  return (double)0;
12188 }
12189 
12194 void set_liquidity_need(double liquidity_need)
12195 {
12196  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).liquidity_need = liquidity_need;
12197 }
12198 
12204 {
12205  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).liquidity_need;
12206 
12207  // suppress compiler warning by returning dummy value /
12208  // this statement should rightfully NEVER be reached /
12209  return (double)0;
12210 }
12211 
12217 {
12219 
12220  // suppress compiler warning by returning dummy value /
12221  // this statement should rightfully NEVER be reached /
12222  return NULL;
12223 }
12224 
12229 void set_labour_tax_rate(double labour_tax_rate)
12230 {
12231  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).labour_tax_rate = labour_tax_rate;
12232  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).labour_tax_rate = labour_tax_rate;
12233  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).labour_tax_rate = labour_tax_rate;
12234 }
12235 
12241 {
12242  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).labour_tax_rate;
12245 
12246  // suppress compiler warning by returning dummy value /
12247  // this statement should rightfully NEVER be reached /
12248  return (double)0;
12249 }
12250 
12255 void set_delta_housing_price(double delta_housing_price)
12256 {
12257  if(current_xmachine->xmachine_firm) (*current_xmachine->xmachine_firm).delta_housing_price = delta_housing_price;
12258 }
12259 
12265 {
12266  if(current_xmachine->xmachine_firm) return (*current_xmachine->xmachine_firm).delta_housing_price;
12267 
12268  // suppress compiler warning by returning dummy value /
12269  // this statement should rightfully NEVER be reached /
12270  return (double)0;
12271 }
12272 
12277 void set_weekly_consumption_budget(double weekly_consumption_budget)
12278 {
12279  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).weekly_consumption_budget = weekly_consumption_budget;
12280 }
12281 
12287 {
12288  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).weekly_consumption_budget;
12289 
12290  // suppress compiler warning by returning dummy value /
12291  // this statement should rightfully NEVER be reached /
12292  return (double)0;
12293 }
12294 
12299 void set_mall_budget(double mall_budget)
12300 {
12301  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).mall_budget = mall_budget;
12302 }
12303 
12309 {
12311 
12312  // suppress compiler warning by returning dummy value /
12313  // this statement should rightfully NEVER be reached /
12314  return (double)0;
12315 }
12316 
12321 void set_quarterly_price_change(double quarterly_price_change)
12322 {
12323  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).quarterly_price_change = quarterly_price_change;
12324 }
12325 
12331 {
12332  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).quarterly_price_change;
12333 
12334  // suppress compiler warning by returning dummy value /
12335  // this statement should rightfully NEVER be reached /
12336  return (double)0;
12337 }
12338 
12343 void set_my_employer_id(int my_employer_id)
12344 {
12345  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).my_employer_id = my_employer_id;
12346 }
12347 
12353 {
12355 
12356  // suppress compiler warning by returning dummy value /
12357  // this statement should rightfully NEVER be reached /
12358  return (int)0;
12359 }
12360 
12365 void set_wage(double wage)
12366 {
12368 }
12369 
12374 double get_wage()
12375 {
12377 
12378  // suppress compiler warning by returning dummy value /
12379  // this statement should rightfully NEVER be reached /
12380  return (double)0;
12381 }
12382 
12387 void set_ismanager(int ismanager)
12388 {
12390 }
12391 
12397 {
12399 
12400  // suppress compiler warning by returning dummy value /
12401  // this statement should rightfully NEVER be reached /
12402  return (int)0;
12403 }
12404 
12409 void set_government_benefits(double government_benefits)
12410 {
12411  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).government_benefits = government_benefits;
12412 }
12413 
12419 {
12420  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).government_benefits;
12421 
12422  // suppress compiler warning by returning dummy value /
12423  // this statement should rightfully NEVER be reached /
12424  return (double)0;
12425 }
12426 
12431 void set_day_of_month_wage_recieved(int day_of_month_wage_recieved)
12432 {
12433  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).day_of_month_wage_recieved = day_of_month_wage_recieved;
12434 }
12435 
12441 {
12442  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).day_of_month_wage_recieved;
12443 
12444  // suppress compiler warning by returning dummy value /
12445  // this statement should rightfully NEVER be reached /
12446  return (int)0;
12447 }
12448 
12453 void set_mortgages_interest_rate(double mortgages_interest_rate)
12454 {
12455  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).mortgages_interest_rate = mortgages_interest_rate;
12456  if(current_xmachine->xmachine_reagency) (*current_xmachine->xmachine_reagency).mortgages_interest_rate = mortgages_interest_rate;
12457 }
12458 
12464 {
12465  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).mortgages_interest_rate;
12466  if(current_xmachine->xmachine_reagency) return (*current_xmachine->xmachine_reagency).mortgages_interest_rate;
12467 
12468  // suppress compiler warning by returning dummy value /
12469  // this statement should rightfully NEVER be reached /
12470  return (double)0;
12471 }
12472 
12478 {
12480 
12481  // suppress compiler warning by returning dummy value /
12482  // this statement should rightfully NEVER be reached /
12483  return NULL;
12484 }
12485 
12490 void set_mortgages(double mortgages)
12491 {
12493  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).mortgages = mortgages;
12494 }
12495 
12501 {
12504 
12505  // suppress compiler warning by returning dummy value /
12506  // this statement should rightfully NEVER be reached /
12507  return (double)0;
12508 }
12509 
12514 void set_housing_payment(double housing_payment)
12515 {
12516  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).housing_payment = housing_payment;
12517 }
12518 
12524 {
12526 
12527  // suppress compiler warning by returning dummy value /
12528  // this statement should rightfully NEVER be reached /
12529  return (double)0;
12530 }
12531 
12536 void set_housing_price(double housing_price)
12537 {
12538  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).housing_price = housing_price;
12539 }
12540 
12546 {
12548 
12549  // suppress compiler warning by returning dummy value /
12550  // this statement should rightfully NEVER be reached /
12551  return (double)0;
12552 }
12553 
12558 void set_housing_units(int housing_units)
12559 {
12560  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).housing_units = housing_units;
12561 }
12562 
12568 {
12570 
12571  // suppress compiler warning by returning dummy value /
12572  // this statement should rightfully NEVER be reached /
12573  return (int)0;
12574 }
12575 
12580 void set_n_shares(int n_shares)
12581 {
12584 }
12585 
12591 {
12594 
12595  // suppress compiler warning by returning dummy value /
12596  // this statement should rightfully NEVER be reached /
12597  return (int)0;
12598 }
12599 
12604 void set_capital_income(double capital_income)
12605 {
12606  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).capital_income = capital_income;
12607 }
12608 
12614 {
12616 
12617  // suppress compiler warning by returning dummy value /
12618  // this statement should rightfully NEVER be reached /
12619  return (double)0;
12620 }
12621 
12627 {
12629 
12630  // suppress compiler warning by returning dummy value /
12631  // this statement should rightfully NEVER be reached /
12632  return NULL;
12633 }
12634 
12640 {
12641  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).previous_benefits;
12642 
12643  // suppress compiler warning by returning dummy value /
12644  // this statement should rightfully NEVER be reached /
12645  return NULL;
12646 }
12647 
12652 void set_labour_income(double labour_income)
12653 {
12654  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).labour_income = labour_income;
12655 }
12656 
12662 {
12664 
12665  // suppress compiler warning by returning dummy value /
12666  // this statement should rightfully NEVER be reached /
12667  return (double)0;
12668 }
12669 
12674 void set_housing_value(double housing_value)
12675 {
12676  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).housing_value = housing_value;
12677 }
12678 
12684 {
12686 
12687  // suppress compiler warning by returning dummy value /
12688  // this statement should rightfully NEVER be reached /
12689  return (double)0;
12690 }
12691 
12696 void set_expected_housing_payment(double expected_housing_payment)
12697 {
12698  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).expected_housing_payment = expected_housing_payment;
12699 }
12700 
12706 {
12707  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).expected_housing_payment;
12708 
12709  // suppress compiler warning by returning dummy value /
12710  // this statement should rightfully NEVER be reached /
12711  return (double)0;
12712 }
12713 
12718 void set_hmarket_role(int hmarket_role)
12719 {
12720  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).hmarket_role = hmarket_role;
12721 }
12722 
12728 {
12730 
12731  // suppress compiler warning by returning dummy value /
12732  // this statement should rightfully NEVER be reached /
12733  return (int)0;
12734 }
12735 
12740 void set_equity_ratio(double equity_ratio)
12741 {
12742  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).equity_ratio = equity_ratio;
12743 }
12744 
12750 {
12752 
12753  // suppress compiler warning by returning dummy value /
12754  // this statement should rightfully NEVER be reached /
12755  return (double)0;
12756 }
12757 
12762 void set_minimum_equity_ratio(double minimum_equity_ratio)
12763 {
12764  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).minimum_equity_ratio = minimum_equity_ratio;
12765 }
12766 
12772 {
12773  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).minimum_equity_ratio;
12774 
12775  // suppress compiler warning by returning dummy value /
12776  // this statement should rightfully NEVER be reached /
12777  return (double)0;
12778 }
12779 
12785 {
12787 
12788  // suppress compiler warning by returning dummy value /
12789  // this statement should rightfully NEVER be reached /
12790  return NULL;
12791 }
12792 
12797 void set_delta_housing_value(double delta_housing_value)
12798 {
12799  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).delta_housing_value = delta_housing_value;
12800 }
12801 
12807 {
12808  if(current_xmachine->xmachine_household) return (*current_xmachine->xmachine_household).delta_housing_value;
12809 
12810  // suppress compiler warning by returning dummy value /
12811  // this statement should rightfully NEVER be reached /
12812  return (double)0;
12813 }
12814 
12819 void set_mortgage_choice(int mortgage_choice)
12820 {
12821  if(current_xmachine->xmachine_household) (*current_xmachine->xmachine_household).mortgage_choice = mortgage_choice;
12822 }
12823 
12829 {
12831 
12832  // suppress compiler warning by returning dummy value /
12833  // this statement should rightfully NEVER be reached /
12834  return (int)0;
12835 }
12836 
12841 void set_share_firms(double share_firms)
12842 {
12843  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).share_firms = share_firms;
12844 }
12845 
12851 {
12853 
12854  // suppress compiler warning by returning dummy value /
12855  // this statement should rightfully NEVER be reached /
12856  return (double)0;
12857 }
12858 
12863 void set_share_construction_firms(double share_construction_firms)
12864 {
12865  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).share_construction_firms = share_construction_firms;
12866 }
12867 
12873 {
12874  if(current_xmachine->xmachine_equityfund) return (*current_xmachine->xmachine_equityfund).share_construction_firms;
12875 
12876  // suppress compiler warning by returning dummy value /
12877  // this statement should rightfully NEVER be reached /
12878  return (double)0;
12879 }
12880 
12885 void set_share_banks(double share_banks)
12886 {
12887  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).share_banks = share_banks;
12888 }
12889 
12895 {
12897 
12898  // suppress compiler warning by returning dummy value /
12899  // this statement should rightfully NEVER be reached /
12900  return (double)0;
12901 }
12902 
12907 void set_dividends_recieved(double dividends_recieved)
12908 {
12909  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).dividends_recieved = dividends_recieved;
12910 }
12911 
12917 {
12918  if(current_xmachine->xmachine_equityfund) return (*current_xmachine->xmachine_equityfund).dividends_recieved;
12919 
12920  // suppress compiler warning by returning dummy value /
12921  // this statement should rightfully NEVER be reached /
12922  return (double)0;
12923 }
12924 
12929 void set_dividends_retained(double dividends_retained)
12930 {
12931  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).dividends_retained = dividends_retained;
12932 }
12933 
12939 {
12940  if(current_xmachine->xmachine_equityfund) return (*current_xmachine->xmachine_equityfund).dividends_retained;
12941 
12942  // suppress compiler warning by returning dummy value /
12943  // this statement should rightfully NEVER be reached /
12944  return (double)0;
12945 }
12946 
12951 void set_firm_investment(double firm_investment)
12952 {
12953  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).firm_investment = firm_investment;
12954 }
12955 
12961 {
12963 
12964  // suppress compiler warning by returning dummy value /
12965  // this statement should rightfully NEVER be reached /
12966  return (double)0;
12967 }
12968 
12973 void set_capital_tax_rate(double capital_tax_rate)
12974 {
12975  if(current_xmachine->xmachine_equityfund) (*current_xmachine->xmachine_equityfund).capital_tax_rate = capital_tax_rate;
12976  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).capital_tax_rate = capital_tax_rate;
12977 }
12978 
12984 {
12987 
12988  // suppress compiler warning by returning dummy value /
12989  // this statement should rightfully NEVER be reached /
12990  return (double)0;
12991 }
12992 
12997 void set_loans(double loans)
12998 {
13000 }
13001 
13006 double get_loans()
13007 {
13009 
13010  // suppress compiler warning by returning dummy value /
13011  // this statement should rightfully NEVER be reached /
13012  return (double)0;
13013 }
13014 
13019 void set_loans_start(double loans_start)
13020 {
13021  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).loans_start = loans_start;
13022 }
13023 
13029 {
13030  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).loans_start;
13031 
13032  // suppress compiler warning by returning dummy value /
13033  // this statement should rightfully NEVER be reached /
13034  return (double)0;
13035 }
13036 
13041 void set_deposits(double deposits)
13042 {
13043  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).deposits = deposits;
13044 }
13045 
13051 {
13053 
13054  // suppress compiler warning by returning dummy value /
13055  // this statement should rightfully NEVER be reached /
13056  return (double)0;
13057 }
13058 
13063 void set_centralbank_debt(double centralbank_debt)
13064 {
13065  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).centralbank_debt = centralbank_debt;
13066 }
13067 
13073 {
13074  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).centralbank_debt;
13075 
13076  // suppress compiler warning by returning dummy value /
13077  // this statement should rightfully NEVER be reached /
13078  return (double)0;
13079 }
13080 
13085 void set_total_writeoffs(double total_writeoffs)
13086 {
13087  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).total_writeoffs = total_writeoffs;
13088  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).total_writeoffs = total_writeoffs;
13089 }
13090 
13096 {
13097  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).total_writeoffs;
13099 
13100  // suppress compiler warning by returning dummy value /
13101  // this statement should rightfully NEVER be reached /
13102  return (double)0;
13103 }
13104 
13109 void set_interest_rate(double interest_rate)
13110 {
13111  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).interest_rate = interest_rate;
13112  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).interest_rate = interest_rate;
13113 }
13114 
13120 {
13121  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).interest_rate;
13123 
13124  // suppress compiler warning by returning dummy value /
13125  // this statement should rightfully NEVER be reached /
13126  return (double)0;
13127 }
13128 
13133 void set_interests_accrued(double interests_accrued)
13134 {
13135  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).interests_accrued = interests_accrued;
13136  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).interests_accrued = interests_accrued;
13137 }
13138 
13144 {
13145  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).interests_accrued;
13147 
13148  // suppress compiler warning by returning dummy value /
13149  // this statement should rightfully NEVER be reached /
13150  return (double)0;
13151 }
13152 
13157 void set_interests_paid(double interests_paid)
13158 {
13159  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).interests_paid = interests_paid;
13160 }
13161 
13167 {
13168  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).interests_paid;
13169 
13170  // suppress compiler warning by returning dummy value /
13171  // this statement should rightfully NEVER be reached /
13172  return (double)0;
13173 }
13174 
13179 void set_total_dividends(double total_dividends)
13180 {
13181  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).total_dividends = total_dividends;
13182 }
13183 
13189 {
13190  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).total_dividends;
13191 
13192  // suppress compiler warning by returning dummy value /
13193  // this statement should rightfully NEVER be reached /
13194  return (double)0;
13195 }
13196 
13201 void set_total_costs(double total_costs)
13202 {
13203  if(current_xmachine->xmachine_bank) (*current_xmachine->xmachine_bank).total_costs = total_costs;
13205 }
13206 
13212 {
13213  if(current_xmachine->xmachine_bank) return (*current_xmachine->xmachine_bank).total_costs;
13215 
13216  // suppress compiler warning by returning dummy value /
13217  // this statement should rightfully NEVER be reached /
13218  return (double)0;
13219 }
13220 
13225 void set_unemployment_rate(double unemployment_rate)
13226 {
13227  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).unemployment_rate = unemployment_rate;
13228  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).unemployment_rate = unemployment_rate;
13229 }
13230 
13236 {
13239 
13240  // suppress compiler warning by returning dummy value /
13241  // this statement should rightfully NEVER be reached /
13242  return (double)0;
13243 }
13244 
13249 void set_population_size(int population_size)
13250 {
13251  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).population_size = population_size;
13252 }
13253 
13259 {
13261 
13262  // suppress compiler warning by returning dummy value /
13263  // this statement should rightfully NEVER be reached /
13264  return (int)0;
13265 }
13266 
13271 void set_labour_tax_income(double labour_tax_income)
13272 {
13273  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).labour_tax_income = labour_tax_income;
13274 }
13275 
13281 {
13283 
13284  // suppress compiler warning by returning dummy value /
13285  // this statement should rightfully NEVER be reached /
13286  return (double)0;
13287 }
13288 
13293 void set_capital_tax_income(double capital_tax_income)
13294 {
13295  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).capital_tax_income = capital_tax_income;
13296 }
13297 
13303 {
13304  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).capital_tax_income;
13305 
13306  // suppress compiler warning by returning dummy value /
13307  // this statement should rightfully NEVER be reached /
13308  return (double)0;
13309 }
13310 
13315 void set_gov_general_benefit_rate(double gov_general_benefit_rate)
13316 {
13317  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).gov_general_benefit_rate = gov_general_benefit_rate;
13318 }
13319 
13325 {
13326  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).gov_general_benefit_rate;
13327 
13328  // suppress compiler warning by returning dummy value /
13329  // this statement should rightfully NEVER be reached /
13330  return (double)0;
13331 }
13332 
13337 void set_gov_unemployment_rate(double gov_unemployment_rate)
13338 {
13339  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).gov_unemployment_rate = gov_unemployment_rate;
13340 }
13341 
13347 {
13348  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).gov_unemployment_rate;
13349 
13350  // suppress compiler warning by returning dummy value /
13351  // this statement should rightfully NEVER be reached /
13352  return (double)0;
13353 }
13354 
13359 void set_general_benefits(double general_benefits)
13360 {
13361  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).general_benefits = general_benefits;
13362 }
13363 
13369 {
13371 
13372  // suppress compiler warning by returning dummy value /
13373  // this statement should rightfully NEVER be reached /
13374  return (double)0;
13375 }
13376 
13381 void set_unemployment_benefits(double unemployment_benefits)
13382 {
13383  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).unemployment_benefits = unemployment_benefits;
13384 }
13385 
13391 {
13392  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).unemployment_benefits;
13393 
13394  // suppress compiler warning by returning dummy value /
13395  // this statement should rightfully NEVER be reached /
13396  return (double)0;
13397 }
13398 
13403 void set_earnings(double earnings)
13404 {
13406 }
13407 
13413 {
13415 
13416  // suppress compiler warning by returning dummy value /
13417  // this statement should rightfully NEVER be reached /
13418  return (double)0;
13419 }
13420 
13425 void set_centralbank_income(double centralbank_income)
13426 {
13427  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).centralbank_income = centralbank_income;
13428 }
13429 
13435 {
13436  if(current_xmachine->xmachine_government) return (*current_xmachine->xmachine_government).centralbank_income;
13437 
13438  // suppress compiler warning by returning dummy value /
13439  // this statement should rightfully NEVER be reached /
13440  return (double)0;
13441 }
13442 
13447 void set_expenditures(double expenditures)
13448 {
13449  if(current_xmachine->xmachine_government) (*current_xmachine->xmachine_government).expenditures = expenditures;
13450 }
13451 
13457 {
13459 
13460  // suppress compiler warning by returning dummy value /
13461  // this statement should rightfully NEVER be reached /
13462  return (double)0;
13463 }
13464 
13469 void set_inflation_rate(double inflation_rate)
13470 {
13471  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).inflation_rate = inflation_rate;
13472 }
13473 
13479 {
13481 
13482  // suppress compiler warning by returning dummy value /
13483  // this statement should rightfully NEVER be reached /
13484  return (double)0;
13485 }
13486 
13492 {
13493  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).consumption_goods_prices;
13494 
13495  // suppress compiler warning by returning dummy value /
13496  // this statement should rightfully NEVER be reached /
13497  return NULL;
13498 }
13499 
13505 {
13507 
13508  // suppress compiler warning by returning dummy value /
13509  // this statement should rightfully NEVER be reached /
13510  return NULL;
13511 }
13512 
13518 {
13519  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).weekly_price_averages;
13520 
13521  // suppress compiler warning by returning dummy value /
13522  // this statement should rightfully NEVER be reached /
13523  return NULL;
13524 }
13525 
13530 void set_loans_banks(double loans_banks)
13531 {
13533 }
13534 
13540 {
13542 
13543  // suppress compiler warning by returning dummy value /
13544  // this statement should rightfully NEVER be reached /
13545  return (double)0;
13546 }
13547 
13552 void set_loans_government(double loans_government)
13553 {
13554  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).loans_government = loans_government;
13555 }
13556 
13562 {
13564 
13565  // suppress compiler warning by returning dummy value /
13566  // this statement should rightfully NEVER be reached /
13567  return (double)0;
13568 }
13569 
13574 void set_fiat_money(double fiat_money)
13575 {
13577 }
13578 
13584 {
13586 
13587  // suppress compiler warning by returning dummy value /
13588  // this statement should rightfully NEVER be reached /
13589  return (double)0;
13590 }
13591 
13596 void set_liquidity_banks(double liquidity_banks)
13597 {
13598  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).liquidity_banks = liquidity_banks;
13599 }
13600 
13606 {
13608 
13609  // suppress compiler warning by returning dummy value /
13610  // this statement should rightfully NEVER be reached /
13611  return (double)0;
13612 }
13613 
13618 void set_liquidity_government(double liquidity_government)
13619 {
13620  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).liquidity_government = liquidity_government;
13621 }
13622 
13628 {
13629  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).liquidity_government;
13630 
13631  // suppress compiler warning by returning dummy value /
13632  // this statement should rightfully NEVER be reached /
13633  return (double)0;
13634 }
13635 
13640 void set_liquidity_equityfund(double liquidity_equityfund)
13641 {
13642  if(current_xmachine->xmachine_centralbank) (*current_xmachine->xmachine_centralbank).liquidity_equityfund = liquidity_equityfund;
13643 }
13644 
13650 {
13651  if(current_xmachine->xmachine_centralbank) return (*current_xmachine->xmachine_centralbank).liquidity_equityfund;
13652 
13653  // suppress compiler warning by returning dummy value /
13654  // this statement should rightfully NEVER be reached /
13655  return (double)0;
13656 }
13657 
13663 {
13665 
13666  // suppress compiler warning by returning dummy value /
13667  // this statement should rightfully NEVER be reached /
13668  return NULL;
13669 }
13670 
13676 {
13677  if(current_xmachine->xmachine_mall) return &(*current_xmachine->xmachine_mall).goods_transactions;
13678 
13679  // suppress compiler warning by returning dummy value /
13680  // this statement should rightfully NEVER be reached /
13681  return NULL;
13682 }
13683 
13689 {
13690  if(current_xmachine->xmachine_reagency) return &(*current_xmachine->xmachine_reagency).housing_transactions;
13691 
13692  // suppress compiler warning by returning dummy value /
13693  // this statement should rightfully NEVER be reached /
13694  return NULL;
13695 }
13696 
13697 
13703 {
13704  double value = 0.0;
13705  /*if (current_xmachine->xmachine_firm) value = current_xmachine->xmachine_firm->;*/
13706  /*if (current_xmachine->xmachine_household) value = current_xmachine->xmachine_household->;*/
13707  /*if (current_xmachine->xmachine_equityfund) value = current_xmachine->xmachine_equityfund->;*/
13708  /*if (current_xmachine->xmachine_bank) value = current_xmachine->xmachine_bank->;*/
13709  /*if (current_xmachine->xmachine_government) value = current_xmachine->xmachine_government->;*/
13710  /*if (current_xmachine->xmachine_centralbank) value = current_xmachine->xmachine_centralbank->;*/
13711  /*if (current_xmachine->xmachine_jpoffice) value = current_xmachine->xmachine_jpoffice->;*/
13712  /*if (current_xmachine->xmachine_mall) value = current_xmachine->xmachine_mall->;*/
13713  /*if (current_xmachine->xmachine_reagency) value = current_xmachine->xmachine_reagency->;*/
13714 
13715  return value;
13716 }
13717 
13723 {
13724  int value = 0;
13725  /*if (current_xmachine->xmachine_firm) value = current_xmachine->xmachine_firm->id;*/
13726  /*if (current_xmachine->xmachine_household) value = current_xmachine->xmachine_household->id;*/
13727  /*if (current_xmachine->xmachine_equityfund) value = current_xmachine->xmachine_equityfund->id;*/
13728  /*if (current_xmachine->xmachine_bank) value = current_xmachine->xmachine_bank->id;*/
13729  /*if (current_xmachine->xmachine_government) value = current_xmachine->xmachine_government->id;*/
13730  /*if (current_xmachine->xmachine_centralbank) value = current_xmachine->xmachine_centralbank->id;*/
13731  /*if (current_xmachine->xmachine_jpoffice) value = current_xmachine->xmachine_jpoffice->id;*/
13732  /*if (current_xmachine->xmachine_mall) value = current_xmachine->xmachine_mall->id;*/
13733  /*if (current_xmachine->xmachine_reagency) value = current_xmachine->xmachine_reagency->id;*/
13734 
13735  return value;
13736 }
13737 
13742 double agent_get_x()
13743 {
13744  double value = 0.0;
13745  /*if (current_xmachine->xmachine_firm) value = current_xmachine->xmachine_firm->0.0;*/
13746  /*if (current_xmachine->xmachine_household) value = current_xmachine->xmachine_household->0.0;*/
13747  /*if (current_xmachine->xmachine_equityfund) value = current_xmachine->xmachine_equityfund->0.0;*/
13748  /*if (current_xmachine->xmachine_bank) value = current_xmachine->xmachine_bank->0.0;*/
13749  /*if (current_xmachine->xmachine_government) value = current_xmachine->xmachine_government->0.0;*/
13750  /*if (current_xmachine->xmachine_centralbank) value = current_xmachine->xmachine_centralbank->0.0;*/
13751  /*if (current_xmachine->xmachine_jpoffice) value = current_xmachine->xmachine_jpoffice->0.0;*/
13752  /*if (current_xmachine->xmachine_mall) value = current_xmachine->xmachine_mall->0.0;*/
13753  /*if (current_xmachine->xmachine_reagency) value = current_xmachine->xmachine_reagency->0.0;*/
13754 
13755  return value;
13756 }
13761 double agent_get_y()
13762 {
13763  double value = 0.0;
13764  /*if (current_xmachine->xmachine_firm) value = current_xmachine->xmachine_firm->0.0;*/
13765  /*if (current_xmachine->xmachine_household) value = current_xmachine->xmachine_household->0.0;*/
13766  /*if (current_xmachine->xmachine_equityfund) value = current_xmachine->xmachine_equityfund->0.0;*/
13767  /*if (current_xmachine->xmachine_bank) value = current_xmachine->xmachine_bank->0.0;*/
13768  /*if (current_xmachine->xmachine_government) value = current_xmachine->xmachine_government->0.0;*/
13769  /*if (current_xmachine->xmachine_centralbank) value = current_xmachine->xmachine_centralbank->0.0;*/
13770  /*if (current_xmachine->xmachine_jpoffice) value = current_xmachine->xmachine_jpoffice->0.0;*/
13771  /*if (current_xmachine->xmachine_mall) value = current_xmachine->xmachine_mall->0.0;*/
13772  /*if (current_xmachine->xmachine_reagency) value = current_xmachine->xmachine_reagency->0.0;*/
13773 
13774  return value;
13775 }
13780 double agent_get_z()
13781 {
13782  double value = 0.0;
13783 
13784  return value;
13785 }
13786 
13797 void add_node(int node_id, double minx, double maxx, double miny, double maxy, double minz, double maxz)
13798 {
13799  node_information * current = *p_node_info;
13800  node_information * tmp = NULL;
13801 
13802  while(current)
13803  {
13804  tmp = current;
13805  current = current->next;
13806  }
13807 
13808  current = (node_information *)malloc(sizeof(node_information));
13809  CHECK_POINTER(current);
13810 
13811  if(tmp)
13812  {
13813  tmp->next = current;
13814  }
13815  else
13816  {
13817  *p_node_info = current;
13818  }
13819 
13820  current->next = NULL;
13821  current->node_id = node_id;
13822  current->agents_in_halo = 0;
13823  current->agent_total = 0;
13824  current->agents = NULL;
13825  current->firm_bank_init_loans_messages = NULL;
13826  current->firm_bank_init_deposit_messages = NULL;
13827  current->firm_bank_update_deposit_messages = NULL;
13829  current->household_bank_init_deposit_messages = NULL;
13831  current->bank_centralbank_init_debt_messages = NULL;
13836  current->gov_centralbank_init_deposit_messages = NULL;
13838  current->interest_rate_messages = NULL;
13839  current->capital_tax_rate_messages = NULL;
13840  current->labour_tax_rate_messages = NULL;
13841  current->household_jpoffice_id_messages = NULL;
13842  current->jpoffice_household_employer_messages = NULL;
13843  current->firm_jpoffice_id_messages = NULL;
13844  current->jpoffice_firm_employee_messages = NULL;
13845  current->buy_messages = NULL;
13846  current->bought_messages = NULL;
13847  current->sell_messages = NULL;
13848  current->sold_messages = NULL;
13849  current->goods_transactions_summary_messages = NULL;
13851  current->fired_messages = NULL;
13852  current->vacancy_stage1_messages = NULL;
13853  current->job_application_stage2_messages = NULL;
13854  current->job_application_stage1_messages = NULL;
13855  current->job_match_stage1_messages = NULL;
13856  current->job_change_messages = NULL;
13857  current->vacancy_stage2_messages = NULL;
13858  current->job_match_stage2_messages = NULL;
13859  current->employment_status_messages = NULL;
13860  current->firm_household_wage_payment_messages = NULL;
13861  current->firm_bank_loan_request_1_messages = NULL;
13862  current->firm_bank_loan_request_2_messages = NULL;
13863  current->bank_firm_loan_acknowledge_1_messages = NULL;
13864  current->bank_firm_loan_acknowledge_2_messages = NULL;
13866  current->household_share_messages = NULL;
13867  current->capital_tax_messages = NULL;
13868  current->labour_tax_messages = NULL;
13869  current->unemployment_benefit_messages = NULL;
13870  current->general_benefit_messages = NULL;
13871  current->fund_request_messages = NULL;
13872  current->fund_request_ack_messages = NULL;
13873  current->new_entrant_loan_messages = NULL;
13874  current->firm_bank_interest_on_loan_messages = NULL;
13875  current->loan_writeoff_messages = NULL;
13876  current->firm_bank_insolvent_account_messages = NULL;
13877  current->firm_net_profit_messages = NULL;
13878  current->bank_net_profit_messages = NULL;
13881  current->gov_centralbank_debt_request_messages = NULL;
13882  current->gov_centralbank_debt_payment_messages = NULL;
13884  current->housing_price_messages = NULL;
13885  current->buy_housing_messages = NULL;
13886  current->sell_housing_messages = NULL;
13887  current->bought_housing_messages = NULL;
13888  current->sold_housing_messages = NULL;
13889  current->bank_reagency_credibility_messages = NULL;
13890  current->mortgage_requests_messages = NULL;
13891  current->mortgage_payment_from_sale_messages = NULL;
13892  current->mortgage_payment_messages = NULL;
13893  current->mortgage_writeoff_messages = NULL;
13894  current->housing_transactions_summary_messages = NULL;
13895 
13896 
13897  current->partition_data[0] = minx;
13898  current->partition_data[1] = maxx;
13899  current->partition_data[2] = miny;
13900  current->partition_data[3] = maxy;
13901  current->partition_data[4] = minz;
13902  current->partition_data[5] = maxz;
13903 }
13904 
13909 {
13910  node_information * tmp, * head;
13911  head = *p_node_info;
13912 
13913  while(head)
13914  {
13915  tmp = head->next;
13916  free(head);
13917  head = tmp;
13918  }
13919 
13920  *p_node_info = NULL;
13921 }
13922 
13927 void clean_up(int code)
13928 {
13929  int rc;
13930  FILE *file;
13931  char data[100];
13932 
13933  free(current_xmachine);
13934  /* Free x-machine memory */
13935  freexmachines();
13936  /* Free space partitions linked list */
13937  free_node_info();
13938  /* Free output list */
13940  /* Free agent states */
13941  free_firm_states();
13944  free_bank_states();
13948  free_mall_states();
13950 
13951 
13952  /* Free index maps */
13953 
13954 
13955  /* Free message boards */
13956 
13957  rc = MB_Delete(&b_firm_bank_init_loans);
13958  #ifdef ERRCHECK
13959  if (rc != MB_SUCCESS)
13960  {
13961  fprintf(stderr, "ERROR: Could not delete 'firm_bank_init_loans' board\n");
13962  switch(rc) {
13963  case MB_ERR_INVALID:
13964  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board has not been created?\n");
13965  break;
13966  case MB_ERR_LOCKED:
13967  fprintf(stderr, "\t reason: 'firm_bank_init_loans' board is locked\n");
13968  break;
13969  case MB_ERR_INTERNAL:
13970  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13971  break;
13972  default:
13973  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
13974  break;
13975  }
13976 
13977 
13978  exit(rc);
13979  }
13980  #endif
13981 
13982  rc = MB_Delete(&b_firm_bank_init_deposit);
13983  #ifdef ERRCHECK
13984  if (rc != MB_SUCCESS)
13985  {
13986  fprintf(stderr, "ERROR: Could not delete 'firm_bank_init_deposit' board\n");
13987  switch(rc) {
13988  case MB_ERR_INVALID:
13989  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board has not been created?\n");
13990  break;
13991  case MB_ERR_LOCKED:
13992  fprintf(stderr, "\t reason: 'firm_bank_init_deposit' board is locked\n");
13993  break;
13994  case MB_ERR_INTERNAL:
13995  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13996  break;
13997  default:
13998  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
13999  break;
14000  }
14001 
14002 
14003  exit(rc);
14004  }
14005  #endif
14006 
14007  rc = MB_Delete(&b_firm_bank_update_deposit);
14008  #ifdef ERRCHECK
14009  if (rc != MB_SUCCESS)
14010  {
14011  fprintf(stderr, "ERROR: Could not delete 'firm_bank_update_deposit' board\n");
14012  switch(rc) {
14013  case MB_ERR_INVALID:
14014  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board has not been created?\n");
14015  break;
14016  case MB_ERR_LOCKED:
14017  fprintf(stderr, "\t reason: 'firm_bank_update_deposit' board is locked\n");
14018  break;
14019  case MB_ERR_INTERNAL:
14020  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14021  break;
14022  default:
14023  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14024  break;
14025  }
14026 
14027 
14028  exit(rc);
14029  }
14030  #endif
14031 
14032  rc = MB_Delete(&b_household_bank_init_mortgages);
14033  #ifdef ERRCHECK
14034  if (rc != MB_SUCCESS)
14035  {
14036  fprintf(stderr, "ERROR: Could not delete 'household_bank_init_mortgages' board\n");
14037  switch(rc) {
14038  case MB_ERR_INVALID:
14039  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board has not been created?\n");
14040  break;
14041  case MB_ERR_LOCKED:
14042  fprintf(stderr, "\t reason: 'household_bank_init_mortgages' board is locked\n");
14043  break;
14044  case MB_ERR_INTERNAL:
14045  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14046  break;
14047  default:
14048  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14049  break;
14050  }
14051 
14052 
14053  exit(rc);
14054  }
14055  #endif
14056 
14057  rc = MB_Delete(&b_household_bank_init_deposit);
14058  #ifdef ERRCHECK
14059  if (rc != MB_SUCCESS)
14060  {
14061  fprintf(stderr, "ERROR: Could not delete 'household_bank_init_deposit' board\n");
14062  switch(rc) {
14063  case MB_ERR_INVALID:
14064  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board has not been created?\n");
14065  break;
14066  case MB_ERR_LOCKED:
14067  fprintf(stderr, "\t reason: 'household_bank_init_deposit' board is locked\n");
14068  break;
14069  case MB_ERR_INTERNAL:
14070  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14071  break;
14072  default:
14073  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14074  break;
14075  }
14076 
14077 
14078  exit(rc);
14079  }
14080  #endif
14081 
14082  rc = MB_Delete(&b_household_bank_update_deposit);
14083  #ifdef ERRCHECK
14084  if (rc != MB_SUCCESS)
14085  {
14086  fprintf(stderr, "ERROR: Could not delete 'household_bank_update_deposit' board\n");
14087  switch(rc) {
14088  case MB_ERR_INVALID:
14089  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board has not been created?\n");
14090  break;
14091  case MB_ERR_LOCKED:
14092  fprintf(stderr, "\t reason: 'household_bank_update_deposit' board is locked\n");
14093  break;
14094  case MB_ERR_INTERNAL:
14095  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14096  break;
14097  default:
14098  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14099  break;
14100  }
14101 
14102 
14103  exit(rc);
14104  }
14105  #endif
14106 
14107  rc = MB_Delete(&b_bank_centralbank_init_debt);
14108  #ifdef ERRCHECK
14109  if (rc != MB_SUCCESS)
14110  {
14111  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_init_debt' board\n");
14112  switch(rc) {
14113  case MB_ERR_INVALID:
14114  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board has not been created?\n");
14115  break;
14116  case MB_ERR_LOCKED:
14117  fprintf(stderr, "\t reason: 'bank_centralbank_init_debt' board is locked\n");
14118  break;
14119  case MB_ERR_INTERNAL:
14120  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14121  break;
14122  default:
14123  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14124  break;
14125  }
14126 
14127 
14128  exit(rc);
14129  }
14130  #endif
14131 
14132  rc = MB_Delete(&b_bank_centralbank_init_deposit);
14133  #ifdef ERRCHECK
14134  if (rc != MB_SUCCESS)
14135  {
14136  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_init_deposit' board\n");
14137  switch(rc) {
14138  case MB_ERR_INVALID:
14139  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board has not been created?\n");
14140  break;
14141  case MB_ERR_LOCKED:
14142  fprintf(stderr, "\t reason: 'bank_centralbank_init_deposit' board is locked\n");
14143  break;
14144  case MB_ERR_INTERNAL:
14145  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14146  break;
14147  default:
14148  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14149  break;
14150  }
14151 
14152 
14153  exit(rc);
14154  }
14155  #endif
14156 
14157  rc = MB_Delete(&b_bank_centralbank_update_deposit);
14158  #ifdef ERRCHECK
14159  if (rc != MB_SUCCESS)
14160  {
14161  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_update_deposit' board\n");
14162  switch(rc) {
14163  case MB_ERR_INVALID:
14164  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board has not been created?\n");
14165  break;
14166  case MB_ERR_LOCKED:
14167  fprintf(stderr, "\t reason: 'bank_centralbank_update_deposit' board is locked\n");
14168  break;
14169  case MB_ERR_INTERNAL:
14170  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14171  break;
14172  default:
14173  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14174  break;
14175  }
14176 
14177 
14178  exit(rc);
14179  }
14180  #endif
14181 
14182  rc = MB_Delete(&b_fund_centralbank_init_deposit);
14183  #ifdef ERRCHECK
14184  if (rc != MB_SUCCESS)
14185  {
14186  fprintf(stderr, "ERROR: Could not delete 'fund_centralbank_init_deposit' board\n");
14187  switch(rc) {
14188  case MB_ERR_INVALID:
14189  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board has not been created?\n");
14190  break;
14191  case MB_ERR_LOCKED:
14192  fprintf(stderr, "\t reason: 'fund_centralbank_init_deposit' board is locked\n");
14193  break;
14194  case MB_ERR_INTERNAL:
14195  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14196  break;
14197  default:
14198  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14199  break;
14200  }
14201 
14202 
14203  exit(rc);
14204  }
14205  #endif
14206 
14207  rc = MB_Delete(&b_fund_centralbank_update_deposit);
14208  #ifdef ERRCHECK
14209  if (rc != MB_SUCCESS)
14210  {
14211  fprintf(stderr, "ERROR: Could not delete 'fund_centralbank_update_deposit' board\n");
14212  switch(rc) {
14213  case MB_ERR_INVALID:
14214  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board has not been created?\n");
14215  break;
14216  case MB_ERR_LOCKED:
14217  fprintf(stderr, "\t reason: 'fund_centralbank_update_deposit' board is locked\n");
14218  break;
14219  case MB_ERR_INTERNAL:
14220  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14221  break;
14222  default:
14223  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14224  break;
14225  }
14226 
14227 
14228  exit(rc);
14229  }
14230  #endif
14231 
14232  rc = MB_Delete(&b_gov_centralbank_init_deposit);
14233  #ifdef ERRCHECK
14234  if (rc != MB_SUCCESS)
14235  {
14236  fprintf(stderr, "ERROR: Could not delete 'gov_centralbank_init_deposit' board\n");
14237  switch(rc) {
14238  case MB_ERR_INVALID:
14239  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board has not been created?\n");
14240  break;
14241  case MB_ERR_LOCKED:
14242  fprintf(stderr, "\t reason: 'gov_centralbank_init_deposit' board is locked\n");
14243  break;
14244  case MB_ERR_INTERNAL:
14245  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14246  break;
14247  default:
14248  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14249  break;
14250  }
14251 
14252 
14253  exit(rc);
14254  }
14255  #endif
14256 
14257  rc = MB_Delete(&b_gov_centralbank_update_deposit);
14258  #ifdef ERRCHECK
14259  if (rc != MB_SUCCESS)
14260  {
14261  fprintf(stderr, "ERROR: Could not delete 'gov_centralbank_update_deposit' board\n");
14262  switch(rc) {
14263  case MB_ERR_INVALID:
14264  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board has not been created?\n");
14265  break;
14266  case MB_ERR_LOCKED:
14267  fprintf(stderr, "\t reason: 'gov_centralbank_update_deposit' board is locked\n");
14268  break;
14269  case MB_ERR_INTERNAL:
14270  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14271  break;
14272  default:
14273  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14274  break;
14275  }
14276 
14277 
14278  exit(rc);
14279  }
14280  #endif
14281 
14282  rc = MB_Delete(&b_interest_rate);
14283  #ifdef ERRCHECK
14284  if (rc != MB_SUCCESS)
14285  {
14286  fprintf(stderr, "ERROR: Could not delete 'interest_rate' board\n");
14287  switch(rc) {
14288  case MB_ERR_INVALID:
14289  fprintf(stderr, "\t reason: 'interest_rate' board has not been created?\n");
14290  break;
14291  case MB_ERR_LOCKED:
14292  fprintf(stderr, "\t reason: 'interest_rate' board is locked\n");
14293  break;
14294  case MB_ERR_INTERNAL:
14295  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14296  break;
14297  default:
14298  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14299  break;
14300  }
14301 
14302 
14303  exit(rc);
14304  }
14305  #endif
14306 
14307  rc = MB_Delete(&b_capital_tax_rate);
14308  #ifdef ERRCHECK
14309  if (rc != MB_SUCCESS)
14310  {
14311  fprintf(stderr, "ERROR: Could not delete 'capital_tax_rate' board\n");
14312  switch(rc) {
14313  case MB_ERR_INVALID:
14314  fprintf(stderr, "\t reason: 'capital_tax_rate' board has not been created?\n");
14315  break;
14316  case MB_ERR_LOCKED:
14317  fprintf(stderr, "\t reason: 'capital_tax_rate' board is locked\n");
14318  break;
14319  case MB_ERR_INTERNAL:
14320  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14321  break;
14322  default:
14323  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14324  break;
14325  }
14326 
14327 
14328  exit(rc);
14329  }
14330  #endif
14331 
14332  rc = MB_Delete(&b_labour_tax_rate);
14333  #ifdef ERRCHECK
14334  if (rc != MB_SUCCESS)
14335  {
14336  fprintf(stderr, "ERROR: Could not delete 'labour_tax_rate' board\n");
14337  switch(rc) {
14338  case MB_ERR_INVALID:
14339  fprintf(stderr, "\t reason: 'labour_tax_rate' board has not been created?\n");
14340  break;
14341  case MB_ERR_LOCKED:
14342  fprintf(stderr, "\t reason: 'labour_tax_rate' board is locked\n");
14343  break;
14344  case MB_ERR_INTERNAL:
14345  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14346  break;
14347  default:
14348  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14349  break;
14350  }
14351 
14352 
14353  exit(rc);
14354  }
14355  #endif
14356 
14357  rc = MB_Delete(&b_household_jpoffice_id);
14358  #ifdef ERRCHECK
14359  if (rc != MB_SUCCESS)
14360  {
14361  fprintf(stderr, "ERROR: Could not delete 'household_jpoffice_id' board\n");
14362  switch(rc) {
14363  case MB_ERR_INVALID:
14364  fprintf(stderr, "\t reason: 'household_jpoffice_id' board has not been created?\n");
14365  break;
14366  case MB_ERR_LOCKED:
14367  fprintf(stderr, "\t reason: 'household_jpoffice_id' board is locked\n");
14368  break;
14369  case MB_ERR_INTERNAL:
14370  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14371  break;
14372  default:
14373  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14374  break;
14375  }
14376 
14377 
14378  exit(rc);
14379  }
14380  #endif
14381 
14382  rc = MB_Delete(&b_jpoffice_household_employer);
14383  #ifdef ERRCHECK
14384  if (rc != MB_SUCCESS)
14385  {
14386  fprintf(stderr, "ERROR: Could not delete 'jpoffice_household_employer' board\n");
14387  switch(rc) {
14388  case MB_ERR_INVALID:
14389  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board has not been created?\n");
14390  break;
14391  case MB_ERR_LOCKED:
14392  fprintf(stderr, "\t reason: 'jpoffice_household_employer' board is locked\n");
14393  break;
14394  case MB_ERR_INTERNAL:
14395  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14396  break;
14397  default:
14398  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14399  break;
14400  }
14401 
14402 
14403  exit(rc);
14404  }
14405  #endif
14406 
14407  rc = MB_Delete(&b_firm_jpoffice_id);
14408  #ifdef ERRCHECK
14409  if (rc != MB_SUCCESS)
14410  {
14411  fprintf(stderr, "ERROR: Could not delete 'firm_jpoffice_id' board\n");
14412  switch(rc) {
14413  case MB_ERR_INVALID:
14414  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board has not been created?\n");
14415  break;
14416  case MB_ERR_LOCKED:
14417  fprintf(stderr, "\t reason: 'firm_jpoffice_id' board is locked\n");
14418  break;
14419  case MB_ERR_INTERNAL:
14420  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14421  break;
14422  default:
14423  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14424  break;
14425  }
14426 
14427 
14428  exit(rc);
14429  }
14430  #endif
14431 
14432  rc = MB_Delete(&b_jpoffice_firm_employee);
14433  #ifdef ERRCHECK
14434  if (rc != MB_SUCCESS)
14435  {
14436  fprintf(stderr, "ERROR: Could not delete 'jpoffice_firm_employee' board\n");
14437  switch(rc) {
14438  case MB_ERR_INVALID:
14439  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board has not been created?\n");
14440  break;
14441  case MB_ERR_LOCKED:
14442  fprintf(stderr, "\t reason: 'jpoffice_firm_employee' board is locked\n");
14443  break;
14444  case MB_ERR_INTERNAL:
14445  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14446  break;
14447  default:
14448  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14449  break;
14450  }
14451 
14452 
14453  exit(rc);
14454  }
14455  #endif
14456 
14457  rc = MB_Delete(&b_buy);
14458  #ifdef ERRCHECK
14459  if (rc != MB_SUCCESS)
14460  {
14461  fprintf(stderr, "ERROR: Could not delete 'buy' board\n");
14462  switch(rc) {
14463  case MB_ERR_INVALID:
14464  fprintf(stderr, "\t reason: 'buy' board has not been created?\n");
14465  break;
14466  case MB_ERR_LOCKED:
14467  fprintf(stderr, "\t reason: 'buy' board is locked\n");
14468  break;
14469  case MB_ERR_INTERNAL:
14470  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14471  break;
14472  default:
14473  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14474  break;
14475  }
14476 
14477 
14478  exit(rc);
14479  }
14480  #endif
14481 
14482  rc = MB_Delete(&b_bought);
14483  #ifdef ERRCHECK
14484  if (rc != MB_SUCCESS)
14485  {
14486  fprintf(stderr, "ERROR: Could not delete 'bought' board\n");
14487  switch(rc) {
14488  case MB_ERR_INVALID:
14489  fprintf(stderr, "\t reason: 'bought' board has not been created?\n");
14490  break;
14491  case MB_ERR_LOCKED:
14492  fprintf(stderr, "\t reason: 'bought' board is locked\n");
14493  break;
14494  case MB_ERR_INTERNAL:
14495  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14496  break;
14497  default:
14498  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14499  break;
14500  }
14501 
14502 
14503  exit(rc);
14504  }
14505  #endif
14506 
14507  rc = MB_Delete(&b_sell);
14508  #ifdef ERRCHECK
14509  if (rc != MB_SUCCESS)
14510  {
14511  fprintf(stderr, "ERROR: Could not delete 'sell' board\n");
14512  switch(rc) {
14513  case MB_ERR_INVALID:
14514  fprintf(stderr, "\t reason: 'sell' board has not been created?\n");
14515  break;
14516  case MB_ERR_LOCKED:
14517  fprintf(stderr, "\t reason: 'sell' board is locked\n");
14518  break;
14519  case MB_ERR_INTERNAL:
14520  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14521  break;
14522  default:
14523  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14524  break;
14525  }
14526 
14527 
14528  exit(rc);
14529  }
14530  #endif
14531 
14532  rc = MB_Delete(&b_sold);
14533  #ifdef ERRCHECK
14534  if (rc != MB_SUCCESS)
14535  {
14536  fprintf(stderr, "ERROR: Could not delete 'sold' board\n");
14537  switch(rc) {
14538  case MB_ERR_INVALID:
14539  fprintf(stderr, "\t reason: 'sold' board has not been created?\n");
14540  break;
14541  case MB_ERR_LOCKED:
14542  fprintf(stderr, "\t reason: 'sold' board is locked\n");
14543  break;
14544  case MB_ERR_INTERNAL:
14545  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14546  break;
14547  default:
14548  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14549  break;
14550  }
14551 
14552 
14553  exit(rc);
14554  }
14555  #endif
14556 
14557  rc = MB_Delete(&b_goods_transactions_summary);
14558  #ifdef ERRCHECK
14559  if (rc != MB_SUCCESS)
14560  {
14561  fprintf(stderr, "ERROR: Could not delete 'goods_transactions_summary' board\n");
14562  switch(rc) {
14563  case MB_ERR_INVALID:
14564  fprintf(stderr, "\t reason: 'goods_transactions_summary' board has not been created?\n");
14565  break;
14566  case MB_ERR_LOCKED:
14567  fprintf(stderr, "\t reason: 'goods_transactions_summary' board is locked\n");
14568  break;
14569  case MB_ERR_INTERNAL:
14570  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14571  break;
14572  default:
14573  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14574  break;
14575  }
14576 
14577 
14578  exit(rc);
14579  }
14580  #endif
14581 
14582  rc = MB_Delete(&b_centralbank_households_quarterly_cpi);
14583  #ifdef ERRCHECK
14584  if (rc != MB_SUCCESS)
14585  {
14586  fprintf(stderr, "ERROR: Could not delete 'centralbank_households_quarterly_cpi' board\n");
14587  switch(rc) {
14588  case MB_ERR_INVALID:
14589  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board has not been created?\n");
14590  break;
14591  case MB_ERR_LOCKED:
14592  fprintf(stderr, "\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
14593  break;
14594  case MB_ERR_INTERNAL:
14595  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14596  break;
14597  default:
14598  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14599  break;
14600  }
14601 
14602 
14603  exit(rc);
14604  }
14605  #endif
14606 
14607  rc = MB_Delete(&b_fired);
14608  #ifdef ERRCHECK
14609  if (rc != MB_SUCCESS)
14610  {
14611  fprintf(stderr, "ERROR: Could not delete 'fired' board\n");
14612  switch(rc) {
14613  case MB_ERR_INVALID:
14614  fprintf(stderr, "\t reason: 'fired' board has not been created?\n");
14615  break;
14616  case MB_ERR_LOCKED:
14617  fprintf(stderr, "\t reason: 'fired' board is locked\n");
14618  break;
14619  case MB_ERR_INTERNAL:
14620  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14621  break;
14622  default:
14623  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14624  break;
14625  }
14626 
14627 
14628  exit(rc);
14629  }
14630  #endif
14631 
14632  rc = MB_Delete(&b_vacancy_stage1);
14633  #ifdef ERRCHECK
14634  if (rc != MB_SUCCESS)
14635  {
14636  fprintf(stderr, "ERROR: Could not delete 'vacancy_stage1' board\n");
14637  switch(rc) {
14638  case MB_ERR_INVALID:
14639  fprintf(stderr, "\t reason: 'vacancy_stage1' board has not been created?\n");
14640  break;
14641  case MB_ERR_LOCKED:
14642  fprintf(stderr, "\t reason: 'vacancy_stage1' board is locked\n");
14643  break;
14644  case MB_ERR_INTERNAL:
14645  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14646  break;
14647  default:
14648  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14649  break;
14650  }
14651 
14652 
14653  exit(rc);
14654  }
14655  #endif
14656 
14657  rc = MB_Delete(&b_job_application_stage2);
14658  #ifdef ERRCHECK
14659  if (rc != MB_SUCCESS)
14660  {
14661  fprintf(stderr, "ERROR: Could not delete 'job_application_stage2' board\n");
14662  switch(rc) {
14663  case MB_ERR_INVALID:
14664  fprintf(stderr, "\t reason: 'job_application_stage2' board has not been created?\n");
14665  break;
14666  case MB_ERR_LOCKED:
14667  fprintf(stderr, "\t reason: 'job_application_stage2' board is locked\n");
14668  break;
14669  case MB_ERR_INTERNAL:
14670  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14671  break;
14672  default:
14673  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14674  break;
14675  }
14676 
14677 
14678  exit(rc);
14679  }
14680  #endif
14681 
14682  rc = MB_Delete(&b_job_application_stage1);
14683  #ifdef ERRCHECK
14684  if (rc != MB_SUCCESS)
14685  {
14686  fprintf(stderr, "ERROR: Could not delete 'job_application_stage1' board\n");
14687  switch(rc) {
14688  case MB_ERR_INVALID:
14689  fprintf(stderr, "\t reason: 'job_application_stage1' board has not been created?\n");
14690  break;
14691  case MB_ERR_LOCKED:
14692  fprintf(stderr, "\t reason: 'job_application_stage1' board is locked\n");
14693  break;
14694  case MB_ERR_INTERNAL:
14695  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14696  break;
14697  default:
14698  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14699  break;
14700  }
14701 
14702 
14703  exit(rc);
14704  }
14705  #endif
14706 
14707  rc = MB_Delete(&b_job_match_stage1);
14708  #ifdef ERRCHECK
14709  if (rc != MB_SUCCESS)
14710  {
14711  fprintf(stderr, "ERROR: Could not delete 'job_match_stage1' board\n");
14712  switch(rc) {
14713  case MB_ERR_INVALID:
14714  fprintf(stderr, "\t reason: 'job_match_stage1' board has not been created?\n");
14715  break;
14716  case MB_ERR_LOCKED:
14717  fprintf(stderr, "\t reason: 'job_match_stage1' board is locked\n");
14718  break;
14719  case MB_ERR_INTERNAL:
14720  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14721  break;
14722  default:
14723  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14724  break;
14725  }
14726 
14727 
14728  exit(rc);
14729  }
14730  #endif
14731 
14732  rc = MB_Delete(&b_job_change);
14733  #ifdef ERRCHECK
14734  if (rc != MB_SUCCESS)
14735  {
14736  fprintf(stderr, "ERROR: Could not delete 'job_change' board\n");
14737  switch(rc) {
14738  case MB_ERR_INVALID:
14739  fprintf(stderr, "\t reason: 'job_change' board has not been created?\n");
14740  break;
14741  case MB_ERR_LOCKED:
14742  fprintf(stderr, "\t reason: 'job_change' board is locked\n");
14743  break;
14744  case MB_ERR_INTERNAL:
14745  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14746  break;
14747  default:
14748  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14749  break;
14750  }
14751 
14752 
14753  exit(rc);
14754  }
14755  #endif
14756 
14757  rc = MB_Delete(&b_vacancy_stage2);
14758  #ifdef ERRCHECK
14759  if (rc != MB_SUCCESS)
14760  {
14761  fprintf(stderr, "ERROR: Could not delete 'vacancy_stage2' board\n");
14762  switch(rc) {
14763  case MB_ERR_INVALID:
14764  fprintf(stderr, "\t reason: 'vacancy_stage2' board has not been created?\n");
14765  break;
14766  case MB_ERR_LOCKED:
14767  fprintf(stderr, "\t reason: 'vacancy_stage2' board is locked\n");
14768  break;
14769  case MB_ERR_INTERNAL:
14770  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14771  break;
14772  default:
14773  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14774  break;
14775  }
14776 
14777 
14778  exit(rc);
14779  }
14780  #endif
14781 
14782  rc = MB_Delete(&b_job_match_stage2);
14783  #ifdef ERRCHECK
14784  if (rc != MB_SUCCESS)
14785  {
14786  fprintf(stderr, "ERROR: Could not delete 'job_match_stage2' board\n");
14787  switch(rc) {
14788  case MB_ERR_INVALID:
14789  fprintf(stderr, "\t reason: 'job_match_stage2' board has not been created?\n");
14790  break;
14791  case MB_ERR_LOCKED:
14792  fprintf(stderr, "\t reason: 'job_match_stage2' board is locked\n");
14793  break;
14794  case MB_ERR_INTERNAL:
14795  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14796  break;
14797  default:
14798  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14799  break;
14800  }
14801 
14802 
14803  exit(rc);
14804  }
14805  #endif
14806 
14807  rc = MB_Delete(&b_employment_status);
14808  #ifdef ERRCHECK
14809  if (rc != MB_SUCCESS)
14810  {
14811  fprintf(stderr, "ERROR: Could not delete 'employment_status' board\n");
14812  switch(rc) {
14813  case MB_ERR_INVALID:
14814  fprintf(stderr, "\t reason: 'employment_status' board has not been created?\n");
14815  break;
14816  case MB_ERR_LOCKED:
14817  fprintf(stderr, "\t reason: 'employment_status' board is locked\n");
14818  break;
14819  case MB_ERR_INTERNAL:
14820  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14821  break;
14822  default:
14823  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14824  break;
14825  }
14826 
14827 
14828  exit(rc);
14829  }
14830  #endif
14831 
14832  rc = MB_Delete(&b_firm_household_wage_payment);
14833  #ifdef ERRCHECK
14834  if (rc != MB_SUCCESS)
14835  {
14836  fprintf(stderr, "ERROR: Could not delete 'firm_household_wage_payment' board\n");
14837  switch(rc) {
14838  case MB_ERR_INVALID:
14839  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board has not been created?\n");
14840  break;
14841  case MB_ERR_LOCKED:
14842  fprintf(stderr, "\t reason: 'firm_household_wage_payment' board is locked\n");
14843  break;
14844  case MB_ERR_INTERNAL:
14845  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14846  break;
14847  default:
14848  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14849  break;
14850  }
14851 
14852 
14853  exit(rc);
14854  }
14855  #endif
14856 
14857  rc = MB_Delete(&b_firm_bank_loan_request_1);
14858  #ifdef ERRCHECK
14859  if (rc != MB_SUCCESS)
14860  {
14861  fprintf(stderr, "ERROR: Could not delete 'firm_bank_loan_request_1' board\n");
14862  switch(rc) {
14863  case MB_ERR_INVALID:
14864  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board has not been created?\n");
14865  break;
14866  case MB_ERR_LOCKED:
14867  fprintf(stderr, "\t reason: 'firm_bank_loan_request_1' board is locked\n");
14868  break;
14869  case MB_ERR_INTERNAL:
14870  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14871  break;
14872  default:
14873  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14874  break;
14875  }
14876 
14877 
14878  exit(rc);
14879  }
14880  #endif
14881 
14882  rc = MB_Delete(&b_firm_bank_loan_request_2);
14883  #ifdef ERRCHECK
14884  if (rc != MB_SUCCESS)
14885  {
14886  fprintf(stderr, "ERROR: Could not delete 'firm_bank_loan_request_2' board\n");
14887  switch(rc) {
14888  case MB_ERR_INVALID:
14889  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board has not been created?\n");
14890  break;
14891  case MB_ERR_LOCKED:
14892  fprintf(stderr, "\t reason: 'firm_bank_loan_request_2' board is locked\n");
14893  break;
14894  case MB_ERR_INTERNAL:
14895  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14896  break;
14897  default:
14898  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14899  break;
14900  }
14901 
14902 
14903  exit(rc);
14904  }
14905  #endif
14906 
14907  rc = MB_Delete(&b_bank_firm_loan_acknowledge_1);
14908  #ifdef ERRCHECK
14909  if (rc != MB_SUCCESS)
14910  {
14911  fprintf(stderr, "ERROR: Could not delete 'bank_firm_loan_acknowledge_1' board\n");
14912  switch(rc) {
14913  case MB_ERR_INVALID:
14914  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board has not been created?\n");
14915  break;
14916  case MB_ERR_LOCKED:
14917  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
14918  break;
14919  case MB_ERR_INTERNAL:
14920  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14921  break;
14922  default:
14923  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14924  break;
14925  }
14926 
14927 
14928  exit(rc);
14929  }
14930  #endif
14931 
14932  rc = MB_Delete(&b_bank_firm_loan_acknowledge_2);
14933  #ifdef ERRCHECK
14934  if (rc != MB_SUCCESS)
14935  {
14936  fprintf(stderr, "ERROR: Could not delete 'bank_firm_loan_acknowledge_2' board\n");
14937  switch(rc) {
14938  case MB_ERR_INVALID:
14939  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board has not been created?\n");
14940  break;
14941  case MB_ERR_LOCKED:
14942  fprintf(stderr, "\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
14943  break;
14944  case MB_ERR_INTERNAL:
14945  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14946  break;
14947  default:
14948  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14949  break;
14950  }
14951 
14952 
14953  exit(rc);
14954  }
14955  #endif
14956 
14957  rc = MB_Delete(&b_bank_centralbank_debt_request);
14958  #ifdef ERRCHECK
14959  if (rc != MB_SUCCESS)
14960  {
14961  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_debt_request' board\n");
14962  switch(rc) {
14963  case MB_ERR_INVALID:
14964  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board has not been created?\n");
14965  break;
14966  case MB_ERR_LOCKED:
14967  fprintf(stderr, "\t reason: 'bank_centralbank_debt_request' board is locked\n");
14968  break;
14969  case MB_ERR_INTERNAL:
14970  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14971  break;
14972  default:
14973  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14974  break;
14975  }
14976 
14977 
14978  exit(rc);
14979  }
14980  #endif
14981 
14982  rc = MB_Delete(&b_household_share);
14983  #ifdef ERRCHECK
14984  if (rc != MB_SUCCESS)
14985  {
14986  fprintf(stderr, "ERROR: Could not delete 'household_share' board\n");
14987  switch(rc) {
14988  case MB_ERR_INVALID:
14989  fprintf(stderr, "\t reason: 'household_share' board has not been created?\n");
14990  break;
14991  case MB_ERR_LOCKED:
14992  fprintf(stderr, "\t reason: 'household_share' board is locked\n");
14993  break;
14994  case MB_ERR_INTERNAL:
14995  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14996  break;
14997  default:
14998  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14999  break;
15000  }
15001 
15002 
15003  exit(rc);
15004  }
15005  #endif
15006 
15007  rc = MB_Delete(&b_capital_tax);
15008  #ifdef ERRCHECK
15009  if (rc != MB_SUCCESS)
15010  {
15011  fprintf(stderr, "ERROR: Could not delete 'capital_tax' board\n");
15012  switch(rc) {
15013  case MB_ERR_INVALID:
15014  fprintf(stderr, "\t reason: 'capital_tax' board has not been created?\n");
15015  break;
15016  case MB_ERR_LOCKED:
15017  fprintf(stderr, "\t reason: 'capital_tax' board is locked\n");
15018  break;
15019  case MB_ERR_INTERNAL:
15020  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15021  break;
15022  default:
15023  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15024  break;
15025  }
15026 
15027 
15028  exit(rc);
15029  }
15030  #endif
15031 
15032  rc = MB_Delete(&b_labour_tax);
15033  #ifdef ERRCHECK
15034  if (rc != MB_SUCCESS)
15035  {
15036  fprintf(stderr, "ERROR: Could not delete 'labour_tax' board\n");
15037  switch(rc) {
15038  case MB_ERR_INVALID:
15039  fprintf(stderr, "\t reason: 'labour_tax' board has not been created?\n");
15040  break;
15041  case MB_ERR_LOCKED:
15042  fprintf(stderr, "\t reason: 'labour_tax' board is locked\n");
15043  break;
15044  case MB_ERR_INTERNAL:
15045  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15046  break;
15047  default:
15048  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15049  break;
15050  }
15051 
15052 
15053  exit(rc);
15054  }
15055  #endif
15056 
15057  rc = MB_Delete(&b_unemployment_benefit);
15058  #ifdef ERRCHECK
15059  if (rc != MB_SUCCESS)
15060  {
15061  fprintf(stderr, "ERROR: Could not delete 'unemployment_benefit' board\n");
15062  switch(rc) {
15063  case MB_ERR_INVALID:
15064  fprintf(stderr, "\t reason: 'unemployment_benefit' board has not been created?\n");
15065  break;
15066  case MB_ERR_LOCKED:
15067  fprintf(stderr, "\t reason: 'unemployment_benefit' board is locked\n");
15068  break;
15069  case MB_ERR_INTERNAL:
15070  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15071  break;
15072  default:
15073  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15074  break;
15075  }
15076 
15077 
15078  exit(rc);
15079  }
15080  #endif
15081 
15082  rc = MB_Delete(&b_general_benefit);
15083  #ifdef ERRCHECK
15084  if (rc != MB_SUCCESS)
15085  {
15086  fprintf(stderr, "ERROR: Could not delete 'general_benefit' board\n");
15087  switch(rc) {
15088  case MB_ERR_INVALID:
15089  fprintf(stderr, "\t reason: 'general_benefit' board has not been created?\n");
15090  break;
15091  case MB_ERR_LOCKED:
15092  fprintf(stderr, "\t reason: 'general_benefit' board is locked\n");
15093  break;
15094  case MB_ERR_INTERNAL:
15095  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15096  break;
15097  default:
15098  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15099  break;
15100  }
15101 
15102 
15103  exit(rc);
15104  }
15105  #endif
15106 
15107  rc = MB_Delete(&b_fund_request);
15108  #ifdef ERRCHECK
15109  if (rc != MB_SUCCESS)
15110  {
15111  fprintf(stderr, "ERROR: Could not delete 'fund_request' board\n");
15112  switch(rc) {
15113  case MB_ERR_INVALID:
15114  fprintf(stderr, "\t reason: 'fund_request' board has not been created?\n");
15115  break;
15116  case MB_ERR_LOCKED:
15117  fprintf(stderr, "\t reason: 'fund_request' board is locked\n");
15118  break;
15119  case MB_ERR_INTERNAL:
15120  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15121  break;
15122  default:
15123  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15124  break;
15125  }
15126 
15127 
15128  exit(rc);
15129  }
15130  #endif
15131 
15132  rc = MB_Delete(&b_fund_request_ack);
15133  #ifdef ERRCHECK
15134  if (rc != MB_SUCCESS)
15135  {
15136  fprintf(stderr, "ERROR: Could not delete 'fund_request_ack' board\n");
15137  switch(rc) {
15138  case MB_ERR_INVALID:
15139  fprintf(stderr, "\t reason: 'fund_request_ack' board has not been created?\n");
15140  break;
15141  case MB_ERR_LOCKED:
15142  fprintf(stderr, "\t reason: 'fund_request_ack' board is locked\n");
15143  break;
15144  case MB_ERR_INTERNAL:
15145  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15146  break;
15147  default:
15148  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15149  break;
15150  }
15151 
15152 
15153  exit(rc);
15154  }
15155  #endif
15156 
15157  rc = MB_Delete(&b_new_entrant_loan);
15158  #ifdef ERRCHECK
15159  if (rc != MB_SUCCESS)
15160  {
15161  fprintf(stderr, "ERROR: Could not delete 'new_entrant_loan' board\n");
15162  switch(rc) {
15163  case MB_ERR_INVALID:
15164  fprintf(stderr, "\t reason: 'new_entrant_loan' board has not been created?\n");
15165  break;
15166  case MB_ERR_LOCKED:
15167  fprintf(stderr, "\t reason: 'new_entrant_loan' board is locked\n");
15168  break;
15169  case MB_ERR_INTERNAL:
15170  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15171  break;
15172  default:
15173  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15174  break;
15175  }
15176 
15177 
15178  exit(rc);
15179  }
15180  #endif
15181 
15182  rc = MB_Delete(&b_firm_bank_interest_on_loan);
15183  #ifdef ERRCHECK
15184  if (rc != MB_SUCCESS)
15185  {
15186  fprintf(stderr, "ERROR: Could not delete 'firm_bank_interest_on_loan' board\n");
15187  switch(rc) {
15188  case MB_ERR_INVALID:
15189  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board has not been created?\n");
15190  break;
15191  case MB_ERR_LOCKED:
15192  fprintf(stderr, "\t reason: 'firm_bank_interest_on_loan' board is locked\n");
15193  break;
15194  case MB_ERR_INTERNAL:
15195  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15196  break;
15197  default:
15198  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15199  break;
15200  }
15201 
15202 
15203  exit(rc);
15204  }
15205  #endif
15206 
15207  rc = MB_Delete(&b_loan_writeoff);
15208  #ifdef ERRCHECK
15209  if (rc != MB_SUCCESS)
15210  {
15211  fprintf(stderr, "ERROR: Could not delete 'loan_writeoff' board\n");
15212  switch(rc) {
15213  case MB_ERR_INVALID:
15214  fprintf(stderr, "\t reason: 'loan_writeoff' board has not been created?\n");
15215  break;
15216  case MB_ERR_LOCKED:
15217  fprintf(stderr, "\t reason: 'loan_writeoff' board is locked\n");
15218  break;
15219  case MB_ERR_INTERNAL:
15220  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15221  break;
15222  default:
15223  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15224  break;
15225  }
15226 
15227 
15228  exit(rc);
15229  }
15230  #endif
15231 
15232  rc = MB_Delete(&b_firm_bank_insolvent_account);
15233  #ifdef ERRCHECK
15234  if (rc != MB_SUCCESS)
15235  {
15236  fprintf(stderr, "ERROR: Could not delete 'firm_bank_insolvent_account' board\n");
15237  switch(rc) {
15238  case MB_ERR_INVALID:
15239  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board has not been created?\n");
15240  break;
15241  case MB_ERR_LOCKED:
15242  fprintf(stderr, "\t reason: 'firm_bank_insolvent_account' board is locked\n");
15243  break;
15244  case MB_ERR_INTERNAL:
15245  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15246  break;
15247  default:
15248  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15249  break;
15250  }
15251 
15252 
15253  exit(rc);
15254  }
15255  #endif
15256 
15257  rc = MB_Delete(&b_firm_net_profit);
15258  #ifdef ERRCHECK
15259  if (rc != MB_SUCCESS)
15260  {
15261  fprintf(stderr, "ERROR: Could not delete 'firm_net_profit' board\n");
15262  switch(rc) {
15263  case MB_ERR_INVALID:
15264  fprintf(stderr, "\t reason: 'firm_net_profit' board has not been created?\n");
15265  break;
15266  case MB_ERR_LOCKED:
15267  fprintf(stderr, "\t reason: 'firm_net_profit' board is locked\n");
15268  break;
15269  case MB_ERR_INTERNAL:
15270  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15271  break;
15272  default:
15273  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15274  break;
15275  }
15276 
15277 
15278  exit(rc);
15279  }
15280  #endif
15281 
15282  rc = MB_Delete(&b_bank_net_profit);
15283  #ifdef ERRCHECK
15284  if (rc != MB_SUCCESS)
15285  {
15286  fprintf(stderr, "ERROR: Could not delete 'bank_net_profit' board\n");
15287  switch(rc) {
15288  case MB_ERR_INVALID:
15289  fprintf(stderr, "\t reason: 'bank_net_profit' board has not been created?\n");
15290  break;
15291  case MB_ERR_LOCKED:
15292  fprintf(stderr, "\t reason: 'bank_net_profit' board is locked\n");
15293  break;
15294  case MB_ERR_INTERNAL:
15295  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15296  break;
15297  default:
15298  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15299  break;
15300  }
15301 
15302 
15303  exit(rc);
15304  }
15305  #endif
15306 
15307  rc = MB_Delete(&b_bank_centralbank_interest_payment);
15308  #ifdef ERRCHECK
15309  if (rc != MB_SUCCESS)
15310  {
15311  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_interest_payment' board\n");
15312  switch(rc) {
15313  case MB_ERR_INVALID:
15314  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board has not been created?\n");
15315  break;
15316  case MB_ERR_LOCKED:
15317  fprintf(stderr, "\t reason: 'bank_centralbank_interest_payment' board is locked\n");
15318  break;
15319  case MB_ERR_INTERNAL:
15320  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15321  break;
15322  default:
15323  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15324  break;
15325  }
15326 
15327 
15328  exit(rc);
15329  }
15330  #endif
15331 
15332  rc = MB_Delete(&b_bank_centralbank_debt_payment);
15333  #ifdef ERRCHECK
15334  if (rc != MB_SUCCESS)
15335  {
15336  fprintf(stderr, "ERROR: Could not delete 'bank_centralbank_debt_payment' board\n");
15337  switch(rc) {
15338  case MB_ERR_INVALID:
15339  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board has not been created?\n");
15340  break;
15341  case MB_ERR_LOCKED:
15342  fprintf(stderr, "\t reason: 'bank_centralbank_debt_payment' board is locked\n");
15343  break;
15344  case MB_ERR_INTERNAL:
15345  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15346  break;
15347  default:
15348  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15349  break;
15350  }
15351 
15352 
15353  exit(rc);
15354  }
15355  #endif
15356 
15357  rc = MB_Delete(&b_gov_centralbank_debt_request);
15358  #ifdef ERRCHECK
15359  if (rc != MB_SUCCESS)
15360  {
15361  fprintf(stderr, "ERROR: Could not delete 'gov_centralbank_debt_request' board\n");
15362  switch(rc) {
15363  case MB_ERR_INVALID:
15364  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board has not been created?\n");
15365  break;
15366  case MB_ERR_LOCKED:
15367  fprintf(stderr, "\t reason: 'gov_centralbank_debt_request' board is locked\n");
15368  break;
15369  case MB_ERR_INTERNAL:
15370  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15371  break;
15372  default:
15373  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15374  break;
15375  }
15376 
15377 
15378  exit(rc);
15379  }
15380  #endif
15381 
15382  rc = MB_Delete(&b_gov_centralbank_debt_payment);
15383  #ifdef ERRCHECK
15384  if (rc != MB_SUCCESS)
15385  {
15386  fprintf(stderr, "ERROR: Could not delete 'gov_centralbank_debt_payment' board\n");
15387  switch(rc) {
15388  case MB_ERR_INVALID:
15389  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board has not been created?\n");
15390  break;
15391  case MB_ERR_LOCKED:
15392  fprintf(stderr, "\t reason: 'gov_centralbank_debt_payment' board is locked\n");
15393  break;
15394  case MB_ERR_INTERNAL:
15395  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15396  break;
15397  default:
15398  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15399  break;
15400  }
15401 
15402 
15403  exit(rc);
15404  }
15405  #endif
15406 
15407  rc = MB_Delete(&b_centralbank_government_profit);
15408  #ifdef ERRCHECK
15409  if (rc != MB_SUCCESS)
15410  {
15411  fprintf(stderr, "ERROR: Could not delete 'centralbank_government_profit' board\n");
15412  switch(rc) {
15413  case MB_ERR_INVALID:
15414  fprintf(stderr, "\t reason: 'centralbank_government_profit' board has not been created?\n");
15415  break;
15416  case MB_ERR_LOCKED:
15417  fprintf(stderr, "\t reason: 'centralbank_government_profit' board is locked\n");
15418  break;
15419  case MB_ERR_INTERNAL:
15420  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15421  break;
15422  default:
15423  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15424  break;
15425  }
15426 
15427 
15428  exit(rc);
15429  }
15430  #endif
15431 
15432  rc = MB_Delete(&b_housing_price);
15433  #ifdef ERRCHECK
15434  if (rc != MB_SUCCESS)
15435  {
15436  fprintf(stderr, "ERROR: Could not delete 'housing_price' board\n");
15437  switch(rc) {
15438  case MB_ERR_INVALID:
15439  fprintf(stderr, "\t reason: 'housing_price' board has not been created?\n");
15440  break;
15441  case MB_ERR_LOCKED:
15442  fprintf(stderr, "\t reason: 'housing_price' board is locked\n");
15443  break;
15444  case MB_ERR_INTERNAL:
15445  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15446  break;
15447  default:
15448  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15449  break;
15450  }
15451 
15452 
15453  exit(rc);
15454  }
15455  #endif
15456 
15457  rc = MB_Delete(&b_buy_housing);
15458  #ifdef ERRCHECK
15459  if (rc != MB_SUCCESS)
15460  {
15461  fprintf(stderr, "ERROR: Could not delete 'buy_housing' board\n");
15462  switch(rc) {
15463  case MB_ERR_INVALID:
15464  fprintf(stderr, "\t reason: 'buy_housing' board has not been created?\n");
15465  break;
15466  case MB_ERR_LOCKED:
15467  fprintf(stderr, "\t reason: 'buy_housing' board is locked\n");
15468  break;
15469  case MB_ERR_INTERNAL:
15470  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15471  break;
15472  default:
15473  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15474  break;
15475  }
15476 
15477 
15478  exit(rc);
15479  }
15480  #endif
15481 
15482  rc = MB_Delete(&b_sell_housing);
15483  #ifdef ERRCHECK
15484  if (rc != MB_SUCCESS)
15485  {
15486  fprintf(stderr, "ERROR: Could not delete 'sell_housing' board\n");
15487  switch(rc) {
15488  case MB_ERR_INVALID:
15489  fprintf(stderr, "\t reason: 'sell_housing' board has not been created?\n");
15490  break;
15491  case MB_ERR_LOCKED:
15492  fprintf(stderr, "\t reason: 'sell_housing' board is locked\n");
15493  break;
15494  case MB_ERR_INTERNAL:
15495  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15496  break;
15497  default:
15498  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15499  break;
15500  }
15501 
15502 
15503  exit(rc);
15504  }
15505  #endif
15506 
15507  rc = MB_Delete(&b_bought_housing);
15508  #ifdef ERRCHECK
15509  if (rc != MB_SUCCESS)
15510  {
15511  fprintf(stderr, "ERROR: Could not delete 'bought_housing' board\n");
15512  switch(rc) {
15513  case MB_ERR_INVALID:
15514  fprintf(stderr, "\t reason: 'bought_housing' board has not been created?\n");
15515  break;
15516  case MB_ERR_LOCKED:
15517  fprintf(stderr, "\t reason: 'bought_housing' board is locked\n");
15518  break;
15519  case MB_ERR_INTERNAL:
15520  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15521  break;
15522  default:
15523  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15524  break;
15525  }
15526 
15527 
15528  exit(rc);
15529  }
15530  #endif
15531 
15532  rc = MB_Delete(&b_sold_housing);
15533  #ifdef ERRCHECK
15534  if (rc != MB_SUCCESS)
15535  {
15536  fprintf(stderr, "ERROR: Could not delete 'sold_housing' board\n");
15537  switch(rc) {
15538  case MB_ERR_INVALID:
15539  fprintf(stderr, "\t reason: 'sold_housing' board has not been created?\n");
15540  break;
15541  case MB_ERR_LOCKED:
15542  fprintf(stderr, "\t reason: 'sold_housing' board is locked\n");
15543  break;
15544  case MB_ERR_INTERNAL:
15545  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15546  break;
15547  default:
15548  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15549  break;
15550  }
15551 
15552 
15553  exit(rc);
15554  }
15555  #endif
15556 
15557  rc = MB_Delete(&b_bank_reagency_credibility);
15558  #ifdef ERRCHECK
15559  if (rc != MB_SUCCESS)
15560  {
15561  fprintf(stderr, "ERROR: Could not delete 'bank_reagency_credibility' board\n");
15562  switch(rc) {
15563  case MB_ERR_INVALID:
15564  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board has not been created?\n");
15565  break;
15566  case MB_ERR_LOCKED:
15567  fprintf(stderr, "\t reason: 'bank_reagency_credibility' board is locked\n");
15568  break;
15569  case MB_ERR_INTERNAL:
15570  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15571  break;
15572  default:
15573  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15574  break;
15575  }
15576 
15577 
15578  exit(rc);
15579  }
15580  #endif
15581 
15582  rc = MB_Delete(&b_mortgage_requests);
15583  #ifdef ERRCHECK
15584  if (rc != MB_SUCCESS)
15585  {
15586  fprintf(stderr, "ERROR: Could not delete 'mortgage_requests' board\n");
15587  switch(rc) {
15588  case MB_ERR_INVALID:
15589  fprintf(stderr, "\t reason: 'mortgage_requests' board has not been created?\n");
15590  break;
15591  case MB_ERR_LOCKED:
15592  fprintf(stderr, "\t reason: 'mortgage_requests' board is locked\n");
15593  break;
15594  case MB_ERR_INTERNAL:
15595  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15596  break;
15597  default:
15598  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15599  break;
15600  }
15601 
15602 
15603  exit(rc);
15604  }
15605  #endif
15606 
15607  rc = MB_Delete(&b_mortgage_payment_from_sale);
15608  #ifdef ERRCHECK
15609  if (rc != MB_SUCCESS)
15610  {
15611  fprintf(stderr, "ERROR: Could not delete 'mortgage_payment_from_sale' board\n");
15612  switch(rc) {
15613  case MB_ERR_INVALID:
15614  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board has not been created?\n");
15615  break;
15616  case MB_ERR_LOCKED:
15617  fprintf(stderr, "\t reason: 'mortgage_payment_from_sale' board is locked\n");
15618  break;
15619  case MB_ERR_INTERNAL:
15620  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15621  break;
15622  default:
15623  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15624  break;
15625  }
15626 
15627 
15628  exit(rc);
15629  }
15630  #endif
15631 
15632  rc = MB_Delete(&b_mortgage_payment);
15633  #ifdef ERRCHECK
15634  if (rc != MB_SUCCESS)
15635  {
15636  fprintf(stderr, "ERROR: Could not delete 'mortgage_payment' board\n");
15637  switch(rc) {
15638  case MB_ERR_INVALID:
15639  fprintf(stderr, "\t reason: 'mortgage_payment' board has not been created?\n");
15640  break;
15641  case MB_ERR_LOCKED:
15642  fprintf(stderr, "\t reason: 'mortgage_payment' board is locked\n");
15643  break;
15644  case MB_ERR_INTERNAL:
15645  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15646  break;
15647  default:
15648  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15649  break;
15650  }
15651 
15652 
15653  exit(rc);
15654  }
15655  #endif
15656 
15657  rc = MB_Delete(&b_mortgage_writeoff);
15658  #ifdef ERRCHECK
15659  if (rc != MB_SUCCESS)
15660  {
15661  fprintf(stderr, "ERROR: Could not delete 'mortgage_writeoff' board\n");
15662  switch(rc) {
15663  case MB_ERR_INVALID:
15664  fprintf(stderr, "\t reason: 'mortgage_writeoff' board has not been created?\n");
15665  break;
15666  case MB_ERR_LOCKED:
15667  fprintf(stderr, "\t reason: 'mortgage_writeoff' board is locked\n");
15668  break;
15669  case MB_ERR_INTERNAL:
15670  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15671  break;
15672  default:
15673  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15674  break;
15675  }
15676 
15677 
15678  exit(rc);
15679  }
15680  #endif
15681 
15682  rc = MB_Delete(&b_housing_transactions_summary);
15683  #ifdef ERRCHECK
15684  if (rc != MB_SUCCESS)
15685  {
15686  fprintf(stderr, "ERROR: Could not delete 'housing_transactions_summary' board\n");
15687  switch(rc) {
15688  case MB_ERR_INVALID:
15689  fprintf(stderr, "\t reason: 'housing_transactions_summary' board has not been created?\n");
15690  break;
15691  case MB_ERR_LOCKED:
15692  fprintf(stderr, "\t reason: 'housing_transactions_summary' board is locked\n");
15693  break;
15694  case MB_ERR_INTERNAL:
15695  fprintf(stderr, "\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15696  break;
15697  default:
15698  fprintf(stderr, "\t MB_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15699  break;
15700  }
15701 
15702 
15703  exit(rc);
15704  }
15705  #endif
15706 
15707 
15708  rc = MB_Env_Finalise();
15709  #ifdef ERRCHECK
15710  if (rc != MB_SUCCESS)
15711  {
15712  fprintf(stderr, "ERROR: Could not finalise MB environment\n");
15713  switch(rc) {
15714  case MB_ERR_ENV:
15715  fprintf(stderr, "\t reason: MB environment not yet started?\n");
15716  break;
15717  default:
15718  fprintf(stderr, "\t MB_Env_Finalise returned error code: %d (see libmboard docs for details)\n", rc);
15719  break;
15720  }
15721 
15722 
15723  exit(rc);
15724  }
15725  #endif
15726 
15727 
15728 
15729  /* Write log file */
15730  sprintf(data, "%slog.xml", outputpath);
15731  file = fopen(data, "a");
15732  fputs("<!-- <totaltime> unit: seconds -->\n", file);
15733  fputs("<totaltime>", file);
15734  sprintf(data, "%.3f", total_time);
15735  fputs(data, file);
15736  fputs("</totaltime>\n", file);
15737  /*fputs("<totalmessages>", file);
15738  sprintf(data, "%i", total_messages);
15739  fputs(data, file);
15740  fputs("</totalmessages>", file);*/
15741  fputs("</model_run>", file);
15742  fclose(file);
15743 
15744 
15745  if(code != 0)
15746  {
15747  printf("*** Error: ");
15748  if(code == 100) printf("cannot handle specified number of space partitions");
15749  if(code == 101) printf("could not find number of space partitions config in file");
15750 
15751  printf(" ***");
15752  exit(0);
15753  }
15754 }
15755 
15756 
15761 {
15762 /* node_information * node_info;
15763  xmachine * before_xmachine, * temp_xmachine;
15764  xmachine ** p_temp_xmachine;
15765  double x_xmachine, y_xmachine, z_xmachine;
15766  current_xmachine = *p_xmachine;
15767  before_xmachine = NULL;
15768  while(current_xmachine)
15769  {
15770  if(current_xmachine->xmachine_firm != NULL)
15771  {
15772  x_xmachine = current_xmachine->xmachine_firm->0.0;
15773  y_xmachine = current_xmachine->xmachine_firm->0.0;
15774  z_xmachine = 0.0;
15775  }
15776  else if(current_xmachine->xmachine_household != NULL)
15777  {
15778  x_xmachine = current_xmachine->xmachine_household->0.0;
15779  y_xmachine = current_xmachine->xmachine_household->0.0;
15780  z_xmachine = 0.0;
15781  }
15782  else if(current_xmachine->xmachine_equityfund != NULL)
15783  {
15784  x_xmachine = current_xmachine->xmachine_equityfund->0.0;
15785  y_xmachine = current_xmachine->xmachine_equityfund->0.0;
15786  z_xmachine = 0.0;
15787  }
15788  else if(current_xmachine->xmachine_bank != NULL)
15789  {
15790  x_xmachine = current_xmachine->xmachine_bank->0.0;
15791  y_xmachine = current_xmachine->xmachine_bank->0.0;
15792  z_xmachine = 0.0;
15793  }
15794  else if(current_xmachine->xmachine_government != NULL)
15795  {
15796  x_xmachine = current_xmachine->xmachine_government->0.0;
15797  y_xmachine = current_xmachine->xmachine_government->0.0;
15798  z_xmachine = 0.0;
15799  }
15800  else if(current_xmachine->xmachine_centralbank != NULL)
15801  {
15802  x_xmachine = current_xmachine->xmachine_centralbank->0.0;
15803  y_xmachine = current_xmachine->xmachine_centralbank->0.0;
15804  z_xmachine = 0.0;
15805  }
15806  else if(current_xmachine->xmachine_jpoffice != NULL)
15807  {
15808  x_xmachine = current_xmachine->xmachine_jpoffice->0.0;
15809  y_xmachine = current_xmachine->xmachine_jpoffice->0.0;
15810  z_xmachine = 0.0;
15811  }
15812  else if(current_xmachine->xmachine_mall != NULL)
15813  {
15814  x_xmachine = current_xmachine->xmachine_mall->0.0;
15815  y_xmachine = current_xmachine->xmachine_mall->0.0;
15816  z_xmachine = 0.0;
15817  }
15818  else if(current_xmachine->xmachine_reagency != NULL)
15819  {
15820  x_xmachine = current_xmachine->xmachine_reagency->0.0;
15821  y_xmachine = current_xmachine->xmachine_reagency->0.0;
15822  z_xmachine = 0.0;
15823  }
15824 
15825  if(x_xmachine < current_node->partition_data[0] ||
15826  x_xmachine > current_node->partition_data[1] ||
15827  y_xmachine < current_node->partition_data[2] ||
15828  y_xmachine > current_node->partition_data[3] ||
15829  z_xmachine < current_node->partition_data[4] ||
15830  z_xmachine > current_node->partition_data[5])
15831  {
15832  node_info = *p_node_info;
15833  while(node_info)
15834  {
15835  if(node_info->node_id != current_node->node_id &&
15836  node_info->partition_data[0] < x_xmachine && node_info->partition_data[1] > x_xmachine &&
15837  node_info->partition_data[2] < y_xmachine && node_info->partition_data[3] > y_xmachine &&
15838  node_info->partition_data[4] < z_xmachine && node_info->partition_data[5] > z_xmachine)
15839  {
15840  // Remove agent
15841  if(before_xmachine) before_xmachine->next = current_xmachine->next;
15842  else *p_xmachine = current_xmachine->next;
15843  current_node->agent_total--;
15844  // Add agent
15845  p_temp_xmachine = &node_info->agents;
15846  temp_xmachine = *p_temp_xmachine;
15847  current_xmachine->next = temp_xmachine;
15848  *p_temp_xmachine = current_xmachine;
15849  node_info->agent_total++;
15850  node_info = NULL;
15851  }
15852  else node_info = node_info->next;
15853  }
15854  }
15855  else before_xmachine = current_xmachine;
15856 
15857  if(before_xmachine) current_xmachine = before_xmachine->next;
15858  else current_xmachine = NULL;
15859  }*/
15860 }
15861 
15862 
15868 {
15869  (*array).size = 0;
15870  (*array).total_size = ARRAY_BLOCK_SIZE;
15871  (*array).array = (int *)malloc(ARRAY_BLOCK_SIZE * sizeof(int));
15872  CHECK_POINTER((*array).array);
15873 }
15874 
15880 {
15881  (*array).size = 0;
15882 }
15883 
15889 {
15890  free((*array).array);
15891 }
15892 
15894 {
15895  int i;
15896  //to = init_int_array();
15897 
15898  for (i = 0; i < (*from).size; i++)
15899  {
15900  add_int(to, (*from).array[i]);
15901  }
15902 }
15903 
15908 /*void sort_int_array(int_array * array)
15909 {
15910  int i, j, temp;
15911 
15912  for(i=0; i<((*array).size-1); i++)
15913  {
15914  for(j=0; j<((*array).size-1)-i; j++)
15915  {
15916  if(*((*array).array+j+1) < *((*array).array+j))
15917  {
15918  temp = *((*array).(*array)+j);
15919  *((*array).array+j) = *((*array).array+j+1);
15920  *((*array).array+j+1) = temp;
15921  }
15922  }
15923  }
15924 }*/
15925 
15932 /*int quicksort_int(int array, int elements)
15933 {
15934  #define LEVEL 1000
15935  int pivot, begin[LEVEL], end[LEVEL], i=0, left, right ;
15936  begin[0]=0; end[0]=elements;
15937  while (i>=0)
15938  {
15939  left=begin[i]; right=end[i]-1;
15940  if (left<right)
15941  {
15942  pivot=array[left]; if (i==LEVEL-1) return 1;
15943  while (left<right)
15944  {
15945  while (array[right]>=pivot && left<right) right--;
15946  if (left<right) array[left++]=array[right];
15947  while (array[left]<=pivot && left<right) left++;
15948  if (left<right) array[right--]=array[left];
15949  }
15950  array[left]=pivot;
15951  begin[i+1]=left+1;
15952  end[i+1]=end[i];
15953  end[i++]=left;
15954  }
15955  else
15956  {
15957  i--;
15958  }
15959  }
15960  return 0;
15961 }*/
15962 
15968 void add_int(int_array * array, int new_int)
15969 {
15970  if((*array).size == (*array).total_size)
15971  {
15972  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
15973  (*array).array = (int *)realloc((*array).array, ((*array).total_size * sizeof(int)));
15974  }
15975  (*array).array[(*array).size] = new_int;
15976  (*array).size++;
15977 }
15978 
15984 void remove_int(int_array * array, int index)
15985 {
15986  int i;
15987 
15988  if(index < (*array).size)
15989  {
15990  /* memcopy?? */
15991  for(i = index; i < (*array).size - 1; i++)
15992  {
15993  (*array).array[i] = (*array).array[i+1];
15994  }
15995  (*array).size--;
15996  }
15997 }
15998 
16004 {
16005  int i;
16006 
16007  for(i=0; i<(*array).size; i++)
16008  {
16009  printf("%d> %d", i, (*array).array[i]);
16010  }
16011 }
16012 
16018 {
16019  (*array).size = 0;
16020  (*array).total_size = ARRAY_BLOCK_SIZE;
16021  (*array).array = (float *)malloc(ARRAY_BLOCK_SIZE * sizeof(float));
16022  CHECK_POINTER((*array).array);
16023 }
16024 
16030 {
16031  (*array).size = 0;
16032 }
16033 
16039 {
16040  free((*array).array);
16041 }
16042 
16044 {
16045  int i;
16046  //to = init_float_array();
16047 
16048  for (i = 0; i < (*from).size; i++)
16049  {
16050  add_float(to, (*from).array[i]);
16051  }
16052 }
16053 
16058 /*void sort_float_array(float_array array)
16059 {
16060  int i, j;
16061  float temp;
16062  // Using bubble sorts nested loops //
16063  for(i=0; i<(array.size-1); i++)
16064  {
16065  for(j=0; j<(array.size-1)-i; j++)
16066  {
16067  // Comparing the values between neighbours //
16068  if(*(array.array+j+1) < *(array.array+j))
16069  {
16070  // Swap neighbours //
16071  temp = *(array.array+j);
16072  *(array.array+j) = *(array.array+j+1);
16073  *(array.array+j+1) = temp;
16074  }
16075  }
16076  }
16077 }*/
16078 
16085 /*int quicksort_float(float array, int elements)
16086 {
16087  #define LEVEL 1000
16088  int i=0, left, right ;
16089  float pivot, begin[LEVEL], end[LEVEL];
16090  begin[0]=0; end[0]=elements;
16091  while (i>=0)
16092  {
16093  left=begin[i]; right=end[i]-1;
16094  if (left<right)
16095  {
16096  pivot=array[left]; if (i==LEVEL-1) return 1;
16097  while (left<right)
16098  {
16099  while (array[right]>=pivot && left<right) right--;
16100  if (left<right) array[left++]=array[right];
16101  while (array[left]<=pivot && left<right) left++;
16102  if (left<right) array[right--]=array[left];
16103  }
16104  array[left]=pivot;
16105  begin[i+1]=left+1;
16106  end[i+1]=end[i];
16107  end[i++]=left;
16108  }
16109  else
16110  {
16111  i--;
16112  }
16113  }
16114  return 0;
16115 }*/
16116 
16122 void add_float(float_array * array, float new_float)
16123 {
16124  if((*array).size == (*array).total_size)
16125  {
16126  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16127  (*array).array = (float *)realloc((*array).array, ((*array).total_size * sizeof(float)));
16128  }
16129  (*array).array[(*array).size] = new_float;
16130  (*array).size++;
16131 }
16132 
16138 void remove_float(float_array * array, int index)
16139 {
16140  int i;
16141 
16142  if(index < (*array).size)
16143  {
16144  /* memcopy?? */
16145  for(i = index; i < (*array).size - 1; i++)
16146  {
16147  (*array).array[i] = (*array).array[i+1];
16148  }
16149  (*array).size--;
16150  }
16151 }
16152 
16158 {
16159  int i;
16160  /* printf(""); // compiler does not like empty prfloats */
16161  for(i=0; i<(*array).size; i++)
16162  {
16163  printf("%d> %f", i, (*array).array[i]);
16164  }
16165 }
16166 
16172 {
16173  (*array).size = 0;
16174  (*array).total_size = ARRAY_BLOCK_SIZE;
16175  (*array).array = (double *)malloc(ARRAY_BLOCK_SIZE * sizeof(double));
16176  CHECK_POINTER((*array).array);
16177 }
16178 
16184 {
16185  (*array).size = 0;
16186 }
16187 
16193 {
16194  free((*array).array);
16195 }
16196 
16198 {
16199  int i;
16200  //to = init_double_array();
16201 
16202  for (i = 0; i < (*from).size; i++)
16203  {
16204  add_double(to, (*from).array[i]);
16205  }
16206 }
16207 
16212 /*void sort_double_array(double_array array)
16213 {
16214  int i, j;
16215  double temp;
16216 
16217  // Using bubble sorts nested loops //
16218  for(i=0; i<(array.size-1); i++)
16219  {
16220  for(j=0; j<(array.size-1)-i; j++)
16221  {
16222  // Comparing the values between neighbours //
16223  if(*(array.array+j+1) < *(array.array+j))
16224  {
16225  // Swap neighbours //
16226  temp = *(array.array+j);
16227  *(array.array+j) = *(array.array+j+1);
16228  *(array.array+j+1) = temp;
16229  }
16230  }
16231  }
16232 }*/
16233 
16240 /*int quicksort_double(double array, int elements)
16241 {
16242  #define LEVEL 1000
16243  double pivot, begin[LEVEL], end[LEVEL];
16244  int i=0, left, right ;
16245  begin[0]=0; end[0]=elements;
16246  while (i>=0)
16247  {
16248  left=begin[i]; right=end[i]-1;
16249  if (left<right)
16250  {
16251  pivot=array[left]; if (i==LEVEL-1) return 1;
16252  while (left<right)
16253  {
16254  while (array[right]>=pivot && left<right) right--;
16255  if (left<right) array[left++]=array[right];
16256  while (array[left]<=pivot && left<right) left++;
16257  if (left<right) array[right--]=array[left];
16258  }
16259  array[left]=pivot;
16260  begin[i+1]=left+1;
16261  end[i+1]=end[i];
16262  end[i++]=left;
16263  }
16264  else
16265  {
16266  i--;
16267  }
16268  }
16269  return 0;
16270 }*/
16271 
16277 void add_double(double_array * array, double new_double)
16278 {
16279  if((*array).size == (*array).total_size)
16280  {
16281  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16282  (*array).array = (double *)realloc((*array).array, ((*array).total_size * sizeof(double)));
16283  }
16284  (*array).array[(*array).size] = new_double;
16285  (*array).size++;
16286 }
16287 
16293 void remove_double(double_array * array, int index)
16294 {
16295  int i;
16296  if(index < (*array).size)
16297  {
16298  /* memcopy?? */
16299  for(i = index; i < (*array).size - 1; i++)
16300  {
16301  (*array).array[i] = (*array).array[i+1];
16302  }
16303  (*array).size--;
16304  }
16305 }
16306 
16312 {
16313  int i;
16314 
16315  for(i=0; i<(*array).size; i++)
16316  {
16317  printf("%d> %f", i, (*array).array[i]);
16318  }
16319 }
16320 
16326 {
16327  (*array).size = 0;
16328  (*array).total_size = ARRAY_BLOCK_SIZE;
16329  (*array).array = (char *)malloc(ARRAY_BLOCK_SIZE * sizeof(char));
16330  CHECK_POINTER((*array).array);
16331  (*array).array[0] = '\0';
16332 }
16333 
16339 {
16340  (*array).size = 0;
16341 }
16342 
16348 {
16349  free((*array).array);
16350 }
16351 
16353 {
16354  int i;
16355 
16356  for (i = 0; i < (*from).size; i++)
16357  {
16358  add_char(to, (*from).array[i]);
16359  }
16360 }
16361 
16367 void add_char(char_array * array, char new_char)
16368 {
16369  if((*array).size + 1 == (*array).total_size)
16370  {
16371  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16372  (*array).array = (char *)realloc((*array).array, ((*array).total_size * sizeof(char)));
16373  }
16374  (*array).array[(*array).size] = new_char;
16375  (*array).array[(*array).size + 1] = '\0';
16376  (*array).size++;
16377 }
16378 
16384 void remove_char(char_array * array, int index)
16385 {
16386  int i;
16387  if(index < (*array).size)
16388  {
16389  /* memcopy?? */
16390  for(i = index; i < (*array).size - 1; i++)
16391  {
16392  (*array).array[i] = (*array).array[i+1];
16393  }
16394  (*array).size--;
16395  }
16396 }
16397 
16404 {
16405  char * new_string = (char *)malloc( ((*array).size + 1) * sizeof(char));
16406  CHECK_POINTER(new_string);
16407  return strcpy(new_string, (*array).array);
16408 }
16409 
16415 {
16416  printf("%s", (*array).array);
16417 }
16418 
16419 /* Functions for the transaction datatype */
16425 {
16426  (*array).size = 0;
16427  (*array).total_size = ARRAY_BLOCK_SIZE;
16428  (*array).array = (transaction *)malloc(ARRAY_BLOCK_SIZE * sizeof(transaction));
16429  CHECK_POINTER((*array).array);
16430 }
16431 
16437 {
16438  (*array).size = 0;
16439 }
16440 
16446 {
16447  int i;
16448 
16449  for(i = 0; i < array->size; i++)
16450  {
16451  free_transaction(&(*array).array[i]);
16452  }
16453 
16454  free((*array).array);
16455 }
16456 
16458 {
16459  int i;
16460 
16461  //to = init_transaction_array();
16462 
16463  for(i = 0; i < (*from).size; i++)
16464  {
16465  add_transaction(to, (*from).array[i].quantity, (*from).array[i].avg_price);
16466  }
16467 }
16468 
16474 void add_transaction(transaction_array * array, int quantity, double avg_price)
16475 {
16476  if((*array).size == (*array).total_size)
16477  {
16478  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16479  (*array).array = (transaction *)realloc((*array).array, ((*array).total_size * sizeof(transaction)));
16480  }
16481  init_transaction(&(*array).array[(*array).size]);
16482  (*array).array[(*array).size].quantity = quantity;
16483  (*array).array[(*array).size].avg_price = avg_price;
16484 
16485  (*array).size++;
16486 }
16487 
16493 void remove_transaction(transaction_array * array, int index)
16494 {
16495  int i;
16496 
16497  /* Free element at index index */
16498  free_transaction(&(*array).array[index]);
16499 
16500  /* Copy all elements up by one */
16501  if(index < (*array).size)
16502  {
16503  for(i = index; i < (*array).size - 1; i++)
16504  {
16505  copy_transaction(&(*array).array[i+1], &(*array).array[i]);
16506  }
16507  (*array).size--;
16508  }
16509 }
16510 /* Functions for the buyer datatype */
16516 {
16517  (*array).size = 0;
16518  (*array).total_size = ARRAY_BLOCK_SIZE;
16519  (*array).array = (buyer *)malloc(ARRAY_BLOCK_SIZE * sizeof(buyer));
16520  CHECK_POINTER((*array).array);
16521 }
16522 
16528 {
16529  (*array).size = 0;
16530 }
16531 
16537 {
16538  int i;
16539 
16540  for(i = 0; i < array->size; i++)
16541  {
16542  free_buyer(&(*array).array[i]);
16543  }
16544 
16545  free((*array).array);
16546 }
16547 
16549 {
16550  int i;
16551 
16552  //to = init_buyer_array();
16553 
16554  for(i = 0; i < (*from).size; i++)
16555  {
16556  add_buyer(to, (*from).array[i].id, (*from).array[i].budget);
16557  }
16558 }
16559 
16565 void add_buyer(buyer_array * array, int id, double budget)
16566 {
16567  if((*array).size == (*array).total_size)
16568  {
16569  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16570  (*array).array = (buyer *)realloc((*array).array, ((*array).total_size * sizeof(buyer)));
16571  }
16572  init_buyer(&(*array).array[(*array).size]);
16573  (*array).array[(*array).size].id = id;
16574  (*array).array[(*array).size].budget = budget;
16575 
16576  (*array).size++;
16577 }
16578 
16584 void remove_buyer(buyer_array * array, int index)
16585 {
16586  int i;
16587 
16588  /* Free element at index index */
16589  free_buyer(&(*array).array[index]);
16590 
16591  /* Copy all elements up by one */
16592  if(index < (*array).size)
16593  {
16594  for(i = index; i < (*array).size - 1; i++)
16595  {
16596  copy_buyer(&(*array).array[i+1], &(*array).array[i]);
16597  }
16598  (*array).size--;
16599  }
16600 }
16601 /* Functions for the seller datatype */
16607 {
16608  (*array).size = 0;
16609  (*array).total_size = ARRAY_BLOCK_SIZE;
16610  (*array).array = (seller *)malloc(ARRAY_BLOCK_SIZE * sizeof(seller));
16611  CHECK_POINTER((*array).array);
16612 }
16613 
16619 {
16620  (*array).size = 0;
16621 }
16622 
16628 {
16629  int i;
16630 
16631  for(i = 0; i < array->size; i++)
16632  {
16633  free_seller(&(*array).array[i]);
16634  }
16635 
16636  free((*array).array);
16637 }
16638 
16640 {
16641  int i;
16642 
16643  //to = init_seller_array();
16644 
16645  for(i = 0; i < (*from).size; i++)
16646  {
16647  add_seller(to, (*from).array[i].id, (*from).array[i].price, (*from).array[i].inventory, (*from).array[i].inv_price);
16648  }
16649 }
16650 
16656 void add_seller(seller_array * array, int id, double price, int inventory, double inv_price)
16657 {
16658  if((*array).size == (*array).total_size)
16659  {
16660  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16661  (*array).array = (seller *)realloc((*array).array, ((*array).total_size * sizeof(seller)));
16662  }
16663  init_seller(&(*array).array[(*array).size]);
16664  (*array).array[(*array).size].id = id;
16665  (*array).array[(*array).size].price = price;
16666  (*array).array[(*array).size].inventory = inventory;
16667  (*array).array[(*array).size].inv_price = inv_price;
16668 
16669  (*array).size++;
16670 }
16671 
16677 void remove_seller(seller_array * array, int index)
16678 {
16679  int i;
16680 
16681  /* Free element at index index */
16682  free_seller(&(*array).array[index]);
16683 
16684  /* Copy all elements up by one */
16685  if(index < (*array).size)
16686  {
16687  for(i = index; i < (*array).size - 1; i++)
16688  {
16689  copy_seller(&(*array).array[i+1], &(*array).array[i]);
16690  }
16691  (*array).size--;
16692  }
16693 }
16694 /* Functions for the vacancy datatype */
16700 {
16701  (*array).size = 0;
16702  (*array).total_size = ARRAY_BLOCK_SIZE;
16703  (*array).array = (vacancy *)malloc(ARRAY_BLOCK_SIZE * sizeof(vacancy));
16704  CHECK_POINTER((*array).array);
16705 }
16706 
16712 {
16713  (*array).size = 0;
16714 }
16715 
16721 {
16722  int i;
16723 
16724  for(i = 0; i < array->size; i++)
16725  {
16726  free_vacancy(&(*array).array[i]);
16727  }
16728 
16729  free((*array).array);
16730 }
16731 
16733 {
16734  int i;
16735 
16736  //to = init_vacancy_array();
16737 
16738  for(i = 0; i < (*from).size; i++)
16739  {
16740  add_vacancy(to, (*from).array[i].id, (*from).array[i].wage);
16741  }
16742 }
16743 
16749 void add_vacancy(vacancy_array * array, int id, double wage)
16750 {
16751  if((*array).size == (*array).total_size)
16752  {
16753  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16754  (*array).array = (vacancy *)realloc((*array).array, ((*array).total_size * sizeof(vacancy)));
16755  }
16756  init_vacancy(&(*array).array[(*array).size]);
16757  (*array).array[(*array).size].id = id;
16758  (*array).array[(*array).size].wage = wage;
16759 
16760  (*array).size++;
16761 }
16762 
16768 void remove_vacancy(vacancy_array * array, int index)
16769 {
16770  int i;
16771 
16772  /* Free element at index index */
16773  free_vacancy(&(*array).array[index]);
16774 
16775  /* Copy all elements up by one */
16776  if(index < (*array).size)
16777  {
16778  for(i = index; i < (*array).size - 1; i++)
16779  {
16780  copy_vacancy(&(*array).array[i+1], &(*array).array[i]);
16781  }
16782  (*array).size--;
16783  }
16784 }
16785 /* Functions for the employee datatype */
16791 {
16792  (*array).size = 0;
16793  (*array).total_size = ARRAY_BLOCK_SIZE;
16794  (*array).array = (employee *)malloc(ARRAY_BLOCK_SIZE * sizeof(employee));
16795  CHECK_POINTER((*array).array);
16796 }
16797 
16803 {
16804  (*array).size = 0;
16805 }
16806 
16812 {
16813  int i;
16814 
16815  for(i = 0; i < array->size; i++)
16816  {
16817  free_employee(&(*array).array[i]);
16818  }
16819 
16820  free((*array).array);
16821 }
16822 
16824 {
16825  int i;
16826 
16827  //to = init_employee_array();
16828 
16829  for(i = 0; i < (*from).size; i++)
16830  {
16831  add_employee(to, (*from).array[i].id, (*from).array[i].wage);
16832  }
16833 }
16834 
16840 void add_employee(employee_array * array, int id, double wage)
16841 {
16842  if((*array).size == (*array).total_size)
16843  {
16844  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16845  (*array).array = (employee *)realloc((*array).array, ((*array).total_size * sizeof(employee)));
16846  }
16847  init_employee(&(*array).array[(*array).size]);
16848  (*array).array[(*array).size].id = id;
16849  (*array).array[(*array).size].wage = wage;
16850 
16851  (*array).size++;
16852 }
16853 
16859 void remove_employee(employee_array * array, int index)
16860 {
16861  int i;
16862 
16863  /* Free element at index index */
16864  free_employee(&(*array).array[index]);
16865 
16866  /* Copy all elements up by one */
16867  if(index < (*array).size)
16868  {
16869  for(i = index; i < (*array).size - 1; i++)
16870  {
16871  copy_employee(&(*array).array[i+1], &(*array).array[i]);
16872  }
16873  (*array).size--;
16874  }
16875 }
16876 /* Functions for the mortgage datatype */
16882 {
16883  (*array).size = 0;
16884  (*array).total_size = ARRAY_BLOCK_SIZE;
16885  (*array).array = (mortgage *)malloc(ARRAY_BLOCK_SIZE * sizeof(mortgage));
16886  CHECK_POINTER((*array).array);
16887 }
16888 
16894 {
16895  (*array).size = 0;
16896 }
16897 
16903 {
16904  int i;
16905 
16906  for(i = 0; i < array->size; i++)
16907  {
16908  free_mortgage(&(*array).array[i]);
16909  }
16910 
16911  free((*array).array);
16912 }
16913 
16915 {
16916  int i;
16917 
16918  //to = init_mortgage_array();
16919 
16920  for(i = 0; i < (*from).size; i++)
16921  {
16922  add_mortgage(to, (*from).array[i].bank_id, (*from).array[i].principal, (*from).array[i].quarters_left, (*from).array[i].quarterly_interest, (*from).array[i].quarterly_principal, (*from).array[i].interestrate, (*from).array[i].mtype);
16923  }
16924 }
16925 
16931 void add_mortgage(mortgage_array * array, int bank_id, double principal, int quarters_left, double quarterly_interest, double quarterly_principal, double interestrate, int mtype)
16932 {
16933  if((*array).size == (*array).total_size)
16934  {
16935  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
16936  (*array).array = (mortgage *)realloc((*array).array, ((*array).total_size * sizeof(mortgage)));
16937  }
16938  init_mortgage(&(*array).array[(*array).size]);
16939  (*array).array[(*array).size].bank_id = bank_id;
16940  (*array).array[(*array).size].principal = principal;
16941  (*array).array[(*array).size].quarters_left = quarters_left;
16942  (*array).array[(*array).size].quarterly_interest = quarterly_interest;
16943  (*array).array[(*array).size].quarterly_principal = quarterly_principal;
16944  (*array).array[(*array).size].interestrate = interestrate;
16945  (*array).array[(*array).size].mtype = mtype;
16946 
16947  (*array).size++;
16948 }
16949 
16955 void remove_mortgage(mortgage_array * array, int index)
16956 {
16957  int i;
16958 
16959  /* Free element at index index */
16960  free_mortgage(&(*array).array[index]);
16961 
16962  /* Copy all elements up by one */
16963  if(index < (*array).size)
16964  {
16965  for(i = index; i < (*array).size - 1; i++)
16966  {
16967  copy_mortgage(&(*array).array[i+1], &(*array).array[i]);
16968  }
16969  (*array).size--;
16970  }
16971 }
16972 /* Functions for the loan datatype */
16978 {
16979  (*array).size = 0;
16980  (*array).total_size = ARRAY_BLOCK_SIZE;
16981  (*array).array = (loan *)malloc(ARRAY_BLOCK_SIZE * sizeof(loan));
16982  CHECK_POINTER((*array).array);
16983 }
16984 
16990 {
16991  (*array).size = 0;
16992 }
16993 
16999 {
17000  int i;
17001 
17002  for(i = 0; i < array->size; i++)
17003  {
17004  free_loan(&(*array).array[i]);
17005  }
17006 
17007  free((*array).array);
17008 }
17009 
17011 {
17012  int i;
17013 
17014  //to = init_loan_array();
17015 
17016  for(i = 0; i < (*from).size; i++)
17017  {
17018  add_loan(to, (*from).array[i].bank_id, (*from).array[i].amount, (*from).array[i].to_be_paid);
17019  }
17020 }
17021 
17027 void add_loan(loan_array * array, int bank_id, double amount, double to_be_paid)
17028 {
17029  if((*array).size == (*array).total_size)
17030  {
17031  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
17032  (*array).array = (loan *)realloc((*array).array, ((*array).total_size * sizeof(loan)));
17033  }
17034  init_loan(&(*array).array[(*array).size]);
17035  (*array).array[(*array).size].bank_id = bank_id;
17036  (*array).array[(*array).size].amount = amount;
17037  (*array).array[(*array).size].to_be_paid = to_be_paid;
17038 
17039  (*array).size++;
17040 }
17041 
17047 void remove_loan(loan_array * array, int index)
17048 {
17049  int i;
17050 
17051  /* Free element at index index */
17052  free_loan(&(*array).array[index]);
17053 
17054  /* Copy all elements up by one */
17055  if(index < (*array).size)
17056  {
17057  for(i = index; i < (*array).size - 1; i++)
17058  {
17059  copy_loan(&(*array).array[i+1], &(*array).array[i]);
17060  }
17061  (*array).size--;
17062  }
17063 }
17064 /* Functions for the hbuyer datatype */
17070 {
17071  (*array).size = 0;
17072  (*array).total_size = ARRAY_BLOCK_SIZE;
17073  (*array).array = (hbuyer *)malloc(ARRAY_BLOCK_SIZE * sizeof(hbuyer));
17074  CHECK_POINTER((*array).array);
17075 }
17076 
17082 {
17083  (*array).size = 0;
17084 }
17085 
17091 {
17092  int i;
17093 
17094  for(i = 0; i < array->size; i++)
17095  {
17096  free_hbuyer(&(*array).array[i]);
17097  }
17098 
17099  free((*array).array);
17100 }
17101 
17103 {
17104  int i;
17105 
17106  //to = init_hbuyer_array();
17107 
17108  for(i = 0; i < (*from).size; i++)
17109  {
17110  add_hbuyer(to, (*from).array[i].buyer_id, (*from).array[i].bank_id, (*from).array[i].liquidity, (*from).array[i].quarterly_income, (*from).array[i].quarterly_mortgage_paid, (*from).array[i].choice);
17111  }
17112 }
17113 
17119 void add_hbuyer(hbuyer_array * array, int buyer_id, int bank_id, double liquidity, double quarterly_income, double quarterly_mortgage_paid, int choice)
17120 {
17121  if((*array).size == (*array).total_size)
17122  {
17123  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
17124  (*array).array = (hbuyer *)realloc((*array).array, ((*array).total_size * sizeof(hbuyer)));
17125  }
17126  init_hbuyer(&(*array).array[(*array).size]);
17127  (*array).array[(*array).size].buyer_id = buyer_id;
17128  (*array).array[(*array).size].bank_id = bank_id;
17129  (*array).array[(*array).size].liquidity = liquidity;
17130  (*array).array[(*array).size].quarterly_income = quarterly_income;
17131  (*array).array[(*array).size].quarterly_mortgage_paid = quarterly_mortgage_paid;
17132  (*array).array[(*array).size].choice = choice;
17133 
17134  (*array).size++;
17135 }
17136 
17142 void remove_hbuyer(hbuyer_array * array, int index)
17143 {
17144  int i;
17145 
17146  /* Free element at index index */
17147  free_hbuyer(&(*array).array[index]);
17148 
17149  /* Copy all elements up by one */
17150  if(index < (*array).size)
17151  {
17152  for(i = index; i < (*array).size - 1; i++)
17153  {
17154  copy_hbuyer(&(*array).array[i+1], &(*array).array[i]);
17155  }
17156  (*array).size--;
17157  }
17158 }
17159 /* Functions for the hseller datatype */
17165 {
17166  (*array).size = 0;
17167  (*array).total_size = ARRAY_BLOCK_SIZE;
17168  (*array).array = (hseller *)malloc(ARRAY_BLOCK_SIZE * sizeof(hseller));
17169  CHECK_POINTER((*array).array);
17170 }
17171 
17177 {
17178  (*array).size = 0;
17179 }
17180 
17186 {
17187  int i;
17188 
17189  for(i = 0; i < array->size; i++)
17190  {
17191  free_hseller(&(*array).array[i]);
17192  }
17193 
17194  free((*array).array);
17195 }
17196 
17198 {
17199  int i;
17200 
17201  //to = init_hseller_array();
17202 
17203  for(i = 0; i < (*from).size; i++)
17204  {
17205  add_hseller(to, (*from).array[i].seller_id, (*from).array[i].price, (*from).array[i].quantity, (*from).array[i].type);
17206  }
17207 }
17208 
17214 void add_hseller(hseller_array * array, int seller_id, double price, int quantity, int type)
17215 {
17216  if((*array).size == (*array).total_size)
17217  {
17218  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
17219  (*array).array = (hseller *)realloc((*array).array, ((*array).total_size * sizeof(hseller)));
17220  }
17221  init_hseller(&(*array).array[(*array).size]);
17222  (*array).array[(*array).size].seller_id = seller_id;
17223  (*array).array[(*array).size].price = price;
17224  (*array).array[(*array).size].quantity = quantity;
17225  (*array).array[(*array).size].type = type;
17226 
17227  (*array).size++;
17228 }
17229 
17235 void remove_hseller(hseller_array * array, int index)
17236 {
17237  int i;
17238 
17239  /* Free element at index index */
17240  free_hseller(&(*array).array[index]);
17241 
17242  /* Copy all elements up by one */
17243  if(index < (*array).size)
17244  {
17245  for(i = index; i < (*array).size - 1; i++)
17246  {
17247  copy_hseller(&(*array).array[i+1], &(*array).array[i]);
17248  }
17249  (*array).size--;
17250  }
17251 }
17252 /* Functions for the hbank datatype */
17258 {
17259  (*array).size = 0;
17260  (*array).total_size = ARRAY_BLOCK_SIZE;
17261  (*array).array = (hbank *)malloc(ARRAY_BLOCK_SIZE * sizeof(hbank));
17262  CHECK_POINTER((*array).array);
17263 }
17264 
17270 {
17271  (*array).size = 0;
17272 }
17273 
17279 {
17280  int i;
17281 
17282  for(i = 0; i < array->size; i++)
17283  {
17284  free_hbank(&(*array).array[i]);
17285  }
17286 
17287  free((*array).array);
17288 }
17289 
17291 {
17292  int i;
17293 
17294  //to = init_hbank_array();
17295 
17296  for(i = 0; i < (*from).size; i++)
17297  {
17298  add_hbank(to, (*from).array[i].id, (*from).array[i].equity, (*from).array[i].risky_assets, (*from).array[i].amount_mortgaged);
17299  }
17300 }
17301 
17307 void add_hbank(hbank_array * array, int id, double equity, double risky_assets, double amount_mortgaged)
17308 {
17309  if((*array).size == (*array).total_size)
17310  {
17311  (*array).total_size = (int)((*array).total_size * ARRAY_GROWTH_RATE);
17312  (*array).array = (hbank *)realloc((*array).array, ((*array).total_size * sizeof(hbank)));
17313  }
17314  init_hbank(&(*array).array[(*array).size]);
17315  (*array).array[(*array).size].id = id;
17316  (*array).array[(*array).size].equity = equity;
17317  (*array).array[(*array).size].risky_assets = risky_assets;
17318  (*array).array[(*array).size].amount_mortgaged = amount_mortgaged;
17319 
17320  (*array).size++;
17321 }
17322 
17328 void remove_hbank(hbank_array * array, int index)
17329 {
17330  int i;
17331 
17332  /* Free element at index index */
17333  free_hbank(&(*array).array[index]);
17334 
17335  /* Copy all elements up by one */
17336  if(index < (*array).size)
17337  {
17338  for(i = index; i < (*array).size - 1; i++)
17339  {
17340  copy_hbank(&(*array).array[i+1], &(*array).array[i]);
17341  }
17342  (*array).size--;
17343  }
17344 }
17345 
17349 int idle()
17350 {
17351  return 0;
17352 }
17353 
17355 {
17357 }
17359 {
17361 }
17363 {
17365 }
17367 {
17369 }
17371 {
17373 }
17375 {
17377 }
17379 {
17381 }
17383 {
17385 }
17387 {
17389 }
17391 {
17393 }
17395 {
17397 }
17399 {
17401 }
17403 {
17405 }
17407 {
17409 }
17411 {
17413 }
17415 {
17417 }
17419 {
17421 }
17423 {
17425 }
17427 {
17429 }
17431 {
17433 }
17435 {
17437 }
17439 {
17441 }
17443 {
17445 }
17447 {
17449 }
17451 {
17453 }
17455 {
17457 }
17459 {
17461 }
17463 {
17465 }
17466 
17467