Methods
agentRegister(obj)
register new types of (customized) agents in AgentFactoryWarehouse for use in simulations
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | An object with agent type names for keys and constructor(options) functions for values |
(private) newAgentFactory(name, options) → {Object}
create new agent of specified name and options
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of agent registered in AgentFactoryWarehouse |
options |
Object | Agent options. |
Returns:
new Agent generated by calling requested constructor with options
- Type
- Object