openETCS
case study for the European Train Control System developed for the authors dissertation
|
function block class for computing a double sum More...
#include <FunctionBlocks.h>
Public Member Functions | |
virtual void | Calculate () throw (::oETCS::DF::Error::CException) |
method for computing all outputs | |
CSum (oETCS::DF::CEVCStateMachine *const pStateMachine) throw () | |
general constructor | |
virtual | ~CSum () throw () |
destructor |
Public Attributes | |
oETCS::DF::DOUBLE_INPUT_T | m_dAddend1 |
storage of the first addend | |
oETCS::DF::DOUBLE_INPUT_T | m_dAddend2 |
storage of the second addend | |
oETCS::DF::DOUBLE_INPUT_T | m_dAddend3 |
storage of the third addend | |
oETCS::DF::CEVCStateMachine *const | m_pStateMachine |
pointer to the all contenting EVC state machine | |
::std::vector < oETCS::DF::DOUBLE_OUTPUT_T > | m_Sum |
pointers to storage of the sum |
function block class for computing a double sum
Definition at line 438 of file FunctionBlocks.h.
oETCS::DF::CSum::CSum | ( | oETCS::DF::CEVCStateMachine *const | pStateMachine | ) | throw () |
general constructor
[in] | pStateMachine | pointer to the parent EVC state machine object |
Definition at line 396 of file FunctionBlocks.cpp.
|
virtual |
destructor
Definition at line 411 of file FunctionBlocks.cpp.
|
virtual |
method for computing all outputs
Implements oETCS::DF::CFunctionBlock.
Definition at line 422 of file FunctionBlocks.cpp.
References m_dAddend1, m_dAddend2, m_dAddend3, and m_Sum.
Referenced by oETCS::UT::CFunctionBlock::TestSum().
oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CSum::m_dAddend1 |
storage of the first addend
Definition at line 467 of file FunctionBlocks.h.
Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestSum().
oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CSum::m_dAddend2 |
storage of the second addend
Definition at line 474 of file FunctionBlocks.h.
Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestSum().
oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CSum::m_dAddend3 |
storage of the third addend
Definition at line 481 of file FunctionBlocks.h.
Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestSum().
|
inherited |
pointer to the all contenting EVC state machine
Definition at line 894 of file EVCStateMachine.h.
Referenced by oETCS::DF::CCondition::Calculate(), and oETCS::DF::CDMIOutput::Calculate().
::std::vector< oETCS::DF::DOUBLE_OUTPUT_T > oETCS::DF::CSum::m_Sum |
pointers to storage of the sum
Definition at line 488 of file FunctionBlocks.h.
Referenced by Calculate(), and oETCS::UT::CFunctionBlock::setUp().
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/.