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

test class for ::oETS:DF::CFunctionBlock More...

#include <UnitTesting.h>

Inheritance diagram for oETCS::UT::CFunctionBlock:
Inheritance graph
Collaboration diagram for oETCS::UT::CFunctionBlock:
Collaboration graph

Public Member Functions

 CFunctionBlock () throw ()
 default constructor
void setUp () throw (::std::bad_alloc)
 creates all test objects
void tearDown () throw ()
 delete all test objects
void TestAnd () throw (::std::exception)
 test method for oETCS::DF:CAnd
void TestBoolGate () throw (::std::exception)
 test method for oETCS::DF:CBoolGate
void TestBoolSwitch () throw (::std::exception)
 test method for oETCS::DF:CBoolSwitch
void TestBrakingToTargetSpeed () throw (::std::exception)
 test method for oETCS::DF:CBrakingToTargetSpeed
void TestCeelingSpeedControl () throw (::std::exception)
 test method for oETCS::DF:CBrakingToTargetSpeed
void TestDivision () throw (::std::exception)
 test method for oETCS::DF:CDivision
void TestDoubleArrayAccessor () throw (::std::exception)
 test method for oETCS::DF:CDoubleArrayAccessor
void TestDoubleEqual () throw (::std::exception)
 test method for oETCS::DF:CDoubleEqual
void TestDoubleEqualOrGreater () throw (::std::exception)
 test method for oETCS::DF:CDoubleEqualOrGreater
void TestDoubleGate () throw (::std::exception)
 test method for oETCS::DF:CDoubleGate
void TestDoubleGreater () throw (::std::exception)
 test method for oETCS::DF:CDoubleGreater
void TestDoubleSwitch () throw (::std::exception)
 test method for oETCS::DF:CDoubleSwitch
void TestEnteredTrigger () throw (::std::exception)
 test method for oETCS::DF:CEnteredTrigger
void TestIntEqual () throw (::std::exception)
 test method for oETCS::DF:CIntEqual
void TestIntGreater () throw (::std::exception)
 test method for oETCS::DF:CIntGreater
void TestMultiplication () throw (::std::exception)
 test method for oETCS::DF:CMultiplication
void TestNot () throw (::std::exception)
 test method for oETCS::DF:CNot
void TestOr () throw (::std::exception)
 test method for oETCS::DF:COr
void TestStorage () throw (::std::exception)
 test method for oETCS::DF:CStorage
void TestStringEqual () throw (::std::exception)
 test method for oETCS::DF:CStringEqual
void TestStringGate () throw (::std::exception)
 test method for oETCS::DF:CStringGate
void TestStringSwitch () throw (::std::exception)
 test method for oETCS::DF:CStringSwitch
void TestSubstraction () throw (::std::exception)
 test method for oETCS::DF:CSubstraction
void TestSum () throw (::std::exception)
 test method for oETCS::DF:CSum
void TestXor () throw (::std::exception)
 test method for oETCS::DF:CXor

Public Attributes

oETCS::DF::BOOL_INPUT_T m_bBoolInput
 boolean input storage
oETCS::DF::BOOL_INPUT_T m_bBoolInput2
 boolean input storage
oETCS::DF::BOOL_INPUT_T m_bBoolInput3
 boolean input storage
oETCS::DF::BOOL_INPUT_T m_bBoolInput4
 boolean input storage
oETCS::DF::DOUBLE_INPUT_T m_dDoubleInput
 double input storage
oETCS::DF::DOUBLE_ARRAY_INPUT_T m_DoubleArrayInput
 double array input storage
oETCS::DF::INT_INPUT_T m_iIntInput
 integer input storage
oETCS::DF::STRING_INPUT_T m_StringInput
 string input storage

