RULE presentation_layer_assignment_constraint_2d_or_3d FOR (presentation_layer_assignment); WHERE wr1: SIZEOF ( QUERY ( pla <* presentation_layer_assignment | NOT ( SIZEOF ( QUERY ( pnt <* QUERY ( item <* pla. assigned_items | ( 'AUTOMOTIVE_DESIGN.'+ 'POINT' IN TYPEOF ( item ) ) ) | NOT ( SIZEOF ( QUERY ( rep <* USEDIN ( pnt , 'AUTOMOTIVE_DESIGN.REPRESENTATION.ITEMS' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'SHAPE_REPRESENTATION' IN TYPEOF ( rep ) ) ) ) =0 ) ) ) =0 ) ) ) =0; wr2: SIZEOF ( QUERY ( pla <* presentation_layer_assignment | NOT ( SIZEOF ( QUERY ( crv <* QUERY ( item <* pla. assigned_items | ( 'AUTOMOTIVE_DESIGN.'+ 'CURVE' IN TYPEOF ( item ) ) ) | NOT ( SIZEOF ( QUERY ( rep <* USEDIN ( crv , 'AUTOMOTIVE_DESIGN.REPRESENTATION.ITEMS' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'SHAPE_REPRESENTATION' IN TYPEOF ( rep ) ) ) ) =0 ) ) ) =0 ) ) ) =0; wr3: SIZEOF ( QUERY ( pla <* presentation_layer_assignment | NOT ( SIZEOF ( QUERY ( srf <* QUERY ( item <* pla. assigned_items | ( 'AUTOMOTIVE_DESIGN.'+ 'SURFACE' IN TYPEOF ( item ) ) ) | NOT ( SIZEOF ( QUERY ( rep <* USEDIN ( srf , 'AUTOMOTIVE_DESIGN.REPRESENTATION.ITEMS' ) | ( 'AUTOMOTIVE_DESIGN.'+ 'SHAPE_REPRESENTATION' IN TYPEOF ( rep ) ) ) ) =0 ) ) ) =0 ) ) ) =0; wr4: SIZEOF ( QUERY ( pla <* presentation_layer_assignment | NOT ( SIZEOF ( QUERY ( ao <* QUERY ( item <* pla. assigned_items | ( 'AUTOMOTIVE_DESIGN.'+ 'ANNOTATION_OCCURRENCE' IN TYPEOF ( item ) ) ) | NOT ( SIZEOF ( QUERY ( ur <* using_representations ( ao ) | NOT ( SIZEOF ( TYPEOF ( ur ) *['AUTOMOTIVE_DESIGN.'+'DRAUGHTING_SUBFIGURE_REPRESENTATION' , 'AUTOMOTIVE_DESIGN.'+ 'DRAUGHTING_MODEL' , 'AUTOMOTIVE_DESIGN.'+ 'PRESENTATION_AREA' , 'AUTOMOTIVE_DESIGN.'+ 'PRESENTATION_VIEW'] ) =1 ) ) ) =0 ) ) ) =0 ) ) ) =0; END_RULE; -- presentation_layer_assignment_constraint_2d_or_3d |
public class RPresentation_layer_assignment_constraint_2d_or_3d 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) |