Skip to contents

Works for agent-class.

Usage

waiting_counter(object)

waiting_counter(object) <- value

# S4 method for class 'agent'
waiting_counter(object)

# S4 method for class 'agent'
waiting_counter(object) <- value

Arguments

object

An instance of the agent-class.

value

Value with which to replace the original value of the waiting_counter slot.

Examples

# Initialize agent
my_agent <- agent(center = c(0, 0), 
                  radius = 0.25, 
                  waiting_counter = 0)

# Access the waiting_counter slot for the agent
waiting_counter(my_agent)
#> abwba 
#>     0 

# Change the waiting_counter slot for the agent
waiting_counter(my_agent) <- 5
waiting_counter(my_agent)
#> abwba 
#>     5