RULE restrict_treatment_result FOR (representation); WHERE wr1: ( SIZEOF ( QUERY ( r <* representation | ( r.name = 'treatment result' ) AND ( SIZEOF ( r.items ) >2 ) ) ) =0 ) AND ( SIZEOF ( QUERY ( r <* representation | ( r.name = 'treatment result' ) AND ( SIZEOF ( QUERY ( i <* r.items | NOT ( 'AUTOMOTIVE_DESIGN.'+ 'DESCRIPTIVE_REPRESENTATION_ITEM' IN TYPEOF ( i ) ) ) ) >0 ) ) ) =0 ); wr2: SIZEOF ( QUERY ( r <* representation | ( r.name = 'treatment result' ) AND ( SIZEOF ( QUERY ( i <* r.items | i.name ='result' ) ) =0 ) ) ) =0; wr3: SIZEOF ( QUERY ( r <* representation | ( r.name = 'treatment result' ) AND ( SIZEOF ( QUERY ( i <* r.items | i.name ='purpose' ) ) >1 ) ) ) =0; END_RULE; -- restrict_treatment_result |
public class RRestrict_treatment_result public int rWr3(SdaiContext _context) public int rWr2(SdaiContext _context) public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |