Updates the category of a sub-population as the result of an event firing, to be used in the TargetedEvent class.

update_category_listener(variable, to)

Arguments

variable

a CategoricalVariable object.

to

a string representing the destination category.