Skip to content

start_state

Syntax

start_state = <state-name>

Parameters

<state-name>
The name of the first state for each agent.

Description

This statement sets the initial state for ordinary agents in the current condition. This value can be different for each condition. This value must be set within the condition block, outside of any state blocks.

Examples

The following condition SCHOOL_SCHEDULE establishes an initial state Start for agents within the condition.

condition SCHOOL_SCHEDULE {
    start_state = Start
    group_start_state = GroupAgentStart
    ...
    state Start {
        # initial state for ordinary agents
        ...
    }
    state GroupAgentStart {
        # initial state for group agents
        ...
    }
    ...
}

See Also