We obtain the following class diagram for the "agent" package.  

Agent package

We obtain the following class diagram for the "grid" package.  

Grid package

We obtain the following class diagram for the "constraint" package.  

Constraint package

We obtain the following class diagram for the "interface" package.  

Interface package