sus

Returns or sets the agent’s susceptibility to a condition

Synopsis

<condition-name>.sus = <value>
<variable-name> = <condition-name>.sus

Description

The first form above is an action that sets the agent’s susceptibility to a condition.

If the term occurs in a right-hand-side context such as in the second form above, it returns the value of an individual agent’s susceptibility to the given condition.

Parameters

condition-name

The name of a transmissible condition.

value

An expression that evaluates to a numeric value.

Examples

The following statement sets the agent’s susceptibility to COVID19 to 1.0:

COVID19.sus = 1.0

The following statement set the variable x to the agent’s susceptibility to COVID19:

x = COVID19.sus

See Also

set_sus(), set_trans()