a listener to be attached to a TargetedEvent to update state when that event fires.

create_state_update_listener(states, destination)

Arguments

states

a CategoricalVariable object

destination

the destination state