openETCS
case study for the European Train Control System developed for the authors dissertation
|
transition class for EVC states More...
#include <EVCStateMachine.h>
Public Member Functions | |
CEVCTransition (oETCS::DF::CEVCCondition *const pCondition, oETCS::DF::CEVCStateMachine::CEVCState *const pStartState, oETCS::DF::CEVCStateMachine::CEVCState *const pTargetState, const unsigned int &iPriority=0) throw () | |
general constructor | |
const oETCS::DF::CEVCCondition * | GetCondition () const throw () |
gets the pointer to the related EVC condition | |
unsigned int | GetPriority () const throw () |
gets the nurmerial priority | |
oETCS::DF::CEVCStateMachine::CEVCState *const | GetStartState () const throw () |
gets the pointer to the related EVC start state | |
oETCS::DF::CEVCStateMachine::CEVCState *const | GetTargetState () const throw () |
gets the pointer to the related EVC target state | |
virtual | ~CEVCTransition () throw () |
destructor |
Private Attributes | |
const int | m_iPriority |
numerical priority of a transition | |
oETCS::DF::CEVCCondition *const | m_pCondition |
pointer to the related condition object | |
oETCS::DF::CEVCStateMachine::CEVCState *const | m_pStartState |
pointer to the EVC start state object of the transition | |
oETCS::DF::CEVCStateMachine::CEVCState *const | m_pTargetState |
pointer to the target state of the transition |
transition class for EVC states
Definition at line 645 of file EVCStateMachine.h.
|
explicit |
general constructor
Parameterises the EVC state transition with all constant members.
[in] | pConditon | pointer to the related condition object |
[in] | pStartState | pointer to the start EVC state object of the transtion |
[in] | pTargetState | pointer to the target EVC state object of the transtion |
[in] | iPriority | numerical priority of the transition |
Definition at line 1245 of file EVCStateMachine.cpp.
|
virtual |
destructor
Definition at line 1261 of file EVCStateMachine.cpp.
const oETCS::DF::CEVCCondition * oETCS::DF::CEVCTransition::GetCondition | ( | ) | const throw () |
gets the pointer to the related EVC condition
Definition at line 1272 of file EVCStateMachine.cpp.
unsigned int oETCS::DF::CEVCTransition::GetPriority | ( | ) | const throw () |
gets the nurmerial priority
Definition at line 1308 of file EVCStateMachine.cpp.
oETCS::DF::CEVCStateMachine::CEVCState *const oETCS::DF::CEVCTransition::GetStartState | ( | ) | const throw () |
gets the pointer to the related EVC start state
Definition at line 1284 of file EVCStateMachine.cpp.
oETCS::DF::CEVCStateMachine::CEVCState *const oETCS::DF::CEVCTransition::GetTargetState | ( | ) | const throw () |
gets the pointer to the related EVC target state
Definition at line 1296 of file EVCStateMachine.cpp.
|
private |
numerical priority of a transition
Definition at line 731 of file EVCStateMachine.h.
|
private |
pointer to the related condition object
Definition at line 710 of file EVCStateMachine.h.
|
private |
pointer to the EVC start state object of the transition
Definition at line 717 of file EVCStateMachine.h.
|
private |
pointer to the target state of the transition
Definition at line 724 of file EVCStateMachine.h.
Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or any later version.
The openETCS library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with the openETCS library. If not, see
"http://www.gnu.org/licenses/.