Overview Schemas Index

AUTOMOTIVE_DESIGN (jsdai.SAutomotive_design)


RULE restrict_drawing FOR (draughting_title, drawing_revision);

WHERE
          wr1: ( SIZEOF  ( QUERY  ( dr <* drawing_revision | ( SIZEOF  ( dr.
     areas ) =0 ) OR ( SIZEOF ( QUERY ( ais <* dr. areas | NOT (
     'AUTOMOTIVE_DESIGN.'+ 'DRAWING_SHEET_REVISION' IN TYPEOF (
     ais. area ) ) ) ) >0 ) ) ) =0 );
          wr2: SIZEOF ( QUERY ( dr <* drawing_revision | SIZEOF ( USEDIN (
     dr , 'AUTOMOTIVE_DESIGN.'+'DRAUGHTING_TITLE.'+ 'ITEMS' ) )
     >1 ) ) =0;
          wr3: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY (
     ais <* dr. areas | SIZEOF ( USEDIN ( ais. area ,
     'AUTOMOTIVE_DESIGN.'+'DRAUGHTING_TITLE.'+ 'ITEMS' ) ) >1 )
     ) >0 ) ) =0;
          wr4: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY ( item <* ais. area.items
     | SIZEOF ( TYPEOF ( item ) *['AUTOMOTIVE_DESIGN.'+
     'STYLED_ITEM' , 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' ,
     'AUTOMOTIVE_DESIGN.'+ 'AXIS2_PLACEMENT' ,
     'AUTOMOTIVE_DESIGN.'+ 'PLANAR_BOX'] ) <>1 ) ) >0 ) ) >0 ) )
     =0;
          wr5: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY ( item <* ais. area.items
     | SIZEOF ( TYPEOF ( item ) *['AUTOMOTIVE_DESIGN.'+
     'STYLED_ITEM' , 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM'] ) >0 )
     ) =0 ) ) >0 ) ) =0;
          wr6: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( p_b <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'PLANAR_BOX' IN
     TYPEOF ( item ) ) | SIZEOF ( USEDIN ( p_b ,
     'AUTOMOTIVE_DESIGN.'+'PRESENTATION_SIZE.'+ 'SIZE' ) ) <>1 )
     ) >0 ) ) >0 ) ) =0;
          wr7: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF ( QUERY  ( mi <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF  ( item ) ) | 'AUTOMOTIVE_DESIGN.'+
     'PRESENTATION_VIEW' IN TYPEOF ( mi\
     mapped_item.mapping_source. mapped_representation ) ) ) =0
     ) ) >0 ) ) =0;
          wr8: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( a2p <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'AXIS2_PLACEMENT'
     IN TYPEOF ( item ) ) | SIZEOF ( USEDIN ( a2p ,
     'AUTOMOTIVE_DESIGN.'+'MAPPED_ITEM.'+ 'MAPPING_TARGET' ) )
     =0 ) ) >0 ) ) >0 ) ) =0;
          wr9: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY (
     ais <* dr. areas | SIZEOF ( ais.
     area.context_of_items.representations_in_context ) >1 ) )
     >0 ) ) =0;
          wr10: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( mi <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF ( item ) ) | SIZEOF ( USEDIN ( mi\
     mapped_item.mapping_source. mapped_representation ,
     'AUTOMOTIVE_DESIGN.'+'REPRESENTATION_MAP.'+
     'MAPPED_REPRESENTATION' ) ) <>1 ) ) >0 ) ) >0 ) ) =0;
          wr11: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( mi <* QUERY  ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF  ( item ) ) | SIZEOF  ( QUERY ( pv_item <* mi\
     mapped_item.mapping_source.mapped_representation. items |
     SIZEOF ( TYPEOF ( pv_item ) *['AUTOMOTIVE_DESIGN.'+
     'STYLED_ITEM' , 'AUTOMOTIVE_DESIGN.'+ 'CAMERA_IMAGE' ,
     'AUTOMOTIVE_DESIGN.'+ 'AXIS2_PLACEMENT'] ) <>1 ) ) >0 ) )
     >0 ) ) >0 ) ) =0;
          wr12: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( mi <* QUERY  ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF  ( item ) ) | SIZEOF  ( QUERY  ( a2p <* QUERY  ( pv_item
     <* mi\ mapped_item.mapping_source.mapped_representation.
     items | 'AUTOMOTIVE_DESIGN.'+ 'AXIS2_PLACEMENT' IN TYPEOF  (
     pv_item ) ) | SIZEOF  ( QUERY  ( rm <* USEDIN ( a2p ,
     'AUTOMOTIVE_DESIGN.'+'REPRESENTATION_MAP.'+
     'MAPPING_ORIGIN' ) | SIZEOF ( QUERY  ( mi <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF ( item ) ) | mi\ mapped_item.mapping_source:=:rm ) )
     >0 ) ) =1 ) ) <>1 ) ) >0 ) ) >0 ) ) =0;
          wr13: SIZEOF ( QUERY  ( dr <* drawing_revision | SIZEOF  ( QUERY  (
     ais <* dr. areas | SIZEOF  ( QUERY  ( mi <* QUERY ( item <*
     ais. area.items | 'AUTOMOTIVE_DESIGN.'+ 'MAPPED_ITEM' IN
     TYPEOF ( item ) ) | SIZEOF ( mi\
     mapped_item.mapping_source.
     mapped_representation.context_of_items.
     representations_in_context ) <>1 ) ) >0 ) ) >0 ) ) =0;
END_RULE; -- restrict_drawing

public class RRestrict_drawing
          public int rWr13(SdaiContext _context)
          public int rWr12(SdaiContext _context)
          public int rWr11(SdaiContext _context)
          public int rWr10(SdaiContext _context)
          public int rWr9(SdaiContext _context)
          public int rWr8(SdaiContext _context)
          public int rWr7(SdaiContext _context)
          public int rWr6(SdaiContext _context)
          public int rWr5(SdaiContext _context)
          public int rWr4(SdaiContext _context)
          public int rWr3(SdaiContext _context)
          public int rWr2(SdaiContext _context)
          public int rWr1(SdaiContext _context)
          public int run(SdaiContext _context, A_string violations)