I have some troubles with finding a way to connect a Queue's exit with the enter point of the Sink, which is INSIDE my own custom agent.
I'm trying to make a model of a database system, so i have a couple of Sources (which are making queries as agents), Queues as connections between Nodes, and Nodes as agents with Sink and Source inside. Every node sinks the received query, and reacts on it by sending queries to the specified nodes.
So, as you can see, i am trying to connect different layers of model: Source is take place on the top layer of the model, Sink - inside of instance of my own custom agent.
It is something like this:
I haven't found anything here, so decided to ask.
To send entities from one agent's process chart to another agent's process chart, use the "Exit" and "Enter" blocks from the process library.
myAgents.get(6).enter.take(agent)
. Each "Enter" block has the method take()
which will accept an agent to enter it. This is the standard way to send agents from one process chart to another.
hope this helps