Skip to content

get_contact_rate

Syntax

get_contact_rate(condition_name)

Parameters

condition_name
The name of a condition.

Returns

The contact rate of a condition.

Description

This action searches a condition for transmissible agents and returns the contact rate of the condition.

Examples

This example reduces the contact rate for influenza to half of its initial value and prints the new contact rate.

condition FOO {
    group_start_state = Group_Start

    state Group_Start {
        if (is_group_agent(County)) {
            adjust_contacts(0.5)
        }
        if (is_group_agent(County)) {
            print(get_contact_rate(INF))
        }

        wait(0)
        default(Excluded)
    }
}

See Also