user3662357
user3662357

Reputation: 91

How to navigate the view window to an agent

I created a dedicated Agent where I am displaying some diagrams. How exactly do I navigate the view window to display the other agent instead of the main agent?

Upvotes: 0

Views: 126

Answers (1)

Benjamin
Benjamin

Reputation: 12795

You should use the "ViewArea" object. Place it into your agent so it includes the charts.

Given that your agents are embedded into Main, you can view each individual agent by using the code "myAgents.get(0).myViewArea.navigateTo()" <-- this will show you the first agent in the population myAgents...

Also, refer to more help in my : blog post on view areas

Hope this helps to get you started

Upvotes: 1

Related Questions