Process Program Development Based on UML and Action CasesPart 1: The Model

Listing 8. Subtasks.


task design_subsystem_1 is
ok: event;
begin
  loop
    waitfor ok;
    — Design process here
  end loop
  inform task1 to set ok1;
end;

task design_subsystem_2 is
ok: event;
begin
  loop
    waitfor ok;
    — Design process here
  end loop
  inform task1 to set ok2;
end;

task design_subsystem_3 is
ok: event;
begin
  loop
    waitfor ok;
    — Design process here
  end loop
  inform task1 to set ok3;
end;

task task1 is
ok1: event;
ok2: event; 
ok3: event;
begin
  loop
    accept start;
    — Analysis process here
    — Concurrently start three design tasks
	inform design_subsystem_1 to set ok;
	inform design_subsystem_2 to set ok;
	inform design_subsystem_3 to set ok;
    — Wait for the completion of the design tasks
    waitfor ok1 and ok2 and ok3;
    — verify design process here
  end loop;
end;

About the Authors

Shih-Chien Chou is with the Department of Computer Science and Information Engineering at the National Dong Hwa University, Hualien, Taiwan and can be contacted at [email protected].

Jen-Yen Jason Chen is with the Department of Computer Science and Information Engineering at the National Chiao Tung University, Hsinchu, Taiwan and can be contacted at [email protected].