From: Hendrik B. <bi...@em...> - 2005-07-08 15:08:26
|
Hi all, is it possible to develop a model in the process interaction formalism which describes a dynamic sequence of actions? For example, let's say we have a manufacturing job which has to pass machines 1-2-3-4. Now I would like to implement a rule which changes this sequence, e.g. to 1-2-4 if the queue at machine 3 is longer than 2. I tried to put only 1-2 in the process method of the manufacturing job and then schedule a SimEvent with the decision method. In pseudo code it looks like this: process(){ passMachine_1(); passMachine_2(); simulator.scheduleEvent(new SimEvent(now, this, this, decisionMethod) } decisionMethod(){ if(queue.length > 2){ passMachine_4(); } else{ passMachine_3(); passMachine_4(); } } But it is obviously not possible to put parts of the process in another method, as this involves the suspend method, which should not be invoked directly. So that's where I'm stuck now. Is there a solution within the process interaction formalism, and if not, which formalism shoud I use? Thanks, Hendrik |