Skip to content
Antoine "Avzgui" Richard edited this page Jul 14, 2015 · 18 revisions

Introduction

For this project we had to use different types of agents that had not at all the same behavior. A small ecosystem.

So we've decided to find a general pattern design for programming our agents (and others).

We thus reached a layered design, with each layer who defined a particularity of the agent.

An agent's layered design pattern

By corollary, the diagram of classes we used for the model side of our application looks like something like this.

An agent's layered design pattern

Layered Design Pattern

Environment

By definition an agent is dependent on its environment but an environment does not know and does not care if there are agents who runs it or changes it.

So the environment layer is defined like this :

  • The environment can be navigated by agents.
  • The environment guarantees the smooth functioning of its physical.
  • The environment considers agents as any other parties making body of it.
  • The environment can generate stimuli.

Interaction

Behavior

Reasonning

Memory

Classes Definition

Model

Environment

Agent

Body

Brain

Project's Class Diagram