Behavior-driven agent-based models of spatial systems