AnyLogic
Expand
Font size

Creating custom agent types

You can create custom agent and resource types. They have their own diagrams where you can add parameters, statecharts, functions, etc. You can select custom animation for the agent and resource types that you create and easily make changes to those animation figures.

To define a custom agent type

  1. Drag the Agent Type from the Process Modeling Library palette into the graphical editor.

  2. The New agent dialog box will be shown. On the first page of the wizard, specify Agent type name. Click Next.

  3. Choose the animation for the agents of this type. If you want the agents to be animated both in 2D and 3D, choose 3D and select 3D animation shape from the list below, otherwise choose 2D and choose from another (shorter) list. If no shapes satisfy your needs, just choose None. You can draw animation of the agent on its graphical diagram later.

  4. Finished with choosing the animation, click Next to proceed to the next step.
  5. Specify the parameters for this agent type. Click <add new...> in the list to create new parameter. Having selected a parameter in this list, you can set its name, type, and initial value using the controls in the right panel. To remove a parameter from the list, click the  button.

  6. Click Finish.

The graphical diagram of the created agent type will open. You will see there the chosen agent animation (located in the axis origin) and the parameter(s) you have defined in the wizard.

How can we improve this article?