Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. class rawMealPrimaryProcess : public facilityProcess {
  2.     public :
  3.         rawMealPrimaryProcess() : facilityProcess(){}
  4.     void Behavior() {
  5.         while (1) {
  6.             if (isOn && !isError) {
  7.                 Seize(rawMealGrindingPrimary);
  8.             //  printf("Rawmeal Secondary pred\n");
  9.                 Leave(rawMaterialStorage,160);
  10.             //  printf("Rawmeal Secondary za\n");
  11.                 Wait(60);
  12.                 if (isError){
  13.                     Release(rawMealGrindingPrimary);
  14.                     continue;
  15.                 }
  16.                 Enter(rawMealStorage, 160);
  17.                 Release(rawMealGrindingPrimary);   
  18.             }
  19.             else {
  20.                 Passivate();
  21.                 continue;
  22.             }
  23.         }
  24.     }
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement