add tested code that constructs an interaction map from a map from primary states to tolerance class names