本文整理汇总了C++中Person::all_clonal_parasite_populations方法的典型用法代码示例。如果您正苦于以下问题:C++ Person::all_clonal_parasite_populations方法的具体用法?C++ Person::all_clonal_parasite_populations怎么用?C++ Person::all_clonal_parasite_populations使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Person
的用法示例。
在下文中一共展示了Person::all_clonal_parasite_populations方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: execute
void EndClinicalDueToDrugResistanceEvent::execute() {
Person* person = (Person*) dispatcher();
if (person->all_clonal_parasite_populations()->size() == 0) {
person->change_state_when_no_parasite_in_blood();
} else {
//still have parasite in blood
person->immune_system()->set_increase(true);
person->set_host_state(Person::ASYMPTOMATIC);
if (person->all_clonal_parasite_populations()->contain(clinical_caused_parasite_)) {
clinical_caused_parasite_->set_last_update_log10_parasite_density(Model::CONFIG->log_parasite_density_level().log_parasite_density_asymptomatic);
person->determine_relapse_or_not(clinical_caused_parasite_);
}
// person->determine_relapse_or_not(clinical_caused_parasite_);
// person->determine_clinical_or_not(clinical_caused_parasite_);
// if (clinical_caused_parasite_->last_update_log10_parasite_density() < Model::CONFIG->log_parasite_density_level().log_parasite_density_asymptomatic) {
// std::cout << clinical_caused_parasite_->last_update_log10_parasite_density()<< std::endl;
// assert(false);
// }
// clinical_caused_parasite_->set_last_update_log10_parasite_density(Model::CONFIG->log_parasite_density_level().log_parasite_density_asymptomatic);
// clinical_caused_parasite_->set_update_function(Model::MODEL->immunity_clearance_update_function());
// // std::cout << "hello" << std::endl;
}
}
示例2: execute
void MatureGametocyteEvent::execute() {
Person* person = (Person*) dispatcher();
if (person->all_clonal_parasite_populations()->contain(blood_parasite_)) {
if (person->drugs_in_blood()->is_drug_in_blood(1) && !blood_parasite_->resist_to(Model::CONFIG->drug_db()->drug_db()[1])) {
blood_parasite_->set_gametocyte_level(Model::CONFIG->gametocyte_level_under_artemisinin_action());
} else {
blood_parasite_->set_gametocyte_level(0.2);
}
}
}
示例3: execute
void EndClinicalEvent::execute() {
Person* person = (Person*) dispatcher();
if (person->all_clonal_parasite_populations()->size() == 0) {
person->change_state_when_no_parasite_in_blood();
} else {
//still have parasite in blood
person->immune_system()->set_increase(true);
person->set_host_state(Person::ASYMPTOMATIC);
person->determine_relapse_or_not(clinical_caused_parasite_);
}
}