Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TestCaseMatlabDataPoolPID_1 Class Reference

#include <TestCaseMatlabDataPoolPID_1.h>

Inheritance diagram for TestCaseMatlabDataPoolPID_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services implemented by the DC_MatlabDataPoolPID class.

One instance of this class and a DC_BasicDataPool objects are created and the following tests are performed:

  1. The correctness of the class identifier is verified.
  2. It is verified that the control block is not configured at creation.
  3. The input is linked to the control block and it is checked that the control block is not yet configured.
  4. The output is linked tp the control block and it is checked that the control block is now configured.
  5. It is verified that the number of parameters returned by getNumberOfParameters is correct.
This and the following steps are performed only if the pre-processor symbol HAVE_SIMULINK is defined:
  1. The control block's parameters are initialized.
  2. The input is set to 1.0 and propagate() is invoked twice. After each call it is verified that the output is properly updated.
  3. The reset() method is invoked and it is verified that the state is reverted to the default value. The state of the Simulink model can not be accessed, therefore this check is performed by examining the output value after calling propagate().
  4. reset() is called, the Kp parameter is set to 0.0 and propagate is invoked twice. It is verified that the output reflects the change in the parameter value.
The use of the preprocessor symbol HAVE_SIMULINK violates project-specific coding rule PR9.2. This is necessary to allow construction of the regression test for users who do not have access to the Matlab/simulink suite. <p/> Simulink is a trademark of The Mathworks, Inc.

See also:
DC_MatlabDataPoolPID
Author:
Roberto Totaro
Version:
1.0

Definition at line 52 of file TestCaseMatlabDataPoolPID_1.h.

Public Member Functions

 TestCaseMatlabDataPoolPID_1 (void)
 Set the identifier and the name of the test case to, respectively, ID_MATLABDATAPOOLPID*10+1 and "TestCaseMatlabDataPoolPID_1".

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseMatlabDataPoolPID_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 23 of file TestCaseMatlabDataPoolPID_1.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved