|
RULE unique_assembly_item_number FOR (Assembly_item_number); LOCAL acr : BAG OF Assembly_component_relationship := []; END_LOCAL; REPEAT i := 1 TO SIZEOF(Assembly_item_number) BY 1; acr := acr + Assembly_item_number[i].assembly_usage; END_REPEAT; WHERE WR1: SIZEOF(acr) = SIZEOF(bag_to_set(acr)); END_RULE; -- unique_assembly_item_number |
|
public class RUnique_assembly_item_number public int rWr1(SdaiContext _context) public int run(SdaiContext _context, A_string violations) |