Appearance
@grabm/abm/datasets / Interface: StoredRunSource
Extends
Properties
cacheUsage
ts
readonly cacheUsage: number;inspectionBytes
ts
readonly inspectionBytes: number;scene
ts
readonly scene: ReplayScene;Overrides
staticBytes
ts
readonly staticBytes: number;summary
ts
readonly summary: DatasetSummary;Inherited from
Methods
agent()
ts
agent(id, signal?): Promise<AgentDetail | undefined>;Parameters
id
string
signal?
AbortSignal
Returns
Promise<AgentDetail | undefined>
Inherited from
dispose()
ts
dispose(): void;Returns
void
Inherited from
input()
ts
input(signal?): Promise<unknown>;Parameters
signal?
AbortSignal
Returns
Promise<unknown>
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>
Inherited from
window()
ts
window(minute, signal?): Promise<ReplayWindow>;Parameters
minute
number
signal?
AbortSignal
Returns
Promise<ReplayWindow>