start_state

The start state for regular agents in a condition.

Synopsis

start_state = <state-name>

Options

<state-name>

The name of the first state for each agent.

Description

This statement sets the initial state for regular agents in the current condition. This value can be different for each condition. If not specified, the first state defined in the condition is used as the start state. 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 regular agents
    }

    state GroupAgentStart {
        # initial state for group agents
    }

    ...
}

See Also

add_to_schedule(), group_start_state, is_group_agent(), meta_start_state, remove_from_schedule()