Abstract Protected agentAgent position tracking
Protected agentsAgents currently in this environment
Protected Readonly dimensionsEnvironment dimensions
Static prefixedPrivate applyPrivate applyPrivate applyAbstract findAbstract method: Find neighbors within radius Must be implemented by concrete environment types
Optional _options: NeighborQueryOptionsAbstract getGet environment dimensions
Check if position is within environment bounds
Protected onProtected onProtected onHook for subclasses when agent is removed
Remove agent from environment
Private validateValidate environment dimensions
Private validateValidate position coordinates
Abstract Environment class providing spatial context for agents
Handles:
Educational Context: Represents the physical or social space where community members interact, with different boundary conditions affecting movement and interaction patterns.