Multiagent-Based Middleware for the Agents’ Behavior Simulation.