Skip to content

@grabm/abm / Interface: SimulationOptions ​

Physical environment and execution location. Inputs are detached unless graph ownership is explicitly transferred.

Properties ​

createWorker? ​

ts
readonly optional createWorker?: WorkerFactory;

Worker mode only. Each invocation must return a new worker owned by the simulation.


execution? ​

ts
readonly optional execution?: "local" | "worker";

Defaults to local. Worker execution requires browser module-worker support.


facilities ​

ts
readonly facilities: readonly object[];

graph ​

ts
readonly graph: object;

edges ​

ts
edges: object[];

nodes ​

ts
nodes: object[];

graphOwnership? ​

ts
readonly optional graphOwnership?: "transfer" | "copy";

Default copy. Transfer relinquishes caller use of graph arrays, including on failure; successful construction freezes them. For exclusively owned batch inputs only. Facilities and results retain their detached semantics.


scenario ​

ts
readonly scenario: Scenario;

Documentation for the grABM library.