Reputation: 448
I've a question, in my model I've multiple lift areas with 2 lifts, but only 1 lift is assigned for good transport (so agent type=AGV ) may use this lifts and the other lift is assigned for persons (agent type= person).
Is there a way to make the agents know which lift they should take and not take the lift which is not assigned for this specific goods transport.
Thanks
Upvotes: 0
Views: 40
Reputation: 9376
you can use this:
agent instanceof AGV
or
agent instanceof Person
You can put an selectOutput block to check this and send the agent to an intermediate point near the lift so it takes it, but if the AGV is a transporter that is acting as a resource, then you need to have the transporter as a variable in your agent so you can use as your condition
agent.transporter instanceof AGV
Upvotes: 1