24 const std::string &eventClass,
25 const std::string &eventVariant)
26 : m_EventClass(eventClass), m_EventVariant(eventVariant), m_NextStateName(nextStateName)
40 if (m_TransitionEvent.IsNull())
48 if (tmpEvent.IsNull())
53 if (m_TransitionEvent->IsSuperClassOf(tmpEvent.GetPointer()))
64 MITK_WARN <<
"Event type in Statemachine " << m_EventClass <<
" is not compatible to configuration class "
82 m_Actions.push_back(action);
85 void mitk::StateMachineTransition::AddCondition(
const StateMachineCondition &condition)
87 m_Conditions.push_back(condition);
97 return m_NextStateName;
112 m_NextState = nextState;
SpStateMachineState GetNextState() const
ActionVectorType GetActions() const
Get an iterator on the first action in list.
static const std::string xmlParameterEventClass()
static InteractionEvent::Pointer CreateEvent(PropertyList::Pointer eventDescription)
virtual ~StateMachineTransition()
StateMachineTransition(const std::string &nextStateName, const std::string &eventClass, const std::string &eventVariant)
Connects two states, and holds references to corresponding actions and conditions.
const ConditionVectorType & GetConditions() const
std::string m_EventVariant
bool operator==(const StateMachineTransition &transition) const
void SetNextState(const SpStateMachineState &nextState)
Set the next state of this object.
std::string GetNextStateName() const
std::vector< StateMachineCondition > ConditionVectorType