Skip to content

get_number_of_transmissibles

Syntax

get_number_of_transmissibles(condition_name)

Parameters

condition_name
The name of the condition that is to be searched for transmissible agents.

Returns

The number of transmissible agents in the group agent's group.

Description

This action must be called by a group agent. It returns the number of transmissible agents within the calling agent's group.

Examples

Let GroupSpin be a state in which a group agent has entered, and TransmissionCond be a condition in which transmissible agents exist. The following snippet would print the number of transmissible agents once per day:

    state GroupSpin {
        print("Number of transmissibles: ", get_number_of_transmissibles(TransmissionCond))

        wait(24)
        next(GroupSpin)
    }