Changeset 186c085 in observatorio for simulacion


Ignore:
Timestamp:
Nov 20, 2014, 6:14:39 PM (10 years ago)
Author:
Alejandro <amujica@…>
Branches:
simulacion
Children:
a3eef50
Parents:
71c519d
Message:

Simulador al 95%

Location:
simulacion/ModuloDinamico
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simulacion/ModuloDinamico/io_manager.H

    r71c519d r186c085  
    11921192
    11931193                ip_relationship.set_requested_quantity(
    1194                   std::atol(
     1194                  std::atof(
    11951195                    arc->get_attribute_value(XML_REQUESTED_QUANTITY).c_str()
    11961196                  )
     
    11981198
    11991199                ip_relationship.set_purchase_price(
    1200                   std::atol(
     1200                  std::atof(
    12011201                    arc->get_attribute_value(XML_PURCHASE_PRICE).c_str()
    12021202                  )
     
    12041204
    12051205                ip_relationship.set_bought_quantity(
    1206                   std::atol(
     1206                  std::atof(
    12071207                    arc->get_attribute_value(XML_BOUGHT_QUANTITY).c_str()
    12081208                  )
  • simulacion/ModuloDinamico/simulator.C

    r71c519d r186c085  
    328328      total_amount += (ip_sim_attr_t_1.bought_quantity *
    329329                       ip_sim_attr_t_1.purchase_price);
    330 
    331       std::cout << "Cantidad comprada: " << ip_sim_attr_t_1.bought_quantity
    332                 << " Precio: " << ip_sim_attr_t_1.purchase_price << "\n";
    333330    }
    334331
Note: See TracChangeset for help on using the changeset viewer.