Cancel
Showing results for 
Search instead for 
Did you mean: 

exit control method

Valued Contributor
Valued Contributor

Dear Community members,

I have this method:

is
do
if source.statnumOut=0
then @.move;
else
waituntil singleproc.occupied prio 1;
@.move end;
end;

 

instead of 

 waituntil singleproc.occupied prio 1

 i want to say "wait until the previous entity exit from the last process (called Singleproc)".

Is it possible?

Thank you

2 REPLIES

Re: exit control method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

let pass the first part in the exit control of the source with:

 

is
do
 --let pass only the first part
 if self.~.statNumIn=1 then
  @.move;
 end;
 
end;

 

Then add a exit control rear in the last process and move one part from the source:

 

is

do

  source.cont.move;

end;

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: exit control method

Valued Contributor
Valued Contributor

Many Thanks!