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::CXor Class Reference

function block class for computing a boolean exclusive or More...

#include <FunctionBlocks.h>

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

Public Member Functions

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

Public Attributes

oETCS::DF::BOOL_INPUT_T m_bInput1
 storage for the first input
oETCS::DF::BOOL_INPUT_T m_bInput2
 storage for the second input
oETCS::DF::CEVCStateMachine *const m_pStateMachine
 pointer to the all contenting EVC state machine
::std::vector
< oETCS::DF::BOOL_OUTPUT_T
m_Result
 pointers to storage of boolean result of calculation

Detailed Description

function block class for computing a boolean exclusive or

Definition at line 500 of file FunctionBlocks.h.

Constructor & Destructor Documentation

oETCS::DF::CXor::CXor ( oETCS::DF::CEVCStateMachine *const  pStateMachine) throw ()
explicit

general constructor

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

Definition at line 447 of file FunctionBlocks.cpp.

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

destructor

Definition at line 461 of file FunctionBlocks.cpp.

Member Function Documentation

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

method for computing all outputs

Implements oETCS::DF::CFunctionBlock.

Definition at line 472 of file FunctionBlocks.cpp.

References m_bInput1, m_bInput2, and m_Result.

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

Here is the caller graph for this function:

Member Data Documentation

oETCS::DF::BOOL_INPUT_T oETCS::DF::CXor::m_bInput1

storage for the first input

Definition at line 529 of file FunctionBlocks.h.

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

oETCS::DF::BOOL_INPUT_T oETCS::DF::CXor::m_bInput2

storage for the second input

Definition at line 536 of file FunctionBlocks.h.

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

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().

::std::vector< oETCS::DF::BOOL_OUTPUT_T > oETCS::DF::CXor::m_Result

pointers to storage of boolean result of calculation

Definition at line 543 of file FunctionBlocks.h.

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


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