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

communication class for outgoing messages in a data flow More...

#include <FunctionBlocks.h>

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

Public Member Functions

virtual void Calculate () throw (::oETCS::DF::Error::CException)
 pure virtual method for computing all outputs
 CComBlockOut (oETCS::DF::CEVCStateMachine *const pStateMachine, const ::std::vector< oETCS::DF::CBaliseDeviceOut * > &OutDevices) throw ()
 general constructor
virtual ~CComBlockOut () throw ()
 destructor

Public Attributes

oETCS::DF::BOOL_INPUT_T m_bSendTelegram
 storage of the flag for sending a telegram
oETCS::DF::CEVCStateMachine *const m_pStateMachine
 pointer to the all contenting EVC state machine

Private Attributes

const ::std::vector
< oETCS::DF::CBaliseDeviceOut * > 
m_OutDevices
 vector with pointers to all communication out devices in this com block

Detailed Description

communication class for outgoing messages in a data flow

Definition at line 1581 of file FunctionBlocks.h.

Constructor & Destructor Documentation

oETCS::DF::CComBlockOut::CComBlockOut ( oETCS::DF::CEVCStateMachine *const  pStateMachine,
const ::std::vector< oETCS::DF::CBaliseDeviceOut * > &  OutDevices 
) throw ()
explicit

general constructor

Parameters
[in]pStateMachinepointer to the parent EVC state machine object
[in]OutDevicesvector with pointers to all out devices (takes over posession)

Definition at line 1558 of file FunctionBlocks.cpp.

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

destructor

Definition at line 1572 of file FunctionBlocks.cpp.

References m_OutDevices.

Member Function Documentation

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

pure virtual method for computing all outputs

Remarks
must me implemented by any inheriting class

Implements oETCS::DF::CFunctionBlock.

Definition at line 1593 of file FunctionBlocks.cpp.

References m_bSendTelegram, and m_OutDevices.

Member Data Documentation

oETCS::DF::BOOL_INPUT_T oETCS::DF::CComBlockOut::m_bSendTelegram

storage of the flag for sending a telegram

Definition at line 1613 of file FunctionBlocks.h.

Referenced by Calculate().

const ::std::vector< oETCS::DF::CBaliseDeviceOut* > oETCS::DF::CComBlockOut::m_OutDevices
private

vector with pointers to all communication out devices in this com block

Definition at line 1622 of file FunctionBlocks.h.

Referenced by Calculate(), and ~CComBlockOut().

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