Private Member Functions

 CPPUNIT_TEST (TestAnd)
 CPPUNIT_TEST (TestOr)
 CPPUNIT_TEST (TestXor)
 CPPUNIT_TEST (TestNot)
 CPPUNIT_TEST (TestSum)
 CPPUNIT_TEST (TestSubstraction)
 CPPUNIT_TEST (TestDivision)
 CPPUNIT_TEST (TestMultiplication)
 CPPUNIT_TEST (TestDoubleEqual)
 CPPUNIT_TEST (TestIntEqual)
 CPPUNIT_TEST (TestStringEqual)
 CPPUNIT_TEST (TestDoubleEqualOrGreater)
 CPPUNIT_TEST (TestDoubleGreater)
 CPPUNIT_TEST (TestIntGreater)
 CPPUNIT_TEST (TestDoubleArrayAccessor)
 CPPUNIT_TEST (TestBoolGate)
 CPPUNIT_TEST (TestBrakingToTargetSpeed)
 CPPUNIT_TEST (TestCeelingSpeedControl)
 CPPUNIT_TEST (TestStringGate)
 CPPUNIT_TEST (TestDoubleGate)
 CPPUNIT_TEST (TestBoolSwitch)
 CPPUNIT_TEST (TestDoubleSwitch)
 CPPUNIT_TEST (TestStringSwitch)
 CPPUNIT_TEST (TestEnteredTrigger)
 CPPUNIT_TEST (TestStorage)
 CPPUNIT_TEST_SUITE (CFunctionBlock)
 CPPUNIT_TEST_SUITE_END ()

Private Attributes

oETCS::DF::CAndm_pAnd
 pointer to oETCS::DF::CAnd instance for testing
oETCS::DF::CStoragem_pBitStorage
 pointer to oETCS::DF::CStorage instance for testing the bit data flow
oETCS::DF::CBoolGatem_pBoolGate
 pointer to oETCS::DF::CBoolGate instance for testing
oETCS::DF::CBoolSwitchm_pBoolSwitch
 pointer to oETCS::DF::CBoolSwitch instance for testing
oETCS::DF::CBrakingToTargetSpeedm_pBrakingToTargetSpeed
 pointer to oETCS::DF::CBrakingToTargetSpeed instance for testing
oETCS::DF::CCeelingSpeedControlm_pCeelingSpeedControl
 pointer to oETCS::DF::CCeelingSpeedControl instance for testing
oETCS::DF::CComBlockInm_pComBlockIn
 pointer to oETCS::DF::CComBlockIn instance for testing
oETCS::DF::CComBlockOutm_pComBlockOut
 pointer to oETCS::DF::CComBlockOut instance for testing
oETCS::DF::CConditionm_pCondition
 pointer to oETCS::DF::CCondition instance for testing
oETCS::DF::CDivisionm_pDivision
 pointer to oETCS::DF::CDivision instance for testing
oETCS::DF::CDoubleArrayAccessorm_pDoubleArrayAccessor
 pointer to oETCS::DF::CDoubleArrayAccessor instance for testing
oETCS::DF::CDoubleEqualm_pDoubleEqual
 pointer to oETCS::DF::CDoubleEqual instance for testing
oETCS::DF::CDoubleEqualOrGreaterm_pDoubleEqualOrGreater
 pointer to oETCS::DF::CDoubleEqualOrGreater instance for testing
oETCS::DF::CDoubleGatem_pDoubleGate
 pointer to oETCS::DF::CDoubleGate instance for testing
oETCS::DF::CDoubleGreaterm_pDoubleGreater
 pointer to oETCS::DF::CDoubleGreater instance for testing
oETCS::DF::CDoubleSwitchm_pDoubleSwitch
 pointer to oETCS::DF::CDoubleSwitch instance for testing
oETCS::DF::CEnteredTriggerm_pEnteredTrigger
 pointer to oETCS::DF::CEnteredTrigger instance for testing
oETCS::DF::CEVCConditionm_pEVCCondition
 pointer to oETCS::DF::CEVCCondition instance for testing
oETCS::DF::CIntEqualm_pIntEqual
 pointer to oETCS::DF::COr instance for testing
