Skip to content

meta_start_state

Syntax

meta_start_state = <state>

Description

This statement sets the initial state for the meta agent in the current condition. The meta agent start state executes before any agents in the condition, which permits configuration or initialization tasks to be performed. The initial meta agent state can be different for each condition. The default start state for the meta agent is Excluded. This value must be set within the condition block, outside of any state blocks.

Examples

The following condition INFLUENZA establishes the meta agent start state ImportAgents for the condition. In this state, the meta agent selects 10 random agents to be exposed to the condition.

condition INFLUENZA {
    start_state = Start`
    meta_start_state = ImportAgents
    ...

    state Start {
        # initial state for regular agents
    }

    state ImportAgents{
        # Import 10 Influenza cases into this condition
        import_count(10)
        wait()
        default()
    }
    ...
}

See Also