Skip to contents

Works for agent-class.

Usage

status(object)

status(object) <- value

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

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

Arguments

object

An instance of the agent-class.

value

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

See also

Examples

# Initialize agent
my_agent <- agent(center = c(0, 0), 
                  radius = 0.25, 
                  status = "move")

# Access the status slot for the agent
status(my_agent)
#>  iwqrj 
#> "move" 

# Change the status slot for the agent
status(my_agent) <- "reroute"
status(my_agent)
#>     iwqrj 
#> "reroute"