FMU/Source/Occupant.cpp
/**
 * @brief Calls the resence model
 * @param agent the config struct with the info needed for the presence model,
 * saves the result to the activity array for recall later. Here there are two states
 * IT and Out
 */
@brief Calls the resence model
@param agent the config struct with the info needed for the presence model,
saves the result to the activity array for recall later. Here there are two states
IT and Out
@brief Calls the resence model @param agent the config struct with the info needed for the presence model saves the result to the activity array for recall later . Here there are two states IT and Out
void Occupant::model_presenceFromPage(const ConfigStructAgent &agent) {
    Model_Presence presence;
    presence.setProbMap(agent.profile);
    presence.calculatePresenceFromPage();
    for (unsigned int i = 0; i < presence.size(); ++i) {
        if (presence.at(i)) {
            activities.push_back(3);
        } else {
            activities.push_back(9);
        }
    }
}
void Occupant :: model_presenceFromPage ( const ConfigStructAgent & agent ) { Model_Presence presence ; presence . setProbMap ( agent . profile ) ; presence . calculatePresenceFromPage ( ) ; for ( unsigned int i = 0 ; i < presence . size ( ) ; ++ i ) { if ( presence . at ( i ) ) { activities . push_back ( 3 ) ; } else { activities . push_back ( 9 ) ; } } }
@brief Calls the resence model
 @param agent the config struct with the info needed for the presence model,
 saves the result to the activity array for recall later.
@brief Calls the resence model @param agent the config struct with the info needed for the presence model saves the result to the activity array for recall later .