FMU/Source/Appliance_Generic_CSV.cpp
/**
 * @brief read in the csv file containing the power values
 */
@brief read in the csv file containing the power values
@brief read in the csv file containing the power values
void Appliance_Generic_CSV::setup(ConfigStructAppliance a) {
  setID(a.id);
  setHoulyPriority(a.priority);
  setHourlyCost(a.costVector);
  setFileDemand(a.fileDemand);
  setFileSupply(a.fileSupply);
  enableSupply = false;
  enableDemand = false;
  if (fileSupply != "") {
    enableSupply = true;
    modelSupply.parseConfiguration(Configuration::RunLocation + fileSupply);
  }
  if (fileDemand != "") {
    enableDemand = true;
    modelDemand.parseConfiguration(Configuration::RunLocation + fileDemand);
  }
}
void Appliance_Generic_CSV :: setup ( ConfigStructAppliance a ) { setID ( a . id ) ; setHoulyPriority ( a . priority ) ; setHourlyCost ( a . costVector ) ; setFileDemand ( a . fileDemand ) ; setFileSupply ( a . fileSupply ) ; enableSupply = false ; enableDemand = false ; if ( fileSupply != " " ) { enableSupply = true ; modelSupply . parseConfiguration ( Configuration :: RunLocation + fileSupply ) ; } if ( fileDemand != " " ) { enableDemand = true ; modelDemand . parseConfiguration ( Configuration :: RunLocation + fileDemand ) ; } }
@brief read in the csv file containing the power values
@brief read in the csv file containing the power values