Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::StateMachineTransition Class Reference

Connects two states, and holds references to corresponding actions and conditions. More...

#include <mitkStateMachineTransition.h>

Inheritance diagram for mitk::StateMachineTransition:
Collaboration diagram for mitk::StateMachineTransition:

Public Types

typedef StateMachineTransition Self
 
typedef itk::LightObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

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 ConditionVectorTypeGetConditions () 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
 

Detailed Description

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.

Member Typedef Documentation

typedef itk::LightObject mitk::StateMachineTransition::Superclass

Definition at line 54 of file mitkStateMachineTransition.h.

Constructor & Destructor Documentation

mitk::StateMachineTransition::StateMachineTransition ( const std::string &  nextStateName,
const std::string &  eventClass,
const std::string &  eventVariant 
)
protected
mitk::StateMachineTransition::~StateMachineTransition ( )
protectedvirtual

Definition at line 71 of file mitkStateMachineTransition.cpp.

Member Function Documentation

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.

virtual std::vector<std::string> mitk::StateMachineTransition::GetClassHierarchy ( ) const
inlinevirtual

Definition at line 54 of file mitkStateMachineTransition.h.

virtual const char* mitk::StateMachineTransition::GetClassName ( ) const
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.

static const char* mitk::StateMachineTransition::GetStaticNameOfClass ( )
inlinestatic

Definition at line 54 of file mitkStateMachineTransition.h.

static Pointer mitk::StateMachineTransition::New ( const std::string &  _arga,
const std::string &  _argb,
const std::string &  _argc 
)
inlinestatic
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.

Member Data Documentation

std::string mitk::StateMachineTransition::m_EventClass
protected

Definition at line 85 of file mitkStateMachineTransition.h.

Referenced by operator==().

std::string mitk::StateMachineTransition::m_EventVariant
protected

Definition at line 86 of file mitkStateMachineTransition.h.

Referenced by operator==().


The documentation for this class was generated from the following files: