Test Case TC_302
This page describes one of the test cases of the EODiSP. The test case described
in this page instantiates a nominal scenario of the use case
UC_302.
This test case describes the steps required to generate an HLA wrapper for an excel-based
model. The test case assumes that the excel-based model is identical to the Sim_Controller
model of the EarthCARE
Simulator with one difference: The target excel-based model has one additional
output parameter called offset
.
Contents
Overview
Identifier | TC_302 |
Name | Generate Wrapper Code for an Excel Workbook |
Primary Actor | ETH_2 Model Owner |
Description |
Describes the steps required to change the existing sim_controller federate.
This is the federate that wraps an Excel Workbook. The change to be performed is
to add an offset parameter to the orbit_propagator.
|
Pre-Condition |
(1) The SOM for the sim_controller must be available. (2) The Java template class
file for the sim_controller federate is available. (3) The Excel Workbook
is available. (4) Microsoft Excel is installed on the model owner's computer.
|
Post-Condition |
A sim_controller federate with the additional offset parameter
added. This federate could be integrated into the EarthCARE simulator.
|
Steps
- Actor adds the offset attribute to the sim_controller SOM file.
- Actor runs the HLA Wrapper Generator Application to create the HLA wrapper skeleton (see test case TC_320).
- System generates the Java classes.
- Actor adds the offset parameter to the appropriate Excel Worksheet and associates a name to it.
- Actor uses the Excel Wrapper Generator to generate the Java classes for the changed sim_controller Workbook.
- System generates the Java classes.
- Actor opens the Excel wrapper template file provided by the EODiSP. The template file is a Java class with comments. These comments are self-explanatory and show the actor where to insert custom code.