FMU/Source/Appliance_Large.cpp
/**
 * @brief The timestep call of the appliance
 * @details If the appliance is on increase the survival time and retrieve
 * the power. \n
 * If the appliance is off calculate if the appliance turns on and how long for
 * and retrieve power. \n
 * Otherwise set power to 0.
 */
@brief The timestep call of the appliance
@details If the appliance is on increase the survival time and retrieve
the power. \n
If the appliance is off calculate if the appliance turns on and how long for
and retrieve power. \n
Otherwise set power to 0.
@brief The timestep call of the appliance @details If the appliance is on increase the survival time and retrieve the power . \ n If the appliance is off calculate if the appliance turns on and how long for and retrieve power . \ n Otherwise set power to 0 .
void Appliance_Large::step() {
  model.decreaseDuration();
  setPower(0.0);
  int stepCount = Configuration::getStepCount();
  if (model.onAt(stepCount) && match) {
    double p = model.consumption(stepCount);
    setPower(p);
  }
}
void Appliance_Large :: step ( ) { model . decreaseDuration ( ) ; setPower ( 0.0 ) ; int stepCount = Configuration :: getStepCount ( ) ; if ( model . onAt ( stepCount ) && match ) { double p = model . consumption ( stepCount ) ; setPower ( p ) ; } }
@brief The timestep call of the appliance
 @details If the appliance is on increase the survival time and retrieve
 the power.
@brief The timestep call of the appliance @details If the appliance is on increase the survival time and retrieve the power .