// This is a process, the control will transfered to it.
currentProcess = ((SimThread)ev).myProcess;
((SimThread)ev).activate();
return;
}
else ev.actions();
// This event is executed by the calling process.
}
SimThread.simActivate(this); // Simulation is over.
}