Skip to content

@grabm/abm / Interface: RunOptions ​

Simulation time is in minutes; seed is an unsigned 32-bit integer.

Extends ​

Properties ​

durationMinutes ​

ts
durationMinutes: number;

Inherited from ​

ts
RunConfig.durationMinutes

edgeObservationStorage? ​

ts
optional edgeObservationStorage?: "sparse-zero-v1";

Omitted edge/interval records are zero; legacy omission stays dense.

Inherited from ​

ts
RunConfig.edgeObservationStorage

observationIntervalMinutes ​

ts
observationIntervalMinutes: number;

Inherited from ​

ts
RunConfig.observationIntervalMinutes

onProgress? ​

ts
readonly optional onProgress?: (progress) => void;

Fractions in [0, 1]. A throwing callback fails the run.

Parameters ​

progress ​

SimulationProgress

Returns ​

void


seed ​

ts
seed: number;

Inherited from ​

ts
RunConfig.seed

signal? ​

ts
readonly optional signal?: AbortSignal;

Cooperative cancellation locally; terminates the owned worker in worker mode.


startMinute ​

ts
startMinute: number = finiteNonnegativeSchema;

Inherited from ​

ts
RunConfig.startMinute

Documentation for the grABM library.