Annotation Interface EngineAgents


@Inherited @Target(TYPE) @Retention(RUNTIME) public @interface EngineAgents
Annotation to specify the engine agents of a simulation.

The annotation can be used on a class that extends SimuLauncher. The annotation specifies the scheduler, environment, model, and viewers of the simulation. The annotation has the following attributes:

  • scheduler (optional): the scheduler class of the simulation. The default value is TickBasedScheduler.
  • environment (optional): the environment class of the simulation. The default value is SimuEnvironment.
  • model (optional): the model class of the simulation. The default value is SimuModel.
  • viewers (optional): the viewer classes of the simulation. The default value is an empty array.
Since:
MaDKit 6.0
See Also:
  • Element Details

    • scheduler

      Class<? extends Scheduler<?>> scheduler
      The scheduler class of the simulation.
      Returns:
      the scheduler class.
      Default:
      madkit.simulation.scheduler.TickBasedScheduler.class
    • environment

      Class<? extends SimuEnvironment> environment
      The environment class of the simulation.
      Returns:
      the environment class.
      Default:
      madkit.simulation.SimuEnvironment.class
    • model

      Class<? extends SimuModel> model
      The model class of the simulation.
      Returns:
      the model class.
      Default:
      madkit.simulation.SimuModel.class
    • viewers

      Class<? extends SimuAgent>[] viewers
      The viewers classes of the simulation.
      Returns:
      the viewers classes.
      Default:
      {}