In a hybrid DES-ABM model I've been building in Anylogic 8, I'm struggling with sending messages. In main, there are several clinics, and within these clinics the process modeling library is used to model within clinic processes. Once the patient-agent reaches a 'seize' block, a doctor-agent is seized.
Now, what I am trying to do is, once that doctor-agent is seized, a message needs to be sent from that 'seize' block to the doctor-agent that lives in the clinic.
I've consulted the Anylogic Help manual, and I have inserted these code snippets at the 'seize' block, in the 'On entry' field:-
agent.send("Start", Clinic.doctor)
send("Start", Clinic.doctor)
Error: Description: Cannot make a static reference to the non-static field
agent.send("Start", doctor)
send("Start", doctor)
Error: Description: The method send(Object, Agent) in the type Agent is not applicable for the arguments (String, Clinic._doctor_Population).
How would I do this?