Home Reference Source

Function

Static Public Summary
public

register new types of (customized) agents in AgentFactoryWarehouse for use in simulations

Static Public

public agentRegister(obj: Object) source

import {agentRegister} from 'single-market-robot-simulator/src/index.js'

register new types of (customized) agents in AgentFactoryWarehouse for use in simulations

Params:

NameTypeAttributeDescription
obj Object

An object with agent type names for keys and constructor(options) functions for values