Skip to content

@grabm/abm/datasets / Interface: RunDataSource ​

Extended by ​

Properties ​

scene ​

ts
readonly scene: ReplayScene;

summary ​

ts
readonly summary: DatasetSummary;

Methods ​

agent() ​

ts
agent(id, signal?): Promise<AgentDetail | undefined>;

Parameters ​

id ​

string

signal? ​

AbortSignal

Returns ​

Promise<AgentDetail | undefined>


dispose() ​

ts
dispose(): void;

Returns ​

void


trip() ​

ts
trip(index, signal?): Promise<
  | {
  activityId: string;
  actualMinutes: number | null;
  agentId: string;
  arrivalMinute: number | null;
  caregiverAgentId?: string;
  cause:   | "anchor"
     | "discretionary"
     | "break-outbound"
     | "break-return"
     | "home-return"
     | "gateway-entry"
     | "gateway-exit";
  conditionedJourney?: {
     id: string;
     initialObservation?: true;
     scope: "entry" | "internal" | "exit" | "through";
     sourcePrimaryMode?: string;
     sourcePurpose?: string;
     sourceRevisionId: string;
     vehicleContribution: "not-applicable" | "source-driver" | "source-passenger-unknown";
  };
  departureMinute: number;
  destinationFacilityId: string;
  driverAgentId?: string;
  dwellEndMinute: number | null;
  freeFlowMinutes: number;
  interruptedAtMinute?: number;
  interruptionReason?: "presence-exit" | "run-horizon";
  journeyId?: string;
  mode: string;
  originFacilityId: string;
  outcome: "completed" | "unreachable" | "capacity-rejected" | "cancelled";
  scheduleItemId: string | null;
  transitLegs?: object[];
  traversals: object[];
  vehicleId?: string;
  vehicleMovement?: boolean;
}
| undefined>;

Parameters ​

index ​

number

signal? ​

AbortSignal

Returns ​

Promise< | { activityId: string; actualMinutes: number | null; agentId: string; arrivalMinute: number | null; caregiverAgentId?: string; cause: | "anchor" | "discretionary" | "break-outbound" | "break-return" | "home-return" | "gateway-entry" | "gateway-exit"; conditionedJourney?: { id: string; initialObservation?: true; scope: "entry" | "internal" | "exit" | "through"; sourcePrimaryMode?: string; sourcePurpose?: string; sourceRevisionId: string; vehicleContribution: "not-applicable" | "source-driver" | "source-passenger-unknown"; }; departureMinute: number; destinationFacilityId: string; driverAgentId?: string; dwellEndMinute: number | null; freeFlowMinutes: number; interruptedAtMinute?: number; interruptionReason?: "presence-exit" | "run-horizon"; journeyId?: string; mode: string; originFacilityId: string; outcome: "completed" | "unreachable" | "capacity-rejected" | "cancelled"; scheduleItemId: string | null; transitLegs?: object[]; traversals: object[]; vehicleId?: string; vehicleMovement?: boolean; } | undefined>


window() ​

ts
window(minute, signal?): Promise<ReplayWindow>;

Parameters ​

minute ​

number

signal? ​

AbortSignal

Returns ​

Promise<ReplayWindow>

Documentation for the grABM library.