Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class rawMealPrimaryProcess : public facilityProcess {
- public :
- rawMealPrimaryProcess() : facilityProcess(){}
- void Behavior() {
- while (1) {
- if (isOn && !isError) {
- Seize(rawMealGrindingPrimary);
- // printf("Rawmeal Secondary pred\n");
- Leave(rawMaterialStorage,160);
- // printf("Rawmeal Secondary za\n");
- Wait(60);
- if (isError){
- Release(rawMealGrindingPrimary);
- continue;
- }
- Enter(rawMealStorage, 160);
- Release(rawMealGrindingPrimary);
- }
- else {
- Passivate();
- continue;
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement