FMU/Source/Occupant.cpp
/**
 * @brief Calls the activity model
 * @param agent the config struct with the info needed for the activity model,
 * saves the result to the activity array for recall later
 */
@brief Calls the activity model
@param agent the config struct with the info needed for the activity model,
saves the result to the activity array for recall later
@brief Calls the activity model @param agent the config struct with the info needed for the activity model saves the result to the activity array for recall later
void Occupant::model_activity(const ConfigStructAgent &agent) {
    Model_Activity_Survival ma;
    ma.setAge(agent.age);
    ma.setComputer(agent.computer);
    ma.setCivstat(agent.civstat);
    ma.setUnemp(agent.unemp);
    ma.setRetired(agent.retired);
    ma.setEdtry(agent.edtry);
    ma.setFamstat(agent.famstat);
    ma.setSex(agent.sex);
    ma.setProbMap(agent.profile);
    activities = ma.preProcessActivities();
}
void Occupant :: model_activity ( const ConfigStructAgent & agent ) { Model_Activity_Survival ma ; ma . setAge ( agent . age ) ; ma . setComputer ( agent . computer ) ; ma . setCivstat ( agent . civstat ) ; ma . setUnemp ( agent . unemp ) ; ma . setRetired ( agent . retired ) ; ma . setEdtry ( agent . edtry ) ; ma . setFamstat ( agent . famstat ) ; ma . setSex ( agent . sex ) ; ma . setProbMap ( agent . profile ) ; activities = ma . preProcessActivities ( ) ; }
@brief Calls the activity model
 @param agent the config struct with the info needed for the activity model,
 saves the result to the activity array for recall later
@brief Calls the activity model @param agent the config struct with the info needed for the activity model saves the result to the activity array for recall later