![]() ![]() In our example this means unchecking the 'draw connections' box, and adding the following line to to 'onHighlight' logic: toFriends.getLinkToAgentMyAnimationSettings().setVisible(true)Įmembering to stop rendering when the the agent has been 'unhighlighted' toFriends.getLinkToAgentMyAnimationSettings(). It supports agent-based, discrete event, and system dynamics simulation. Using this method gives us some handy functions for controlling how the link in question is rendered:įor most agents and link types in large models I suggest not rendering the links by default, simply turning them on and off when an agent is clicked. We really only want to render these link when a Person is clicked.įortunately, each LinkToAgent and LinkToAgentCollection provide a method getLinkToAgentMyAnimationSettings. The problem here is that showing the active links of every single Person at results in a jumbled mess on the canvas. To place agents into the model environment, you should encapsulate the object that models agent (Person) into the. However we need a bit more control in order to make it a useful tool for a large simulation. Now its a time to add agents into the model.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |