SwDataDefPropsConditional

XML tag

<SW-DATA-DEF-PROPS-CONDITIONAL>

Module

autosar.base

Inherits

This class is a collection of properties used by various data objects.

Note that not all of the attributes are useful all of the time. The special value None is used when an attribute is not active.

Factory Methods

Instances of SwDataDefPropsConditional are automatically being constructed when you are creating Application or Implementation data types using the Package API.

Constructor

base.DataConstraint([baseTypeRef = None][, implementationTypeRef = None][, swAddressMethodRef = None][, swCalibrationAccess = None][, swImplPolicy = None][, swPointerTargetProps = None][, compuMethodRef = None][, dataConstraintRef = None][, unitRef = None][, parent = None])
参数

swCalibrationAccess

Value

Description

None

No calibration access set

"" (Empty string)

Create default calibration access value as set by Workspace.profile.swCalibrationAccessDefault

"NOT-ACCESSIBLE"

The element will not be accessible by external tools

"READ-ONLY"

Read only access

"READ-WRITE"

Read-write access

swImplPolicy

Value

Description

None

No policy set

"CONST"

Prevent implementation to modify the memory. Uses the “const” modifier in C.

"FIXED"

Data element is fixed and might be implemented as in place data such as a #define.

"MEASUREMENT-POINT"

Data element is created for measurement purposes only.

"QUEUED"

Data element is queued and has event semantics. Data is processed in FIFO order.

"STANDARD"

Data element is non-queued and uses the “last is best” semantics

Attributes

Name

Type

Description

baseTypeRef

None or str

<BASE-TYPE-REF>

compuMethodRef

None or str

<COMPU-METHOD-REF>

dataConstraintRef

None or str

<DATA-CONSTR-REF>

implementationTypeRef

None or str

<IMPLEMENTATION-DATA-TYPE-REF>

parent

None or Package

Parent package

swAddressMethodRef

None or str

<SW-ADDR-METHOD-REF>

swCalibrationAccess

None or str

<SW-CALIBRATION-ACCESS>

swImplPolicy

None or str

<SW-IMPL-POLICY>

swPointerTargetProps

None or SwPointerTargetProps

<SW-POINTER-TARGET-PROPS>

unitRef

None or str

<UNIT-REF>

Public Properties

Name

Type

Access Type

swImplPolicy

str

Get, Set

swImplPolicy

Get or set current software implementation policy.

Public Methods

Method Description

hasAnyProp

SwDataDefPropsConditional.hasAnyProp()
Rtype bool

Package.

Returns True if any internal attribute is not None, else False The check excludes the parent attribute.