openETCS
case study for the European Train Control System developed for the authors dissertation
Condition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2012
3  Johannes Feuser <feuser@uni-bremen.de>
4  This file is part of the openETCS library.
5 
6  The openETCS library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  any later version.
10 
11  The openETCS library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with the openETCS library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \author Johannes Feuser <feuser@uni-bremen.de>
22  * \brief condition class for control flows
23  */
24 
25 #ifndef __OETCS_DF_CONDITION_H__
26 #define __OETCS_DF_CONDITION_H__
27 
28 
29 
30 
31 #include "Error/ExceptionTypes.h"
32 #include "EVCStateMachine.h"
33 #include "Transition.h"
34 
35 
36 
37 
38 namespace oETCS { namespace DF { class CEVCStateMachine; } }
39 
40 
41 namespace oETCS {
42 
43 namespace DF {
44 
45 
46 /*!
47  * \brief condition class for starting the execution of a certain state
48  */
50 {
51  public:
52  /*!
53  * \brief general constructor
54  *
55  * \param[in] pStateMachine pointer to the parent EVC state machine object
56  */
57  explicit CCondition(oETCS::DF::CEVCStateMachine * const pStateMachine) throw();
58 
59 
60 
61  /*!
62  * \brief destructor
63  */
64  virtual ~CCondition() throw();
65 
66 
67 
68  /*!
69  * \brief virtual method for computing all outputs and setting the all referenced outputs
70  *
71  * \remark must be implemented by any inheriting class
72  */
73  virtual void Calculate() throw(::oETCS::DF::Error::CException);
74 
75 
76 
77  /*!
78  * \brief input storage of the guard of the condition
79  */
81 
82 
83 
84 
85 }; // class CCondition : public oETCS::DF::CFunctionBlock
86 
87 
88 
89 
90 
91 } // namespace oETCS::DF
92 
93 } // namespace oETCS
94 
95 #endif // __ OETCS_DF_CONDITION_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/.