Overview Schemas Index

AUTOMOTIVE_DESIGN (jsdai.SAutomotive_design)


RULE restrict_default_thickness FOR (representation);
 
WHERE
          wr1:  ( SIZEOF  ( QUERY  ( r <* representation | ( r . name = 'default thickness' ) AND  ( r . context_of_items . context_type = 'default setting' ) AND  ( SIZEOF  ( QUERY  ( i <* r . items | ( 'automotive_design.' + 'descriptive_representation_item' IN  TYPEOF  ( i ) ) ) ) > 1 ) ) ) = 0 ) AND  ( SIZEOF  ( QUERY  ( r <* representation | ( r . name = 'default thickness' ) AND  ( r . context_of_items . context_type = 'default setting' ) AND  ( SIZEOF ( QUERY ( i <* r . items | ( 'automotive_design.' + 'descriptive_representation_item' IN TYPEOF ( i ) ) AND ( i . name <> 'parameter name' ) ) ) > 0 ) ) ) = 0 ) ;
          wr2:  ( SIZEOF  ( QUERY  ( r <* representation | ( r . name = 'default thickness' ) AND  ( r . context_of_items . context_type = 'default setting' ) AND  ( SIZEOF  ( r . items ) > 2 ) ) ) = 0 ) AND  ( SIZEOF  ( QUERY  ( r <* representation | ( r . name = 'default thickness' ) AND  ( r . context_of_items . context_type = 'default setting' ) AND ( SIZEOF  ( QUERY ( i <* r . items | ( SIZEOF ( [ 'automotive_design.' + 'descriptive_representation_item' , 'automotive_design.' + 'measure_representation_item' ] * TYPEOF ( i ) ) <> 1 ) ) ) > 0 ) ) ) = 0 ) ;
          wr3:  SIZEOF  ( QUERY  ( r <* representation | ( r . name = 'default thickness' ) AND  ( r . context_of_items . context_type = 'default setting' ) AND  ( SIZEOF ( QUERY ( i <* r . items | ( 'automotive_design.' + 'measure_representation_item' IN TYPEOF ( i ) ) AND ( i . name = 'thickness value' ) ) ) <> 1 ) ) ) = 0 ;
END_RULE; -- restrict_default_thickness

public class RRestrict_default_thickness
          public int rWr3(SdaiContext _context)
          public int rWr2(SdaiContext _context)
          public int rWr1(SdaiContext _context)
          public int run(SdaiContext _context, A_string violations)