RULE restrict_camera_image_in_view FOR (camera_image, presentation_view); WHERE wr1: SIZEOF ( QUERY ( ci <* camera_image | ( SIZEOF ( QUERY ( r <* USEDIN ( ci , 'AUTOMOTIVE_DESIGN.REPRESENTATION.ITEMS' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'PRESENTATION_VIEW' IN TYPEOF ( r ) ) ) ) ) <>1 ) ) =0; wr2: SIZEOF ( QUERY ( pv <* presentation_view | ( SIZEOF ( QUERY ( ri <* pv\ representation.items | 'AUTOMOTIVE_DESIGN.'+ 'CAMERA_IMAGE' IN TYPEOF ( ri ) ) ) ) >1 ) ) =0; END_RULE; -- restrict_camera_image_in_view |
public class RRestrict_camera_image_in_view public int rWr2(SdaiContext _context) public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |