a state machine transition. More...
#include <vtkKWStateMachineTransition.h>


a state machine transition.
This class is the basis for a state machine transition. A state machine is defined by a set of states, a set of inputs and a transition matrix that defines for each pair of (state,input) what is the next state to assume.
Definition at line 39 of file vtkKWStateMachineTransition.h.
Reimplemented from vtkKWObject.
Definition at line 44 of file vtkKWStateMachineTransition.h.
| anonymous enum |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
Definition at line 137 of file vtkKWStateMachineTransition.h.
| vtkKWStateMachineTransition::vtkKWStateMachineTransition | ( | ) | [protected] |
| vtkKWStateMachineTransition::~vtkKWStateMachineTransition | ( | ) | [protected] |
| static vtkKWStateMachineTransition* vtkKWStateMachineTransition::New | ( | ) | [static] |
Reimplemented from vtkKWObject.
| virtual const char* vtkKWStateMachineTransition::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkKWObject.
| static int vtkKWStateMachineTransition::IsTypeOf | ( | const char * | type | ) | [static] |
Reimplemented from vtkKWObject.
| virtual int vtkKWStateMachineTransition::IsA | ( | const char * | type | ) | [virtual] |
Reimplemented from vtkKWObject.
| static vtkKWStateMachineTransition* vtkKWStateMachineTransition::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkKWObject.
| void vtkKWStateMachineTransition::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkKWObject.
| virtual vtkIdType vtkKWStateMachineTransition::GetId | ( | ) | [virtual] |
Get id.
| virtual vtkKWStateMachineState* vtkKWStateMachineTransition::GetOriginState | ( | ) | [virtual] |
Set/Get the state this transition is originating from.
| virtual void vtkKWStateMachineTransition::SetOriginState | ( | vtkKWStateMachineState * | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual vtkKWStateMachineInput* vtkKWStateMachineTransition::GetInput | ( | ) | [virtual] |
Set/Get the input this transition is triggered by.
| virtual void vtkKWStateMachineTransition::SetInput | ( | vtkKWStateMachineInput * | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual vtkKWStateMachineState* vtkKWStateMachineTransition::GetDestinationState | ( | ) | [virtual] |
Set/Get the state this transition is leading to.
| virtual void vtkKWStateMachineTransition::SetDestinationState | ( | vtkKWStateMachineState * | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual int vtkKWStateMachineTransition::IsComplete | ( | ) | [virtual] |
Get if the transition is complete, i.e. it has an originating state (OriginState), a destination state (DestinationState), and an input (Input).
| virtual void vtkKWStateMachineTransition::Start | ( | ) | [virtual] |
Start the transition. This method should be invoked when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. This can prove useful to push bew inputs that rely on the fact that the state machine is still at the OriginState. It will take care of calling the corresponding callbacks (StartCommand) and events (StartEvent). Subclasses that override this method should make sure they call their superclass's Start() method.
| virtual void vtkKWStateMachineTransition::End | ( | ) | [virtual] |
End the transition. This command should be invoked when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. This can prove useful to push new inputs that rely on the fact that the state machine is now at the DestinationState. It will take care of calling the corresponding callbacks (EndCommand) and events (EndEvent). Subclasses that override this method should make sure they call their superclass's End() method.
| virtual void vtkKWStateMachineTransition::SetStartCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Specifies a command to associate with this transition. This command should be invoked when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. State machine (sub)classes should call the Start() method most of the time, which will take care of triggering this callback and firing the StartEvent as well. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.
| virtual void vtkKWStateMachineTransition::InvokeStartCommand | ( | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual int vtkKWStateMachineTransition::HasStartCommand | ( | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual void vtkKWStateMachineTransition::SetEndCommand | ( | vtkObject * | object, | |
| const char * | method | |||
| ) | [virtual] |
Specifies a command to associate with this transition. This command should be invoked when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. State machine (sub)classes should call the End() method most of the time, which will take care of triggering this callback and firing the EndEvent as well. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.
| virtual void vtkKWStateMachineTransition::InvokeEndCommand | ( | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
| virtual int vtkKWStateMachineTransition::HasEndCommand | ( | ) | [virtual] |
Events. The StartEvent should be fired when the transition is "started" by the state machine, as the state machine is about to leave the OriginState but has not yet entered the DestinationState. The "EndEvent" should be fired when the transition is "ended" by the state machine, as the state machine has left the OriginState and already entered the DestinationState. In both case, State machine (sub)classes should call the corresponding Start() end End() methods most of the time, which will take care of triggering both the callbacks and firing the events. BTX
vtkIdType vtkKWStateMachineTransition::Id [protected] |
Definition at line 151 of file vtkKWStateMachineTransition.h.
Definition at line 152 of file vtkKWStateMachineTransition.h.
vtkKWStateMachineInput* vtkKWStateMachineTransition::Input [protected] |
Definition at line 153 of file vtkKWStateMachineTransition.h.
Definition at line 154 of file vtkKWStateMachineTransition.h.
char* vtkKWStateMachineTransition::EndCommand [protected] |
Definition at line 156 of file vtkKWStateMachineTransition.h.
char* vtkKWStateMachineTransition::StartCommand [protected] |
Definition at line 157 of file vtkKWStateMachineTransition.h.
1.6.1