DiagnosticTreatNeg::DiagnosticTreatNeg()
 : SimpleDiagnostic()
 , negative_diagnosis_event()
 , defaulters_event()
 {
     initSimTypes( 1, "TB_SIM" );
 }
Example #2
0
 ImportPressure::ImportPressure() 
     : duration_counter(0)
     , num_imports(0)
 {
     LOG_DEBUG_F( "ctor\n" );
     initSimTypes( 1, "GENERIC_SIM" );
 }
Example #3
0
 // BaseNodeIntervention
 BaseNodeIntervention::BaseNodeIntervention()
     : cost_per_unit(0.0f)
     , expired(false)
 {
     initSimTypes( 1, "*" );
     LOG_DEBUG_F("New intervention, cost_per_unit = %f\n", cost_per_unit);
 }
Example #4
0
 Outbreak::Outbreak() : import_age(DAYSPERYEAR)
 {
     initSimTypes( 11, "GENERIC_SIM" , "VECTOR_SIM" , "MALARIA_SIM", "AIRBORNE_SIM", "POLIO_SIM", "TB_SIM", "TBHIV_SIM", "STI_SIM", "HIV_SIM", "PY_SIM", "TYPHOID_SIM" );
     initConfigTypeMap( "Antigen", &antigen, Antigen_DESC_TEXT, 0, 10, 0 );
     initConfigTypeMap( "Genome",  &genome,  Genome_DESC_TEXT, -1, 16777216, 0 );
     initConfigTypeMap( "Incubation_Period_Override", &incubation_period_override, Incubation_Period_Override_DESC_TEXT,-1, INT_MAX, -1);
 }
 SimpleHousingModification::SimpleHousingModification()
     : killing_effect( nullptr )
     , blocking_effect( nullptr )
 {
     initSimTypes( 2, "VECTOR_SIM", "MALARIA_SIM" );
     initConfigTypeMap("Cost_To_Consumer", &cost_per_unit, HM_Cost_To_Consumer_DESC_TEXT, 0, 999999, 8.0);
 }
Example #6
0
 AbstractBednet::AbstractBednet()
     : BaseIntervention()
     , m_pEffectKilling( nullptr )
     , m_pEffectBlocking( nullptr )
     , m_pConsumer( nullptr )
 {
     initSimTypes( 2, "MALARIA_SIM", "VECTOR_SIM" );
 }
Example #7
0
 InputEIR::InputEIR() 
 : BaseNodeIntervention()
 , today(0)
 , daily_EIR(0.0f)
 , risk_function(nullptr)
 {
     initSimTypes( 1, "MALARIA_SIM" ); // using sporozoite challenge
 }
Example #8
0
 BaseIntervention::BaseIntervention()
     : cost_per_unit(0.0f)
     , expired(false)
     , dont_allow_duplicates(false)
 {
     //total_intervention_counter++;
     initSimTypes( 1, "*" );
     initConfigTypeMap( "Dont_Allow_Duplicates", &dont_allow_duplicates, Dont_Allow_Duplicates_DESC_TEXT, false );
     //LOG_DEBUG_F("New intervention, total_intervention_counter = %d\n", total_intervention_counter);
 }
Example #9
0
 DiagnosticTreatNeg::DiagnosticTreatNeg()
 : SimpleDiagnostic()
 , negative_diagnosis_config()
 , negative_diagnosis_event()
 , defaulters_config()
 , defaulters_event()
 , m_gets_positive_test_intervention(false)
 {
     initSimTypes( 2, "TB_SIM", "TBHIV_SIM" );
     days_to_diagnosis.handle = std::bind( &DiagnosticTreatNeg::onDiagnosisComplete, this, 0.0f );
 }
Example #10
0
 HIVDelayedIntervention::HIVDelayedIntervention()
 : DelayedIntervention()
 , year2DelayMap()
 , days_remaining(-1)
 , broadcast_event()
 , broadcast_on_expiration_event()
 {
     initSimTypes(1, "HIV_SIM");
     delay_distribution.AddSupportedType( DistributionFunction::PIECEWISE_CONSTANT, "", "", "", "" );
     delay_distribution.AddSupportedType( DistributionFunction::PIECEWISE_LINEAR,   "", "", "", "" );
 }
Example #11
0
    HIVSimpleDiagnostic::HIVSimpleDiagnostic()
    : SimpleDiagnostic() // true implies only support events in SimpleDiagnostic
    , firstUpdate(true)
    , result_of_positive_test(false)
    , original_days_to_diagnosis(0.0)
    , negative_diagnosis_event()
    {
        initSimTypes(2, "HIV_SIM", "TBHIV_SIM");

        initConfigTypeMap("Days_To_Diagnosis", &days_to_diagnosis, SD_Days_To_Diagnosis_DESC_TEXT, FLT_MAX, 0);

        days_to_diagnosis.handle = std::bind( &HIVSimpleDiagnostic::Callback, this, std::placeholders::_1 );
    }
 IncidenceCounterSurveillance::IncidenceCounterSurveillance()
     : IncidenceCounter()
     , m_CounterPeriod( 0 ) 
     , m_CounterPeriod_current( 0 )
     , m_CounterType( CounterType::PERIODIC )
     , m_CounterEventType( EventType::INDIVIDUAL )
     , m_TriggerConditionList()
     , m_TriggerConditionListNode()
     , m_TriggerConditionListCoordinator()
     , m_PercentageEventsToCountIndividual()
     , m_PercentageEventsToCountNode()
     , m_PercentageEventsToCountCoordinator()
     , m_PercentageEventsCounted( 0 )
 {
     initSimTypes(1, "*");
 }
Example #13
0
 DiagnosticTreatNeg::DiagnosticTreatNeg( const DiagnosticTreatNeg& master )
 : SimpleDiagnostic( master )
 , negative_diagnosis_config(master.negative_diagnosis_config)
 , negative_diagnosis_event(master.negative_diagnosis_event)
 //, defaulters_config(master.defaulters_config)
 , defaulters_event(master.defaulters_event)
 , m_gets_positive_test_intervention(master.m_gets_positive_test_intervention)
 {
     initSimTypes( 2, "TB_SIM", "TBHIV_SIM" );
     // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     // !!! IndividualInterventionConfig - the copy constructor and assignment operator are different.
     // !!! I needed to use the assignment operator to get this to work correctly.
     // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     defaulters_config = master.defaulters_config;
     days_to_diagnosis.handle = std::bind( &DiagnosticTreatNeg::onDiagnosisComplete, this, 0.0f );
 }
Example #14
0
    HIVSimpleDiagnostic::HIVSimpleDiagnostic()
    : SimpleDiagnostic() // true implies only support events in SimpleDiagnostic
    , abortStates()
    , cascadeState("")
    , firstUpdate(true)
    , result_of_positive_test(false)
    , original_days_to_diagnosis(0.0)
    , negative_diagnosis_event()
    {
        initSimTypes(1, "HIV_SIM");

        // in a refactor, these might be lifted to a common HIVIntervention class
        abortStates.value_source = "Valid_Cascade_States.*";

        initConfigTypeMap("Abort_States", &abortStates, HIV_Abort_States_DESC_TEXT);
        initConfigTypeMap("Cascade_State", &cascadeState, HIV_Cascade_State_DESC_TEXT);
        initConfigTypeMap("Days_To_Diagnosis", &days_to_diagnosis, SD_Days_To_Diagnosis_DESC_TEXT, 0, FLT_MAX, 0);
    }
 StiCoInfectionDiagnostic::StiCoInfectionDiagnostic() : SimpleDiagnostic()
 {
     initSimTypes( 2, "STI_SIM", "HIV_SIM" );
 }