openETCS
case study for the European Train Control System developed for the authors dissertation
Public Member Functions | Public Attributes | List of all members
oETCS::DF::CMultiplication Class Reference

function block class for computing a double multiplication More...

#include <FunctionBlocks.h>

Inheritance diagram for oETCS::DF::CMultiplication:
Inheritance graph
Collaboration diagram for oETCS::DF::CMultiplication:
Collaboration graph

Public Member Functions

virtual void Calculate () throw (::oETCS::DF::Error::CException)
 method for computing all outputs
 CMultiplication (oETCS::DF::CEVCStateMachine *const pStateMachine) throw ()
 default constructor
virtual ~CMultiplication () throw ()
 destructor

Public Attributes

oETCS::DF::DOUBLE_INPUT_T m_dMultiplicator1
 storage of the first multiplicator
oETCS::DF::DOUBLE_INPUT_T m_dMultiplicator2
 storage of the second multiplicator
oETCS::DF::DOUBLE_INPUT_T m_dMultiplicator3
 storage of the third multiplicator
::std::vector
< oETCS::DF::DOUBLE_OUTPUT_T
m_Product
 pointer to storage of the product
oETCS::DF::CEVCStateMachine *const m_pStateMachine
 pointer to the all contenting EVC state machine

Detailed Description

function block class for computing a double multiplication

Definition at line 273 of file FunctionBlocks.h.

Constructor & Destructor Documentation

oETCS::DF::CMultiplication::CMultiplication ( oETCS::DF::CEVCStateMachine *const  pStateMachine) throw ()

default constructor

Parameters
[in]pStateMachinepointer to the parent EVC state machine object

Definition at line 246 of file FunctionBlocks.cpp.

oETCS::DF::CMultiplication::~CMultiplication ( ) throw ()
virtual

destructor

Definition at line 261 of file FunctionBlocks.cpp.

Member Function Documentation

void oETCS::DF::CMultiplication::Calculate ( ) throw (::oETCS::DF::Error::CException)
virtual

method for computing all outputs

Implements oETCS::DF::CFunctionBlock.

Definition at line 272 of file FunctionBlocks.cpp.

References m_dMultiplicator1, m_dMultiplicator2, m_dMultiplicator3, and m_Product.

Referenced by oETCS::UT::CFunctionBlock::TestMultiplication().

Here is the caller graph for this function:

Member Data Documentation

oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CMultiplication::m_dMultiplicator1

storage of the first multiplicator

Definition at line 302 of file FunctionBlocks.h.

Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestMultiplication().

oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CMultiplication::m_dMultiplicator2

storage of the second multiplicator

Definition at line 309 of file FunctionBlocks.h.

Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestMultiplication().

oETCS::DF::DOUBLE_INPUT_T oETCS::DF::CMultiplication::m_dMultiplicator3

storage of the third multiplicator

Definition at line 316 of file FunctionBlocks.h.

Referenced by Calculate(), and oETCS::UT::CFunctionBlock::TestMultiplication().

::std::vector< oETCS::DF::DOUBLE_OUTPUT_T > oETCS::DF::CMultiplication::m_Product

pointer to storage of the product

Definition at line 323 of file FunctionBlocks.h.

Referenced by Calculate(), and oETCS::UT::CFunctionBlock::setUp().

oETCS::DF::CEVCStateMachine* const oETCS::DF::CFunctionBlock::m_pStateMachine
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().


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

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/.