How to add objects created by a process flow to a agent system?

cor_vtw
Not applicable
0 Views
1 Reply
Message 1 of 2

How to add objects created by a process flow to a agent system?

cor_vtw
Not applicable

[ FlexSim 20.1.1 ]

Hi,

I just watched and downloaded the new agent module. Fantastic new options, I think. I would like to experiment with a proximity and a social force systems in a model where people are generated by a ProcessFlow. Is it possible to add objects generated by the ProcessFlow to these systems?

0 Likes
Accepted solutions (1)
1 View
1 Reply
Reply (1)
Message 2 of 2

matthew_gillespie
Not applicable
Accepted solution

Yes. This is done in the HallwayTravel example model found in this post: Agent Example Models

After creating the object you need to create an agent for that object and then activate behaviors on the agent.

Agent agent = Agent.System("SocialForceSystem").createAgent(token.Item);
agent.activateBehavior("Social Force Behavior");