Defines TransitionBase class.