1 | /* |
---|
2 | Copyright (C) 2012 |
---|
3 | Alejandro Mujica (amujica@cenditel.gob.ve) |
---|
4 | Erwin Paredes (eparedes@cenditel.gob.ve) |
---|
5 | José Ruiz (jruiz@cenditel.gob.ve) |
---|
6 | Rodolfo Rangel (rrangel@cenditel.gob.ve) |
---|
7 | Julie Vera (jvera@cenditel.gob.ve) |
---|
8 | |
---|
9 | CENDITEL Fundación Centro Nacional de Desarrollo e Investigación en |
---|
10 | Tecnologías Libres |
---|
11 | |
---|
12 | Este programa es software libre; Usted puede usarlo bajo los términos de la |
---|
13 | licencia de software GPL versión 2.0 de la Free Software Foundation. |
---|
14 | |
---|
15 | Este programa se distribuye con la esperanza de que sea útil, pero SIN |
---|
16 | NINGUNA GARANTÍA; tampoco las implícitas garantías de MERCANTILIDAD o |
---|
17 | ADECUACIÓN A UN PROPÓSITO PARTICULAR. |
---|
18 | Consulte la licencia GPL para más detalles. Usted debe recibir una copia |
---|
19 | de la GPL junto con este programa; si no, escriba a la Free Software |
---|
20 | Foundation Inc. 51 Franklin Street,5 Piso, Boston, MA 02110-1301, USA. |
---|
21 | */ |
---|
22 | |
---|
23 | /* |
---|
24 | Autor: Alejandro J. Mujica |
---|
25 | Fecha de creación: 01/08/2013 |
---|
26 | Este archivo contiene la implementación de la clase IO_Manager. |
---|
27 | */ |
---|
28 | |
---|
29 | # include <io_manager.H> |
---|
30 | |
---|
31 | const std::string IO_Manager::ZERO = "0"; |
---|
32 | |
---|
33 | const std::string IO_Manager::ONE = "1"; |
---|
34 | |
---|
35 | const std::string IO_Manager::UTF_8 = "UTF-8"; |
---|
36 | |
---|
37 | const std::string IO_Manager::VALUE = "value"; |
---|
38 | |
---|
39 | const std::string IO_Manager::PRODUCTION = "production"; |
---|
40 | |
---|
41 | const std::string IO_Manager::ATTRIBUTES = "attributes"; |
---|
42 | |
---|
43 | const std::string IO_Manager::YEAR = "year"; |
---|
44 | |
---|
45 | const std::string IO_Manager::ROOT_NODE = "root"; |
---|
46 | |
---|
47 | const std::string IO_Manager::CODE = "code"; |
---|
48 | |
---|
49 | const std::string IO_Manager::RANKS = "ranks"; |
---|
50 | |
---|
51 | const std::string IO_Manager::UP = "up"; |
---|
52 | |
---|
53 | const std::string IO_Manager::DOWN = "down"; |
---|
54 | |
---|
55 | const std::string IO_Manager::COPYRIGHT = "\ |
---|
56 | Copyright (C) 2012\n\ |
---|
57 | Alejandro Mujica (amujica@cenditel.gob.ve)\n\ |
---|
58 | José Ruiz (jruiz@cenditel.gob.ve)\n\ |
---|
59 | Julie Vera (jvera@cenditel.gob.ve)\n\n\ |
---|
60 | CENDITEL Fundación Centro Nacional de Desarrollo e Investigación en\n\ |
---|
61 | Tecnologías Libres\n\n\ |
---|
62 | Este programa es software libre; Usted puede usarlo bajo los términos de la\n\ |
---|
63 | licencia de software GPL versión 2.0 de la Free Software Foundation.\n\n\ |
---|
64 | Este programa se distribuye con la esperanza de que sea útil, pero SIN\n\ |
---|
65 | NINGUNA GARANTÍA; tampoco las implícitas garantías de MERCANTILIDAD o\n\ |
---|
66 | ADECUACIÓN A UN PROPÓSITO PARTICULAR.\n\ |
---|
67 | Consulte la licencia GPL para más detalles. Usted debe recibir una copia\n\ |
---|
68 | de la GPL junto con este programa; si no, escriba a la Free Software\n\ |
---|
69 | Foundation Inc. 51 Franklin Street,5 Piso, Boston, MA 02110-1301, USA."; |
---|
70 | |
---|
71 | const std::string IO_Manager::XML_GRAPH = "graph"; |
---|
72 | |
---|
73 | const std::string IO_Manager::XML_NODES = "nodes"; |
---|
74 | |
---|
75 | const std::string IO_Manager::XML_NODE = "node"; |
---|
76 | |
---|
77 | const std::string IO_Manager::XML_ARCS = "arcs"; |
---|
78 | |
---|
79 | const std::string IO_Manager::XML_ARC = "arc"; |
---|
80 | |
---|
81 | const std::string IO_Manager::XML_SIMULATION = "simulation"; |
---|
82 | |
---|
83 | const std::string IO_Manager::XML_SIMULATED_GRAPH = "simulated_graph"; |
---|
84 | |
---|
85 | const std::string IO_Manager::XML_SIMULATED_NODES = "simulated_nodes"; |
---|
86 | |
---|
87 | const std::string IO_Manager::XML_SIMULATED_NODE = "simulated_node"; |
---|
88 | |
---|
89 | const std::string IO_Manager::XML_SIMULATED_ARCS = "simulated_arcs"; |
---|
90 | |
---|
91 | const std::string IO_Manager::XML_SIMULATED_ARC = "simulated_arc"; |
---|
92 | |
---|
93 | const std::string IO_Manager::XML_SIMULATED_STATES = "simulated_states"; |
---|
94 | |
---|
95 | const std::string IO_Manager::XML_SIMULATED_STATE = "simulated_state"; |
---|
96 | |
---|
97 | const std::string IO_Manager::XML_STATE_NUMBER = "number"; |
---|
98 | |
---|
99 | const std::string IO_Manager::XML_STOCK = "stock"; |
---|
100 | |
---|
101 | const std::string IO_Manager::XML_INTERNAL_REQUESTED_QUANTITY = |
---|
102 | "internal_requested_quantity"; |
---|
103 | |
---|
104 | const std::string IO_Manager::XML_EXTERNAL_REQUESTED_QUANTITY = |
---|
105 | "external_requested_quantity"; |
---|
106 | |
---|
107 | const std::string IO_Manager::XML_TOTAL_REQUESTED_QUANTITY = |
---|
108 | "total_requested_quantity"; |
---|
109 | |
---|
110 | const std::string IO_Manager::XML_DAILY_WAGE = "daily_wage"; |
---|
111 | |
---|
112 | const std::string IO_Manager::XML_OTHER_WAGE = "other_wage"; |
---|
113 | |
---|
114 | const std::string IO_Manager::XML_OTHER_DAILY_WAGE = "other_daily_wage"; |
---|
115 | |
---|
116 | const std::string IO_Manager::XML_DAILY_FEEDING_COUPON = "daily_feeding_coupon"; |
---|
117 | |
---|
118 | const std::string IO_Manager::XML_FEEDING_COUPON = "feeding_coupon"; |
---|
119 | |
---|
120 | const std::string IO_Manager::XML_INTEGRAL_WAGE = "integral_wage"; |
---|
121 | |
---|
122 | const std::string IO_Manager::XML_ADMINISTRATIVE_STAFF_COST = |
---|
123 | "administrative_staff_cost"; |
---|
124 | |
---|
125 | const std::string IO_Manager::XML_LABOR_COST = "labor_cost"; |
---|
126 | |
---|
127 | const std::string IO_Manager::XML_INPUT_COST = "input_cost"; |
---|
128 | |
---|
129 | const std::string IO_Manager::XML_TOTAL_COST = "total_cost"; |
---|
130 | |
---|
131 | const std::string IO_Manager::XML_UNITARIAN_ADMINISTRATIVE_STAFF_COST = |
---|
132 | "unitarian_administrative_staff_cost"; |
---|
133 | |
---|
134 | const std::string IO_Manager::XML_UNITARIAN_LABOR_COST = |
---|
135 | "unitarian_labor_cost"; |
---|
136 | |
---|
137 | const std::string IO_Manager::XML_INPUT_COST_PER_UNIT = "input_cost_per_unit"; |
---|
138 | |
---|
139 | const std::string IO_Manager::XML_OTHER_UNITARIAN_COST = "other_unitarian_cost"; |
---|
140 | |
---|
141 | const std::string IO_Manager::XML_INCOME = "income"; |
---|
142 | |
---|
143 | const std::string IO_Manager::XML_ECONOMIC_STATUS = "economic_status"; |
---|
144 | |
---|
145 | const std::string IO_Manager::XML_OPTION = "option"; |
---|
146 | |
---|
147 | const std::string IO_Manager::XML_VARIATION = "variation"; |
---|
148 | |
---|
149 | const std::string IO_Manager::XML_POSITION = "position"; |
---|
150 | |
---|
151 | const std::string IO_Manager::XML_LEVEL = "level"; |
---|
152 | |
---|
153 | const std::string IO_Manager::XML_COMPANY_NAME = "company_name"; |
---|
154 | |
---|
155 | const std::string IO_Manager::XML_COMPANY_RIF = "company_rif"; |
---|
156 | |
---|
157 | const std::string IO_Manager::XML_COMPANY_LOCATION = "company_location"; |
---|
158 | |
---|
159 | const std::string IO_Manager::XML_COMPANY_NATIONALITY = "company_nationality"; |
---|
160 | |
---|
161 | const std::string IO_Manager::XML_PRODUCT_ID = "product_id"; |
---|
162 | |
---|
163 | const std::string IO_Manager::XML_PRODUCT_NAME = "product_name"; |
---|
164 | |
---|
165 | const std::string IO_Manager::XML_TARIFF_CODE = "tariff_code"; |
---|
166 | |
---|
167 | const std::string IO_Manager::XML_MEASUREMENT_UNIT = "measurement_unit"; |
---|
168 | |
---|
169 | const std::string IO_Manager::XML_QUANTITY = "quantity"; |
---|
170 | |
---|
171 | const std::string IO_Manager::XML_REQ_QUANTITY = "req_quantity"; |
---|
172 | |
---|
173 | const std::string IO_Manager::XML_BOUGHT_QUANTITY = "bought_quantity"; |
---|
174 | |
---|
175 | const std::string IO_Manager::XML_UNITARIAN_PRICE = "unitarian_price"; |
---|
176 | |
---|
177 | const std::string IO_Manager::XML_TYPE = "type"; |
---|
178 | |
---|
179 | const std::string IO_Manager::XML_SRC = "src"; |
---|
180 | |
---|
181 | const std::string IO_Manager::XML_TGT = "tgt"; |
---|
182 | |
---|
183 | const std::string IO_Manager::XML_INPUT_ID = "input_id"; |
---|
184 | |
---|
185 | const std::string IO_Manager::XML_PURCHASE_PRICE = "purchase_price"; |
---|
186 | |
---|
187 | const std::string IO_Manager::XML_PRODUCTION_CAPACITY = "production_capacity"; |
---|
188 | |
---|
189 | const std::string IO_Manager::XML_PRODUCTION = "production"; |
---|
190 | |
---|
191 | const std::string IO_Manager::XML_INTERNAL_SALES = "internal_sales"; |
---|
192 | |
---|
193 | const std::string IO_Manager::XML_EXTERNAL_SALES = "external_sales"; |
---|
194 | |
---|
195 | const std::string IO_Manager::XML_WORKDAY = "workday"; |
---|
196 | |
---|
197 | const std::string IO_Manager::XML_NUM_ADMINISTRATIVE_STAFF = |
---|
198 | "num_administrative_staff"; |
---|
199 | |
---|
200 | const std::string IO_Manager::XML_NUM_EMPLOYEES = "num_employees"; |
---|
201 | |
---|
202 | const std::string IO_Manager::XML_PRICE = "price"; |
---|
203 | |
---|
204 | const std::string IO_Manager::XML_OTHER_COST = "other_cost"; |
---|
205 | |
---|
206 | const std::string IO_Manager::XML_IMPORTS = "imports"; |
---|
207 | |
---|
208 | const std::string IO_Manager::XML_SALE = "sale"; |
---|
209 | |
---|
210 | const std::string IO_Manager::XML_REQUESTED_QUANTITY = "requested_quantity"; |
---|
211 | |
---|
212 | const std::string IO_Manager::XML_EXOGENOUS_VARIABLES = "exogenous_variables"; |
---|
213 | |
---|
214 | const std::string IO_Manager::XML_AVERAGE_SALARY = "average_salary"; |
---|
215 | |
---|
216 | const std::string IO_Manager::XML_RATE_OF_CHANGE_OF_SALARY = |
---|
217 | "rate_of_change_of_salary"; |
---|
218 | |
---|
219 | const std::string IO_Manager::XML_RATE_OF_GAIN = "rate_of_gain"; |
---|
220 | |
---|
221 | const std::string IO_Manager::XML_RATE_OF_PRICE_CHANGE = "rate_of_price_change"; |
---|
222 | |
---|
223 | const std::string IO_Manager::XML_RATE_OF_CHANGE_IN_FINAL_DEMAND = |
---|
224 | "rate_of_change_in_final_demand"; |
---|
225 | |
---|
226 | const std::string IO_Manager::XML_NOMINAL_EXCHANGE_RATE = |
---|
227 | "nominal_exchange_rate"; |
---|
228 | |
---|
229 | const std::string IO_Manager::XML_UT = "UT"; |
---|
230 | |
---|
231 | const std::string IO_Manager::XML_SIGMA = "sigma"; |
---|
232 | |
---|
233 | const std::string IO_Manager::XML_NUM_IT = "num_it"; |
---|
234 | |
---|