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

condition class for changing the current application level More...

#include <EVCStateMachine.h>

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

Public Member Functions

virtual void Calculate () throw (::oETCS::DF::Error::CException)
 virtual method for computing all outputs and setting the all referenced outputs
 CLevelCondition (oETCS::DF::CEVCStateMachine *const pStateMachine, const std::string &ApplicationLevel) throw ()
 general constructor
virtual ~CLevelCondition () throw ()
 destructor

Public Attributes

oETCS::DF::BOOL_INPUT_T m_bLevelSwitch
 input storage for activating a application level switch by a condition object
oETCS::DF::CEVCStateMachine *const m_pStateMachine
 pointer to the all contenting EVC state machine
const ::std::string m_TargetApplicationLevel
 literal of the target application level of the condition

Detailed Description

condition class for changing the current application level

Definition at line 1351 of file EVCStateMachine.h.

Constructor & Destructor Documentation

oETCS::DF::CLevelCondition::CLevelCondition ( oETCS::DF::CEVCStateMachine *const  pStateMachine,
const std::string &  ApplicationLevel 
) throw ()
explicit

general constructor

Parameters
[in]pStateMachinepointer to the parent EVC state machine object
[in]ApplicationLevelliteral name of the application level for which the condition object is used

Definition at line 1461 of file EVCStateMachine.cpp.

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

destructor

Definition at line 1475 of file EVCStateMachine.cpp.

Member Function Documentation

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

virtual method for computing all outputs and setting the all referenced outputs

Remarks
must be implemented by any inheriting class

Implements oETCS::DF::CFunctionBlock.

Definition at line 1486 of file EVCStateMachine.cpp.

Member Data Documentation

oETCS::DF::BOOL_INPUT_T oETCS::DF::CLevelCondition::m_bLevelSwitch

input storage for activating a application level switch by a condition object

Definition at line 1383 of file EVCStateMachine.h.

Referenced by oETCS::UT::CEVCStateMachine::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().

const ::std::string oETCS::DF::CLevelCondition::m_TargetApplicationLevel

literal of the target application level of the condition

Definition at line 1390 of file EVCStateMachine.h.


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