//meta! sender="AgentVakCentra", id="23", type="Notice" public void ProcessNoticeZaciatokOckovania(MessageForm message) { var sprava = message as Sprava; message.Addressee = MyAgent.ProcessOckovania; message.Code = Mc.NoticeZaciatokOckovania; sprava.ZaciatokObsluhy = MySim.CurrentTime; if (!MyAgent.ObsluhaVolna) { sprava.Pacient.Stav = "Èaká na oèkovanie"; Front.Enqueue(sprava); MyAgent.DlzkaRadu.AddSample(Front.Count); } else { double dobaCakania = MySim.CurrentTime - sprava.ZaciatokObsluhy; //sprava.Pacient.CelkovaDobaCakania += dobaCakania; sprava.Pacient.DobaCakaniaNaOckovanie = dobaCakania; MyAgent.DlzkaCakania.AddSample(dobaCakania); NaplanujObsluhu(message); StartContinualAssistant(message); } }