20 const std::string &eventClass,
21 const std::string &eventVariant)
22 : m_EventClass(eventClass), m_EventVariant(eventVariant), m_NextStateName(nextStateName)
36 if (m_TransitionEvent.IsNull())
44 if (tmpEvent.IsNull())
49 if (m_TransitionEvent->IsSuperClassOf(tmpEvent.GetPointer()))
60 MITK_WARN <<
"Event type in Statemachine " <<
m_EventClass <<
" is not compatible to configuration class " 70 m_NextState =
nullptr;
78 m_Actions.push_back(action);
83 m_Conditions.push_back(condition);
93 return m_NextStateName;
108 m_NextState = nextState;
SpStateMachineState GetNextState() const
~StateMachineTransition() override
static const std::string xmlParameterEventClass()
static InteractionEvent::Pointer CreateEvent(PropertyList::Pointer eventDescription)
const ConditionVectorType & GetConditions() const
StateMachineTransition(const std::string &nextStateName, const std::string &eventClass, const std::string &eventVariant)
ActionVectorType GetActions() const
Get an iterator on the first action in list.
Connects two states, and holds references to corresponding actions and conditions.
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
Represents a condition, that has to be fulfilled in order to execute a state machine transition after...
std::vector< StateMachineCondition > ConditionVectorType