FMU/Source/Appliance_Large_Learning.cpp
/**
 * @brief Check large appliance model for a turn on, then generate the profile
 * @details Calculate if the applaince is predicted a turn on
 * if so increment model and save teh power demand until turn off
 */
@brief Check large appliance model for a turn on, then generate the profile
@details Calculate if the applaince is predicted a turn on
if so increment model and save teh power demand until turn off
@brief Check large appliance model for a turn on then generate the profile @details Calculate if the applaince is predicted a turn on if so increment model and save teh power demand until turn off
void Appliance_Large_Learning::calculateProfile() {
  int stepCount = Configuration::getStepCount();
  double p = getPowerAt(stepCount);
  profileStruct profile;
  while (model.onAt(stepCount)) {
    profile.power.push_back(p);
    stepCount++;
    profile.nonLearningStep++;
    model.decreaseDuration();
    p = getPowerAt(stepCount);
  }
  if (profile.power.size()) {
    powerProfile.push(profile);
  }
}
void Appliance_Large_Learning :: calculateProfile ( ) { int stepCount = Configuration :: getStepCount ( ) ; double p = getPowerAt ( stepCount ) ; profileStruct profile ; while ( model . onAt ( stepCount ) ) { profile . power . push_back ( p ) ; stepCount ++ ; profile . nonLearningStep ++ ; model . decreaseDuration ( ) ; p = getPowerAt ( stepCount ) ; } if ( profile . power . size ( ) ) { powerProfile . push ( profile ) ; } }
@brief Check large appliance model for a turn on, then generate the profile
 @details Calculate if the applaince is predicted a turn on
 if so increment model and save teh power demand until turn off
@brief Check large appliance model for a turn on then generate the profile @details Calculate if the applaince is predicted a turn on if so increment model and save teh power demand until turn off