set_trans()

Set the transmissibility to a condition.

Synopsis

    <condition-name>.trans = <value>
set_trans(condition-name, value)

Description

The effect of this action depends on whether it is executed by an individual agent or by the meta-agent.

If executed by an individual agent, the action sets the agent’s transmissibility to a condition.

If executed by the meta-agent, the action sets the global transmissibility of a condition.

The compiler transforms the first form into the second form.

The first form is preferred.

Parameters

condition-name

The name of a transmissible condition.

value

An expression that evaluates to a numeric value.

Examples

Both of the following statements set the agent’s transmissibility to COVID19 to 1.0:

COVID19.trans = 1.0
set_trans(COVID19, 1.0)

See Also

set_sus()