RULE date_time_for_change_realisation

(* SCHEMA ship_moulded_form_schema; *)
  RULE date_time_for_change_realisation FOR (
             applied_date_and_time_assignment, executed_action);

    LOCAL
      violate : LOGICAL := FALSE;
      t1_set  : SET OF executed_action := [];
      a_set   : SET OF applied_date_and_time_assignment := [];
    END_LOCAL;
    t1_set := QUERY ( a <* executed_action | VALUE_IN(which_class(a),
        'change realisation') );
    REPEAT i := 1 TO HIINDEX(t1_set) BY 1 WHILE NOT violate;
      a_set := QUERY ( b <* applied_date_and_time_assignment | (VALUE_IN(b
          .items,t1_set[i]) AND (b.role.name = 'date time')) );
      violate := SIZEOF(a_set) <> 1;
    END_REPEAT;

  WHERE
    wr1: (NOT violate);

  END_RULE; -- date_time_for_change_realisation

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:16:47-04:00