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

TestCaseMatlabPointerPID_1 Class Reference

#include <TestCaseMatlabPointerPID_1.h>

Inheritance diagram for TestCaseMatlabPointerPID_1:

TestCaseGenericSetUp TestCase List of all members.

Detailed Description

Verify the services implemented by the DC_MatlabPointerPID class.

One instance of this class is 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 variable is linked and it is checked that the control block is not yet configured.
  4. The output variable is linked 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_MatlabPointerPID
Author:
Roberto Totaro
Version:
1.0

Definition at line 51 of file TestCaseMatlabPointerPID_1.h.

Public Member Functions

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

virtual void runTestCase (void)
 Execute the test case.


Member Function Documentation

void TestCaseMatlabPointerPID_1::runTestCase void   )  [virtual]
 

Execute the test case.

See class comment for details.

Reimplemented from TestCaseGenericSetUp.

Definition at line 22 of file TestCaseMatlabPointerPID_1.cpp.


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