|
RULE selected_instance_usage_requires_representation FOR (assembly_component_usage, representation); WHERE wr1: SIZEOF ( QUERY ( acr <* assembly_component_usage | ( acr . name = 'selected instance usage' ) AND ( SIZEOF ( QUERY ( pd <* USEDIN ( acr , 'automotive_design.' + 'property_definition.' + 'definition' ) | ( pd . name = 'occurrence selection' ) AND ( SIZEOF ( QUERY ( pdr <* USEDIN ( pd , 'automotive_design.' + 'property_definition_representation.' + 'definition' ) | ( pdr . used_representation . name = 'selection criteria' ) AND ( SIZEOF ( pdr . used_representation . items ) = 2 ) AND ( SIZEOF ( QUERY ( i <* pdr . used_representation . items | ( SIZEOF ( [ 'automotive_design.' + 'measure_representation_item' , 'automotive_design.' + 'value_range' ] * TYPEOF ( i ) ) = 1 ) AND ( i . name = 'selection quantity' ) ) ) = 1 ) AND ( SIZEOF ( QUERY ( i <* pdr . used_representation . items | ( 'automotive_design.' + 'descriptive_representation_item' IN TYPEOF ( i ) ) AND ( i . name = 'selection control' ) ) ) = 1 ) ) ) > 0 ) ) ) = 0 ) ) ) = 0 ; END_RULE; -- selected_instance_usage_requires_representation |
|
public class RSelected_instance_usage_requires_representation public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |