Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Connects two states, and holds references to corresponding actions and conditions. More...
#include <mitkStateMachineTransition.h>
Public Types | |
typedef StateMachineTransition | Self |
typedef itk::LightObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
SpStateMachineState | GetNextState () const |
std::string | GetNextStateName () const |
bool | operator== (const StateMachineTransition &transition) const |
ActionVectorType | GetActions () const |
Get an iterator on the first action in list. More... | |
const ConditionVectorType & | GetConditions () const |
void | SetNextState (const SpStateMachineState &nextState) |
Set the next state of this object. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New (const std::string &_arga, const std::string &_argb, const std::string &_argc) |
Protected Member Functions | |
StateMachineTransition (const std::string &nextStateName, const std::string &eventClass, const std::string &eventVariant) | |
virtual | ~StateMachineTransition () |
Protected Attributes | |
std::string | m_EventClass |
std::string | m_EventVariant |
Connects two states, and holds references to corresponding actions and conditions.
This class represents a transition between two states of a statemachine. It holds a list of conditions that have to be fulfilled in order to be executed correctly. It also holds a list of actions that will be executed if all conditions are fulfilled.
Definition at line 48 of file mitkStateMachineTransition.h.
typedef itk::SmartPointer<const Self> mitk::StateMachineTransition::ConstPointer |
Definition at line 54 of file mitkStateMachineTransition.h.
Definition at line 54 of file mitkStateMachineTransition.h.
Definition at line 54 of file mitkStateMachineTransition.h.
typedef itk::LightObject mitk::StateMachineTransition::Superclass |
Definition at line 54 of file mitkStateMachineTransition.h.
|
protected |
Definition at line 23 of file mitkStateMachineTransition.cpp.
References mitk::EventFactory::CreateEvent(), mitk::PropertyList::New(), and mitk::InteractionEventConst::xmlParameterEventClass().
|
protectedvirtual |
Definition at line 71 of file mitkStateMachineTransition.cpp.
std::vector< mitk::StateMachineAction::Pointer > mitk::StateMachineTransition::GetActions | ( | ) | const |
Get an iterator on the first action in list.
Definition at line 100 of file mitkStateMachineTransition.cpp.
|
inlinevirtual |
Definition at line 54 of file mitkStateMachineTransition.h.
|
virtual |
const mitk::ConditionVectorType & mitk::StateMachineTransition::GetConditions | ( | ) | const |
Definition at line 105 of file mitkStateMachineTransition.cpp.
mitk::StateMachineState::Pointer mitk::StateMachineTransition::GetNextState | ( | ) | const |
Definition at line 90 of file mitkStateMachineTransition.cpp.
std::string mitk::StateMachineTransition::GetNextStateName | ( | ) | const |
Definition at line 95 of file mitkStateMachineTransition.cpp.
|
inlinestatic |
Definition at line 54 of file mitkStateMachineTransition.h.
|
inlinestatic |
Definition at line 55 of file mitkStateMachineTransition.h.
Referenced by mitk::StateMachineState::GetTransitionList(), and mitk::StateMachineContainer::StartElement().
bool mitk::StateMachineTransition::operator== | ( | const StateMachineTransition & | transition | ) | const |
Check for equality. Equality is given if event variant is the same and classes are the same or the first argument is a superclass of the second. Here the order of arguments matters. !
Definition at line 33 of file mitkStateMachineTransition.cpp.
References mitk::EventFactory::CreateEvent(), m_EventClass, m_EventVariant, MITK_WARN, mitk::PropertyList::New(), and mitk::InteractionEventConst::xmlParameterEventClass().
void mitk::StateMachineTransition::SetNextState | ( | const SpStateMachineState & | nextState | ) |
Set the next state of this object.
Definition at line 110 of file mitkStateMachineTransition.cpp.
|
protected |
Definition at line 85 of file mitkStateMachineTransition.h.
Referenced by operator==().
|
protected |
Definition at line 86 of file mitkStateMachineTransition.h.
Referenced by operator==().