A representation of a state machine, attached to a class or method, that describes the response of the class to outside stimuli.