skip()

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

Synopsis

skip()
skip(group_name, ..., group_name)

Description

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

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

Parameters

group_name

Name of a mixing group (a place or a network) that the agent should no longer visit

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()
    next()
}

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

join(), attend(), quit()