Medical Imaging Interaction Toolkit
2024.06.00
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) | |
~StateMachineTransition () override | |
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 44 of file mitkStateMachineTransition.h.
typedef itk::SmartPointer<const Self> mitk::StateMachineTransition::ConstPointer |
Definition at line 50 of file mitkStateMachineTransition.h.
Definition at line 50 of file mitkStateMachineTransition.h.
Definition at line 50 of file mitkStateMachineTransition.h.
typedef itk::LightObject mitk::StateMachineTransition::Superclass |
Definition at line 50 of file mitkStateMachineTransition.h.
|
protected |
|
overrideprotected |
ActionVectorType mitk::StateMachineTransition::GetActions | ( | ) | const |
Get an iterator on the first action in list.
|
inlinevirtual |
Definition at line 50 of file mitkStateMachineTransition.h.
|
virtual |
const ConditionVectorType& mitk::StateMachineTransition::GetConditions | ( | ) | const |
SpStateMachineState mitk::StateMachineTransition::GetNextState | ( | ) | const |
std::string mitk::StateMachineTransition::GetNextStateName | ( | ) | const |
|
inlinestatic |
Definition at line 50 of file mitkStateMachineTransition.h.
|
inlinestatic |
Definition at line 51 of file mitkStateMachineTransition.h.
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.
void mitk::StateMachineTransition::SetNextState | ( | const SpStateMachineState & | nextState | ) |
Set the next state of this object.
|
protected |
Definition at line 81 of file mitkStateMachineTransition.h.
|
protected |
Definition at line 82 of file mitkStateMachineTransition.h.