반응형

실제 많은 분들이 부분에 대하여 문제를 느낍니다. 이유는 당연히 간단합니다.

실제 타입에 따라서 Constant 부분에 대하여 인지하는 부분 다르기 때문입니다. 간단히 설명을 드리면, A이란 숫자의 아스키 코드 무엇일까요65입니다.

 

, 저희에게 표현되는 문자나 숫자가 컴퓨터가 인식하는 숫자랑 다를 있는 입니다. 부분에 대하여 AUTOSAR 도입하면, Application Data Type 물리적인 값을 표현 하는 이고 부분이 Implementation Data Type으로 변형 되어 컴퓨터가 인식하게 됩니다.

 

그렇기 때문에 다른 타입 간의 별도의 상수 처리가 필요하고 부분은 결국에 Data Mapping 하듯이 Constant Specification Mapping 해야 합니다.


 

만약 이와 관련하여 인식의 차이가 없으시다면, 향후에 문제가 발생할 있는 여지가 많이 있습니다.

 

그리고 AUTOSAR 함께 일하시는 분들에게 가장 좋아하는 말은 무엇일지에 대하여 생각해 봤습니다. 부분은 그냥 Spec.입니다.

 

그래서 만약에 잘못 설계를 하셨다면, 이와 관련하여 수정하셔야 합니다.

그리고 아직 설계를 하시지 않았다면, 부분에 대하여 설계 고려하셔야 합니다.

 

 

[Spec 내용 발췌]

5.7.3 Constant Specification Mapping

 [TPS_SWCT_1186] ConstantSpecificationMapping [The ConstantSpecificationMapping is used to associate ValueSpecifications defined in the implementation domain with corresponding ValueSpecifications defined in the application domain.

 

To make this possible the ValueSpecification actually needs to be a ConstantReference. The ConstantSpecification referenced by the ConstantReference is also the target of the references owned by ConstantSpecificationMapping. ]

[constr_1029] ConstantSpecificationMapping and ConstantSpecification [ In this case it is required that one referenced ConstantSpecification needs to be defined in the application domain (applConstant) and the other needs to be defined in the implementation domain (implConstant). ]

 

 [TPS_SWCT_1187] ConstantSpecificationMappingSet referenced by the InternalBehavior [ In most cases the meta-class ConstantSpecificationMappingSet will be referenced by the InternalBehavior. This ConstantSpecificationMappingSet contains the applicable ConstantSpecificationMappings. ]

참조 : https://www.autosar.org/fileadmin/files/standards/classic/4-0/methodology-templates/templates/standard/AUTOSAR_TPS_SoftwareComponentTemplate.pdf

 

문의 질문 환영 드립니다

반응형

+ Recent posts