ParameterDataPrototype
XML tag |
<PARAMETER-DATA-PROTOTYPE> |
Module |
autosar.element |
Inherits |
Represents a parameter data protoype.
注解
This class replaces autosar.portinterface.Parameter as well as autosar.behavior.ParameterDataPrototype
Usage
ws = autosar.workspace(version="4.2.2")
ws.createPackage('Contraints', role='DataConstraint')
basetypes = ws.createPackage('BaseTypes')
uint8_base = basetypes.createBaseType('uint8', 8, None)
package = ws.createPackage('DataTypes')
int8_type = package.createImplementationDataType('uint8', uint8_base.ref, 0, 255)
package = ws.createPackage('PortInterfaces')
parameter = autosar.element.ParameterDataPrototype('v', uint8_type.ref)
Factory Methods
autosar.ParameterDataPrototype
Constructor
- ParameterDataPrototype(name, typeRef[, swAddressMethodRef = None][, swCalibrationAccess = None][, initValue = None][, parent=None][, adminData=None])
- 参数
name (str) – ShortName identifer
typeRef (str) – Type reference
swAddressMethodRef (str) – Reference to SoftwareAddressMethod
swCalibrationAccess (str) – Calibration access setting
initValue (str) – Optional init value (TBD)
parent – Internal use only (leave as None)
adminData – Optional AdminData object
swCalibrationAccess
Value |
Description |
---|---|
|
No calibration access set |
|
Create default calibration access value as set by Workspace.profile.swCalibrationAccessDefault |
|
The element will not be accessible by external tools |
|
Read only access |
|
Read-write access |
Attributes
For inherited attributes see autosar.element.Element.
Name |
Type |
Description |
---|---|---|
typeRef |
str |
Reference to datatype |
swAddressMethodRef |
None or str |
Reference to SoftwareAddressMethod |
swCalibrationAccess |
None or str |
Software calibration access |
initValue |
Object derived from autosar.value.ValueAR4 |
Software calibration access |