Connection between micro and macro aspects of agent modeling