Added DEAF_COMMUNITY_MODEL script support:

In script, add a string like:
deaf_community_model = 1
or
deaf_c_m = 1

Now only two models are supported:
0 - no preference for deaf to see extra agents
1 (default) - deaf agents see all the agents to make a pair with
This commit is contained in:
2018-11-30 14:48:41 +07:00
parent b2faedd28f
commit 01cd2cdcc3

View File

@@ -718,6 +718,11 @@ void Processor::initSettings(std::string fileName){
boost::trim(file);
Settings::OUTPUT_FILE = file;
}
else if(instr == "deaf_community_model" || instr == "deaf_c_m"){
int model = Settings::DEAF_COMMUNITY_MODEL;
sscanf_s(tokensVector.at(1).c_str(),"%d", &model);
Settings::DEAF_COMMUNITY_MODEL = model;
}
/*if(instr == "fullstat"){
int flag = 0;
sscanf_s(tokensVector.at(1).c_str(),"%d", &flag);