Skip to contents

Works for goal-class.

Usage

busy(object)

busy(object) <- value

# S4 method for class 'goal'
busy(object)

# S4 method for class 'goal'
busy(object) <- value

Arguments

object

An instance of the goal-class.

value

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

Examples

# Initialize a goal with a given business status
my_goal <- goal(position = c(0, 0), 
                busy = TRUE)

# Access the business 
busy(my_goal)
#> [1] TRUE

# Change the business
busy(my_goal) <- FALSE
busy(my_goal)
#> [1] FALSE