Changeset 186c085 in observatorio for simulacion/ModuloDinamico
- Timestamp:
- Nov 20, 2014, 6:14:39 PM (10 years ago)
- Branches:
- simulacion
- Children:
- a3eef50
- Parents:
- 71c519d
- Location:
- simulacion/ModuloDinamico
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
simulacion/ModuloDinamico/io_manager.H
r71c519d r186c085 1192 1192 1193 1193 ip_relationship.set_requested_quantity( 1194 std::ato l(1194 std::atof( 1195 1195 arc->get_attribute_value(XML_REQUESTED_QUANTITY).c_str() 1196 1196 ) … … 1198 1198 1199 1199 ip_relationship.set_purchase_price( 1200 std::ato l(1200 std::atof( 1201 1201 arc->get_attribute_value(XML_PURCHASE_PRICE).c_str() 1202 1202 ) … … 1204 1204 1205 1205 ip_relationship.set_bought_quantity( 1206 std::ato l(1206 std::atof( 1207 1207 arc->get_attribute_value(XML_BOUGHT_QUANTITY).c_str() 1208 1208 ) -
simulacion/ModuloDinamico/simulator.C
r71c519d r186c085 328 328 total_amount += (ip_sim_attr_t_1.bought_quantity * 329 329 ip_sim_attr_t_1.purchase_price); 330 331 std::cout << "Cantidad comprada: " << ip_sim_attr_t_1.bought_quantity332 << " Precio: " << ip_sim_attr_t_1.purchase_price << "\n";333 330 } 334 331
Note: See TracChangeset
for help on using the changeset viewer.