Agent.System

Description

Provides access to data and methods related to a System of an Agents.

Methods

createAgent Creates a new agent that is associated with the passed object.
getAgent Returns the agent that is associated with the passed object, if one exists.

Static Methods

System Accesses a system in the model with a given name.

Details

Do no remove, this fixes the anchor on doc.flexsim.com

Agent.System.createAgent()

Agent createAgent( Object object )

Parameters

object The model object that you want the agent to be associated with.

Returns

Agent A newly created agent

Description

Creates a new agent that is associated with the passed object.

Agent newAgent = Agent.System("ProximitySystem").createAgent(current)
Do no remove, this fixes the anchor on doc.flexsim.com

Agent.System.getAgent()

Agent getAgent( Object object )

Parameters

object The model object.

Returns

Agent The Agent associated with the object. If there is no such agent member, it will return null.

Description

Returns the agent that is associated with the passed object, if one exists.

Agent agent = Agent.System("ProximitySystem").getAgent(current)
Do no remove, this fixes the anchor on doc.flexsim.com

Agent.System.System()

static Agent.System System( string name )

Parameters

name The name of the system.

Returns

Agent.System An Agent.System object

Description

Accesses a system in the model with a given name.

Agent.System("ProximitySystem").getAgent(current)