FMU/Source/Building.cpp
/**
 * @brief sets the number of occupants active in a zone
 * @details sets the number of occupants active in a zone
 * @param zone A pointer to a buldings zone
 */
@brief sets the number of occupants active in a zone
@details sets the number of occupants active in a zone
@param zone A pointer to a buldings zone
@brief sets the number of occupants active in a zone @details sets the number of occupants active in a zone @param zone A pointer to a buldings zone
void Building::setOccupantCountForZone(std::shared_ptr<Building_Zone> zone) {
    double numberOfOccupants = 0;
    for (const Occupant &agent : population) {
        if (agent.currentlyInZone(*zone)) {
            numberOfOccupants++;
        }
    }
    zone->setOccupantFraction(numberOfOccupants);
}
void Building :: setOccupantCountForZone ( std :: shared_ptr < Building_Zone > zone ) { double numberOfOccupants = 0 ; for ( const Occupant & agent : population ) { if ( agent . currentlyInZone ( * zone ) ) { numberOfOccupants ++ ; } } zone -> setOccupantFraction ( numberOfOccupants ) ; }
@brief sets the number of occupants active in a zone
 @details sets the number of occupants active in a zone
 @param zone A pointer to a buldings zone
@brief sets the number of occupants active in a zone @details sets the number of occupants active in a zone @param zone A pointer to a buldings zone