Skip to content

skip

Syntax

skip()
skip(place_type_name, ..., place_type_name)

Parameters

place_type_name
Name of a place that the agent should no longer visit

Description

Directs an agent to no longer visit one or more place.

The agent does not attend any of the listed place_type while it remains in the current state. If the argument list is empty, the agent does not attend any place_type.

The agent resumes normal attendance patterns after leaving the current state.

Examples

This example is a possible state to make an agent stay home. While the agent remains in the FeelingSick state, the agent is skipping all places except their household.

state FeelingSick {
    skip()
    attend(Household)
    wait()
    default()
}

The following statement simply makes an agent skip their workplace, if it has any. The agent will continue to visit and be present in other mixing groups.

skip(Workplace)

See Also