Environmental context for agent decision making

interface EnvironmentContext {
    boundaryDistances?: {
        east: number;
        north: number;
        south: number;
        west: number;
    };
    bounds?: {
        height: number;
        width: number;
    };
    currentStep?: number;
    globalProperties?: Record<string, number>;
    localDensity?: number;
}

Properties

boundaryDistances?: {
    east: number;
    north: number;
    south: number;
    west: number;
}

Distance to environment boundaries

Type declaration

  • east: number
  • north: number
  • south: number
  • west: number
bounds?: {
    height: number;
    width: number;
}

Environment bounds

Type declaration

  • height: number
  • width: number
currentStep?: number

Current simulation step/time

globalProperties?: Record<string, number>

Global environment properties

localDensity?: number

Agent density in local area