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)