Trait EcucCommonAttributes

Source
pub trait EcucCommonAttributes: EcucDefinitionElement {
Show 14 methods // Provided methods fn set_multiplicity_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError> { ... } fn multiplicity_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)> { ... } fn set_origin(&self, origin: &str) -> Result<(), AutosarAbstractionError> { ... } fn origin(&self) -> Option<String> { ... } fn set_post_build_variant_multiplicity( &self, post_build_variant_multiplicity: Option<bool>, ) -> Result<(), AutosarAbstractionError> { ... } fn post_build_variant_multiplicity(&self) -> Option<bool> { ... } fn set_post_build_variant_value( &self, post_build_variant_value: Option<bool>, ) -> Result<(), AutosarAbstractionError> { ... } fn post_build_variant_value(&self) -> Option<bool> { ... } fn set_requires_index( &self, requires_index: Option<bool>, ) -> Result<(), AutosarAbstractionError> { ... } fn requires_index(&self) -> Option<bool> { ... } fn set_value_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError> { ... } fn value_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)> { ... } fn set_with_auto( &self, with_auto: Option<bool>, ) -> Result<(), AutosarAbstractionError> { ... } fn with_auto(&self) -> Option<bool> { ... }
}
Expand description

EcucCommonAttributes provides methods to modify attributes that are shared by all parameters and references

Provided Methods§

Source

fn set_multiplicity_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError>

set the multiplicity config classes of the parameter definition. If an empty list is provided, the multiplicity config classes are removed.

This setting is required if the containing EcucModuleDef has the category VENDOR_SPECIFIC_MODULE_DEFINITION.

Source

fn multiplicity_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>

get the multiplicity config classes of the parameter definition

Source

fn set_origin(&self, origin: &str) -> Result<(), AutosarAbstractionError>

set the origin of the parameter definition

The origin is a string that describes if the parameter was defined in the AUTOSAR standard or by a vendor. Standardized parameters use the origin “AUTOSAR_ECUC”, while vendors are supposed to use string like “VendorXyz_v1.3”

Source

fn origin(&self) -> Option<String>

get the origin of the parameter definition

The origin is a string that describes if the parameter was defined in the AUTOSAR standard or by a vendor. Standardized parameters use the origin “AUTOSAR_ECUC”, while vendors are supposed to use string like “VendorXyz_v1.3”

Source

fn set_post_build_variant_multiplicity( &self, post_build_variant_multiplicity: Option<bool>, ) -> Result<(), AutosarAbstractionError>

set or remove the postBuildVariantMultiplicity attribute

If postBuildVariantMultiplicity is true, then the parameter or reference may have a different number of instances in different post-build variants.

Source

fn post_build_variant_multiplicity(&self) -> Option<bool>

get the postBuildVariantMultiplicity attribute

If postBuildVariantMultiplicity is true, then the parameter or reference may have a different number of instances in different post-build variants.

Source

fn set_post_build_variant_value( &self, post_build_variant_value: Option<bool>, ) -> Result<(), AutosarAbstractionError>

set or remove the postBuildVariantValue attribute

If postBuildVariantValue is true, then the parameter or reference may have different values in different post-build variants.

Source

fn post_build_variant_value(&self) -> Option<bool>

get the postBuildVariantValue attribute

If postBuildVariantValue is true, then the parameter or reference may have different values in different post-build variants.

Source

fn set_requires_index( &self, requires_index: Option<bool>, ) -> Result<(), AutosarAbstractionError>

set or remove the requiresIndex attribute

Source

fn requires_index(&self) -> Option<bool>

get the requiresIndex attribute

Source

fn set_value_config_classes( &self, config: &[(EcucConfigurationClass, EcucConfigurationVariant)], ) -> Result<(), AutosarAbstractionError>

set the value config classes of the parameter definition.

If an empty list is provided, the value config classes are removed. According to the specification setting is required if the containing EcucModuleDef has the category “VENDOR_SPECIFIC_MODULE_DEFINITION”, but in practice it is rarely used.

Source

fn value_config_classes( &self, ) -> Vec<(EcucConfigurationClass, EcucConfigurationVariant)>

get the value config classes of the parameter definition

According to the specification setting is required if the containing EcucModuleDef has the category “VENDOR_SPECIFIC_MODULE_DEFINITION”, but in practice it is rarely used.

Source

fn set_with_auto( &self, with_auto: Option<bool>, ) -> Result<(), AutosarAbstractionError>

set or remove the withAuto attribute

If withAuto is true, then the parameter or reference is allowed to set its isAutoValue attribute to true.

Source

fn with_auto(&self) -> Option<bool>

get the withAuto attribute

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§