oETCS::DF::CIntGreaterm_pIntGreater
 pointer to oETCS::DF::CIntGreater instance for testing
oETCS::DF::CLevelConditionm_pLevelCondition
 pointer to oETCS::DF::CLevelCondition instance for testing
oETCS::DF::CMultiplicationm_pMultiplication
 pointer to oETCS::DF::CMultiplication instance for testing
oETCS::DF::CNotm_pNot
 pointer to oETCS::DF::CNot instance for testing
oETCS::DF::COrm_pOr
 pointer to oETCS::DF::COr instance for testing
oETCS::DF::CStoragem_pStorage
 pointer to oETCS::DF::CStorage instance for testing
oETCS::DF::CStringEqualm_pStringEqual
 pointer to oETCS::DF::CStringEqual instance for testing
oETCS::DF::CStringGatem_pStringGate
 pointer to oETCS::DF::CStringGate instance for testing
oETCS::DF::CStringSwitchm_pStringSwitch
 pointer to oETCS::DF::CStringSwitch instance for testing
oETCS::DF::CSubstractionm_pSubstraction
 pointer to oETCS::DF::CSubstraction instance for testing
oETCS::DF::CSumm_pSum
 pointer to oETCS::DF::CSum instance for testing
oETCS::DF::CXorm_pXor
 pointer to oETCS::DF::CXor instance for testing
oETCS::DF::CEVCStateMachine m_StateMachine
 state machine used as reference for function block classes

Detailed Description

test class for ::oETS:DF::CFunctionBlock

Definition at line 88 of file UnitTesting.h.

Constructor & Destructor Documentation

oETCS::UT::CFunctionBlock::CFunctionBlock ( ) throw ()

default constructor

Definition at line 48 of file UnitTesting.cpp.

Member Function Documentation

oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestAnd  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestOr  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestXor  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestNot  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestSum  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestSubstraction  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDivision  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestMultiplication  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleEqual  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestIntEqual  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestStringEqual  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleEqualOrGreater  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleGreater  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestIntGreater  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleArrayAccessor  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestBoolGate  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestBrakingToTargetSpeed  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestCeelingSpeedControl  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestStringGate  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleGate  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestBoolSwitch  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestDoubleSwitch  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestStringSwitch  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestEnteredTrigger  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST ( TestStorage  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST_SUITE ( CFunctionBlock  )
private
oETCS::UT::CFunctionBlock::CPPUNIT_TEST_SUITE_END ( )
private
void oETCS::UT::CFunctionBlock::setUp ( ) throw (::std::bad_alloc)

creates all test objects

Definition at line 98 of file UnitTesting.cpp.

References oETCS::DF::CVariable::DOUBLE, oETCS::DF::CVariable::INTEGER, m_bBoolInput, m_bBoolInput2, m_bBoolInput3, m_bBoolInput4, oETCS::DF::CStorage::m_BitValue, oETCS::DF::CVariable::m_BitValues, oETCS::DF::CStorage::m_BoolValue, m_dDoubleInput, oETCS::DF::CSubstraction::m_Difference, m_DoubleArrayInput, oETCS::DF::CStorage::m_DoubleArrayValue, oETCS::DF::CStorage::m_DoubleValue, oETCS::DF::CBrakingToTargetSpeed::m_EmergencyBrakeApplied, oETCS::DF::CCeelingSpeedControl::m_EmergencyBrakeApplied, oETCS::DF::CBrakingToTargetSpeed::m_EmergencyBrakeValue, oETCS::DF::CCeelingSpeedControl::m_EmergencyBrakeValue, oETCS::DF::CEnteredTrigger::m_Entered, oETCS::DF::CDoubleEqual::m_Equal, oETCS::DF::CStringEqual::m_Equal, oETCS::DF::CIntEqual::m_Equal, oETCS::DF::CDoubleEqualOrGreater::m_EqualOrGreater, oETCS::DF::CBoolGate::m_GateOutput, oETCS::DF::CDoubleGate::m_GateOutput, oETCS::DF::CStringGate::m_GateOutput, oETCS::DF::CDoubleGreater::m_Greater, oETCS::DF::CIntGreater::m_Greater, m_iIntInput, oETCS::DF::CStorage::m_IntValue, m_pAnd, m_pBitStorage, m_pBoolGate, m_pBoolSwitch, m_pBrakingToTargetSpeed, m_pCeelingSpeedControl, m_pComBlockIn, m_pComBlockOut, m_pCondition, m_pDivision, m_pDoubleArrayAccessor, m_pDoubleEqual, m_pDoubleEqualOrGreater, m_pDoubleGate, m_pDoubleGreater, m_pDoubleSwitch, m_pEnteredTrigger, m_pEVCCondition, m_pIntEqual, m_pIntGreater, m_pLevelCondition, m_pMultiplication, m_pNot, m_pOr, oETCS::DF::CMultiplication::m_Product, m_pStorage, m_pStringEqual, m_pStringGate, m_pStringSwitch, m_pSubstraction, m_pSum, m_pXor, oETCS::DF::CDivision::m_Quotient, oETCS::DF::CAnd::m_Result, oETCS::DF::COr::m_Result, oETCS::DF::CNot::m_Result, oETCS::DF::CXor::m_Result, oETCS::DF::CBrakingToTargetSpeed::m_ServiceBrakeApplied, oETCS::DF::CCeelingSpeedControl::m_ServiceBrakeApplied, oETCS::DF::CBrakingToTargetSpeed::m_ServiceBrakeValue, oETCS::DF::CCeelingSpeedControl::m_ServiceBrakeValue, oETCS::DF::CBrakingToTargetSpeed::m_SpeedWarning, oETCS::DF::CCeelingSpeedControl::m_SpeedWarning, m_StateMachine, m_StringInput, oETCS::DF::CStorage::m_StringValue, oETCS::DF::CSum::m_Sum, oETCS::DF::CBoolSwitch::m_SwitchOutput, oETCS::DF::CDoubleSwitch::m_SwitchOutput, oETCS::DF::CStringSwitch::m_SwitchOutput, and oETCS::DF::CDoubleArrayAccessor::m_Value.

void oETCS::UT::CFunctionBlock::tearDown ( ) throw ()

delete all test objects

Definition at line 209 of file UnitTesting.cpp.

void oETCS::UT::CFunctionBlock::TestAnd ( ) throw (::std::exception)

test method for oETCS::DF:CAnd

Definition at line 220 of file UnitTesting.cpp.

References oETCS::DF::CAnd::Calculate(), m_bBoolInput, oETCS::DF::CAnd::m_bInput1, oETCS::DF::CAnd::m_bInput2, and m_pAnd.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestBoolGate ( ) throw (::std::exception)

test method for oETCS::DF:CBoolGate

Definition at line 814 of file UnitTesting.cpp.

References oETCS::DF::CBoolGate::Calculate(), m_bBoolInput, oETCS::DF::CBoolGate::m_bGateInput, oETCS::DF::CBoolGate::m_bOpen, and m_pBoolGate.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestBoolSwitch ( ) throw (::std::exception)

test method for oETCS::DF:CBoolSwitch

Definition at line 1099 of file UnitTesting.cpp.

References oETCS::DF::CBoolSwitch::Calculate(), m_bBoolInput, oETCS::DF::CBoolSwitch::m_bInput1, oETCS::DF::CBoolSwitch::m_bInput2, oETCS::DF::CBoolSwitch::m_bUseInput1, and m_pBoolSwitch.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestBrakingToTargetSpeed ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestCeelingSpeedControl ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestDivision ( ) throw (::std::exception)

test method for oETCS::DF:CDivision

Definition at line 483 of file UnitTesting.cpp.

References oETCS::DF::CDivision::Calculate(), oETCS::DF::CDivision::m_dDividend, oETCS::DF::CDivision::m_dDivisor, m_dDoubleInput, and m_pDivision.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleArrayAccessor ( ) throw (::std::exception)

test method for oETCS::DF:CDoubleArrayAccessor

Definition at line 765 of file UnitTesting.cpp.

References oETCS::DF::CDoubleArrayAccessor::Calculate(), oETCS::DF::CDoubleArrayAccessor::m_Array, m_dDoubleInput, oETCS::DF::CDoubleArrayAccessor::m_iIndex, and m_pDoubleArrayAccessor.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleEqual ( ) throw (::std::exception)

test method for oETCS::DF:CDoubleEqual

Definition at line 535 of file UnitTesting.cpp.

References oETCS::DF::CDoubleEqual::Calculate(), m_bBoolInput, oETCS::DF::CDoubleEqual::m_dInput1, oETCS::DF::CDoubleEqual::m_dInput2, and m_pDoubleEqual.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleEqualOrGreater ( ) throw (::std::exception)

test method for oETCS::DF:CDoubleEqualOrGreater

Definition at line 653 of file UnitTesting.cpp.

References oETCS::DF::CDoubleEqualOrGreater::Calculate(), m_bBoolInput, oETCS::DF::CDoubleEqualOrGreater::m_dInput1, oETCS::DF::CDoubleEqualOrGreater::m_dInput2, and m_pDoubleEqualOrGreater.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleGate ( ) throw (::std::exception)

test method for oETCS::DF:CDoubleGate

Definition at line 1063 of file UnitTesting.cpp.

References oETCS::DF::CDoubleGate::Calculate(), oETCS::DF::CDoubleGate::m_bOpen, m_dDoubleInput, oETCS::DF::CDoubleGate::m_dGateInput, and m_pDoubleGate.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleGreater ( ) throw (::std::exception)

test method for oETCS::DF:CDoubleGreater

Definition at line 697 of file UnitTesting.cpp.

References oETCS::DF::CDoubleGreater::Calculate(), m_bBoolInput, oETCS::DF::CDoubleGreater::m_dInput1, oETCS::DF::CDoubleGreater::m_dInput2, and m_pDoubleGreater.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestDoubleSwitch ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestEnteredTrigger ( ) throw (::std::exception)

test method for oETCS::DF:CEnteredTrigger

Definition at line 1216 of file UnitTesting.cpp.

References oETCS::DF::CEnteredTrigger::Calculate(), m_bBoolInput, oETCS::DF::CEnteredTrigger::m_bEnteredState, and m_pEnteredTrigger.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestIntEqual ( ) throw (::std::exception)

test method for oETCS::DF:CIntEqual

Definition at line 569 of file UnitTesting.cpp.

References oETCS::DF::CIntEqual::Calculate(), m_bBoolInput, oETCS::DF::CIntEqual::m_iInput1, oETCS::DF::CIntEqual::m_iInput2, and m_pIntEqual.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestIntGreater ( ) throw (::std::exception)

test method for oETCS::DF:CIntGreater

Definition at line 731 of file UnitTesting.cpp.

References oETCS::DF::CIntGreater::Calculate(), m_bBoolInput, oETCS::DF::CIntGreater::m_iInput1, oETCS::DF::CIntGreater::m_iInput2, and m_pIntGreater.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestMultiplication ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestNot ( ) throw (::std::exception)

test method for oETCS::DF:CNot

Definition at line 400 of file UnitTesting.cpp.

References oETCS::DF::CNot::Calculate(), m_bBoolInput, oETCS::DF::CNot::m_bInput, and m_pNot.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestOr ( ) throw (::std::exception)

test method for oETCS::DF:COr

Definition at line 278 of file UnitTesting.cpp.

References oETCS::DF::COr::Calculate(), m_bBoolInput, oETCS::DF::COr::m_bInput1, oETCS::DF::COr::m_bInput2, and m_pOr.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestStorage ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestStringEqual ( ) throw (::std::exception)

test method for oETCS::DF:CStringEqual

Definition at line 603 of file UnitTesting.cpp.

References oETCS::DF::CStringEqual::Calculate(), m_bBoolInput, oETCS::DF::CStringEqual::m_Input1, oETCS::DF::CStringEqual::m_Input2, and m_pStringEqual.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestStringGate ( ) throw (::std::exception)

test method for oETCS::DF:CStringGate

Definition at line 1019 of file UnitTesting.cpp.

References oETCS::DF::CStringGate::Calculate(), oETCS::DF::CStringGate::m_bOpen, oETCS::DF::CStringGate::m_GateInput, m_pStringGate, and m_StringInput.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestStringSwitch ( ) throw (::std::exception)
void oETCS::UT::CFunctionBlock::TestSubstraction ( ) throw (::std::exception)

test method for oETCS::DF:CSubstraction

Definition at line 459 of file UnitTesting.cpp.

References oETCS::DF::CSubstraction::Calculate(), m_dDoubleInput, oETCS::DF::CSubstraction::m_dMinuend, oETCS::DF::CSubstraction::m_dSubtrahend, and m_pSubstraction.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestSum ( ) throw (::std::exception)

test method for oETCS::DF:CSum

Definition at line 433 of file UnitTesting.cpp.

References oETCS::DF::CSum::Calculate(), oETCS::DF::CSum::m_dAddend1, oETCS::DF::CSum::m_dAddend2, oETCS::DF::CSum::m_dAddend3, m_dDoubleInput, and m_pSum.

Here is the call graph for this function:

void oETCS::UT::CFunctionBlock::TestXor ( ) throw (::std::exception)

test method for oETCS::DF:CXor

Definition at line 339 of file UnitTesting.cpp.

References oETCS::DF::CXor::Calculate(), m_bBoolInput, oETCS::DF::CXor::m_bInput1, oETCS::DF::CXor::m_bInput2, and m_pXor.

Here is the call graph for this function:

Member Data Documentation

oETCS::DF::BOOL_INPUT_T oETCS::UT::CFunctionBlock::m_bBoolInput
oETCS::DF::BOOL_INPUT_T oETCS::UT::CFunctionBlock::m_bBoolInput2

boolean input storage

Definition at line 554 of file UnitTesting.h.

Referenced by setUp(), TestBrakingToTargetSpeed(), and TestCeelingSpeedControl().

oETCS::DF::BOOL_INPUT_T oETCS::UT::CFunctionBlock::m_bBoolInput3

boolean input storage

Definition at line 561 of file UnitTesting.h.

Referenced by setUp(), TestBrakingToTargetSpeed(), and TestCeelingSpeedControl().

oETCS::DF::BOOL_INPUT_T oETCS::UT::CFunctionBlock::m_bBoolInput4

boolean input storage

Definition at line 568 of file UnitTesting.h.

Referenced by setUp(), TestBrakingToTargetSpeed(), and TestCeelingSpeedControl().

oETCS::DF::DOUBLE_INPUT_T oETCS::UT::CFunctionBlock::m_dDoubleInput
oETCS::DF::DOUBLE_ARRAY_INPUT_T oETCS::UT::CFunctionBlock::m_DoubleArrayInput

double array input storage

Definition at line 582 of file UnitTesting.h.

Referenced by setUp(), and TestStorage().

oETCS::DF::INT_INPUT_T oETCS::UT::CFunctionBlock::m_iIntInput

integer input storage

Definition at line 589 of file UnitTesting.h.

Referenced by setUp(), and TestStorage().

oETCS::DF::CAnd* oETCS::UT::CFunctionBlock::m_pAnd
private

pointer to oETCS::DF::CAnd instance for testing

Definition at line 328 of file UnitTesting.h.

Referenced by setUp(), and TestAnd().

oETCS::DF::CStorage* oETCS::UT::CFunctionBlock::m_pBitStorage
private

pointer to oETCS::DF::CStorage instance for testing the bit data flow

Definition at line 538 of file UnitTesting.h.

Referenced by setUp(), and TestStorage().

oETCS::DF::CBoolGate* oETCS::UT::CFunctionBlock::m_pBoolGate
private

pointer to oETCS::DF::CBoolGate instance for testing

Definition at line 468 of file UnitTesting.h.

Referenced by setUp(), and TestBoolGate().

oETCS::DF::CBoolSwitch* oETCS::UT::CFunctionBlock::m_pBoolSwitch
private

pointer to oETCS::DF::CBoolSwitch instance for testing

Definition at line 503 of file UnitTesting.h.

Referenced by setUp(), and TestBoolSwitch().

oETCS::DF::CBrakingToTargetSpeed* oETCS::UT::CFunctionBlock::m_pBrakingToTargetSpeed
private

pointer to oETCS::DF::CBrakingToTargetSpeed instance for testing

Definition at line 475 of file UnitTesting.h.

Referenced by setUp(), and TestBrakingToTargetSpeed().

oETCS::DF::CCeelingSpeedControl* oETCS::UT::CFunctionBlock::m_pCeelingSpeedControl
private

pointer to oETCS::DF::CCeelingSpeedControl instance for testing

Definition at line 482 of file UnitTesting.h.

Referenced by setUp(), and TestCeelingSpeedControl().

oETCS::DF::CComBlockIn* oETCS::UT::CFunctionBlock::m_pComBlockIn
private

pointer to oETCS::DF::CComBlockIn instance for testing

Definition at line 363 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CComBlockOut* oETCS::UT::CFunctionBlock::m_pComBlockOut
private

pointer to oETCS::DF::CComBlockOut instance for testing

Definition at line 370 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CCondition* oETCS::UT::CFunctionBlock::m_pCondition
private

pointer to oETCS::DF::CCondition instance for testing

Definition at line 349 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CDivision* oETCS::UT::CFunctionBlock::m_pDivision
private

pointer to oETCS::DF::CDivision instance for testing

Definition at line 405 of file UnitTesting.h.

Referenced by setUp(), and TestDivision().

oETCS::DF::CDoubleArrayAccessor* oETCS::UT::CFunctionBlock::m_pDoubleArrayAccessor
private

pointer to oETCS::DF::CDoubleArrayAccessor instance for testing

Definition at line 461 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleArrayAccessor().

oETCS::DF::CDoubleEqual* oETCS::UT::CFunctionBlock::m_pDoubleEqual
private

pointer to oETCS::DF::CDoubleEqual instance for testing

Definition at line 419 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleEqual().

oETCS::DF::CDoubleEqualOrGreater* oETCS::UT::CFunctionBlock::m_pDoubleEqualOrGreater
private

pointer to oETCS::DF::CDoubleEqualOrGreater instance for testing

Definition at line 440 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleEqualOrGreater().

oETCS::DF::CDoubleGate* oETCS::UT::CFunctionBlock::m_pDoubleGate
private

pointer to oETCS::DF::CDoubleGate instance for testing

Definition at line 496 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleGate().

oETCS::DF::CDoubleGreater* oETCS::UT::CFunctionBlock::m_pDoubleGreater
private

pointer to oETCS::DF::CDoubleGreater instance for testing

Definition at line 447 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleGreater().

oETCS::DF::CDoubleSwitch* oETCS::UT::CFunctionBlock::m_pDoubleSwitch
private

pointer to oETCS::DF::CDoubleSwitch instance for testing

Definition at line 510 of file UnitTesting.h.

Referenced by setUp(), and TestDoubleSwitch().

oETCS::DF::CEnteredTrigger* oETCS::UT::CFunctionBlock::m_pEnteredTrigger
private

pointer to oETCS::DF::CEnteredTrigger instance for testing

Definition at line 524 of file UnitTesting.h.

Referenced by setUp(), and TestEnteredTrigger().

oETCS::DF::CEVCCondition* oETCS::UT::CFunctionBlock::m_pEVCCondition
private

pointer to oETCS::DF::CEVCCondition instance for testing

Definition at line 342 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CIntEqual* oETCS::UT::CFunctionBlock::m_pIntEqual
private

pointer to oETCS::DF::COr instance for testing

Definition at line 426 of file UnitTesting.h.

Referenced by setUp(), and TestIntEqual().

oETCS::DF::CIntGreater* oETCS::UT::CFunctionBlock::m_pIntGreater
private

pointer to oETCS::DF::CIntGreater instance for testing

Definition at line 454 of file UnitTesting.h.

Referenced by setUp(), and TestIntGreater().

oETCS::DF::CLevelCondition* oETCS::UT::CFunctionBlock::m_pLevelCondition
private

pointer to oETCS::DF::CLevelCondition instance for testing

Definition at line 356 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::CMultiplication* oETCS::UT::CFunctionBlock::m_pMultiplication
private

pointer to oETCS::DF::CMultiplication instance for testing

Definition at line 412 of file UnitTesting.h.

Referenced by setUp(), and TestMultiplication().

oETCS::DF::CNot* oETCS::UT::CFunctionBlock::m_pNot
private

pointer to oETCS::DF::CNot instance for testing

Definition at line 384 of file UnitTesting.h.

Referenced by setUp(), and TestNot().

oETCS::DF::COr* oETCS::UT::CFunctionBlock::m_pOr
private

pointer to oETCS::DF::COr instance for testing

Definition at line 335 of file UnitTesting.h.

Referenced by setUp(), and TestOr().

oETCS::DF::CStorage* oETCS::UT::CFunctionBlock::m_pStorage
private

pointer to oETCS::DF::CStorage instance for testing

Definition at line 531 of file UnitTesting.h.

Referenced by setUp(), and TestStorage().

oETCS::DF::CStringEqual* oETCS::UT::CFunctionBlock::m_pStringEqual
private

pointer to oETCS::DF::CStringEqual instance for testing

Definition at line 433 of file UnitTesting.h.

Referenced by setUp(), and TestStringEqual().

oETCS::DF::CStringGate* oETCS::UT::CFunctionBlock::m_pStringGate
private

pointer to oETCS::DF::CStringGate instance for testing

Definition at line 489 of file UnitTesting.h.

Referenced by setUp(), and TestStringGate().

oETCS::DF::CStringSwitch* oETCS::UT::CFunctionBlock::m_pStringSwitch
private

pointer to oETCS::DF::CStringSwitch instance for testing

Definition at line 517 of file UnitTesting.h.

Referenced by setUp(), and TestStringSwitch().

oETCS::DF::CSubstraction* oETCS::UT::CFunctionBlock::m_pSubstraction
private

pointer to oETCS::DF::CSubstraction instance for testing

Definition at line 398 of file UnitTesting.h.

Referenced by setUp(), and TestSubstraction().

oETCS::DF::CSum* oETCS::UT::CFunctionBlock::m_pSum
private

pointer to oETCS::DF::CSum instance for testing

Definition at line 391 of file UnitTesting.h.

Referenced by setUp(), and TestSum().

oETCS::DF::CXor* oETCS::UT::CFunctionBlock::m_pXor
private

pointer to oETCS::DF::CXor instance for testing

Definition at line 377 of file UnitTesting.h.

Referenced by setUp(), and TestXor().

oETCS::DF::CEVCStateMachine oETCS::UT::CFunctionBlock::m_StateMachine
private

state machine used as reference for function block classes

Definition at line 321 of file UnitTesting.h.

Referenced by setUp().

oETCS::DF::STRING_INPUT_T oETCS::UT::CFunctionBlock::m_StringInput

string input storage

Definition at line 596 of file UnitTesting.h.

Referenced by setUp(), TestStorage(), TestStringGate(), and TestStringSwitch().


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