Core.Parameters

From emotive
Jump to navigation Jump to search

Classification

Name Parameters
Short Description OTX parameters data model
Class OTX Core
Pre-Conditions -
Specified by ISO 13209-2

Introduction

Within the declaration block parameter In, Out and In/Out parameters of procedures and signatures are stored. All parameters have the following properties.

Properties

  • Name
    Name of the parameter
  • Specification
    Description of the parameter
  • Type
    Data type of the parameter
  • Initial Value (default value)
    Value is initialized to the parameter

Types

In OTX following types of parameters are distinguished:

  • InParameter
    With InParametern values ​​are passed to the callee. They are treated as constants within the called environment and may not be changed.
  • InOutParameter
    InOutParameter be used for the handover and return values. The called context only the references of the parameter is to passed. This means that any change of the parameter within the context of the caller is visible.
  • OutParameter
    OutParameter serve solely to return values ​​to the caller.

Checker rules

Core_Chk051 Immutability of constants, input parameters and context variables
Core_Chk030 Input- and in&output-argument omission
Core_Chk052 Identifier shadowing

See also

Validation (OTX-Checker)
​​Naming Conventions
Declarations
Visibilities
Imports
Signatures
Validities
Procedures
Comments