Documentation

Usage

flocc follows a JavaScript (ES2015+) object-oriented approach to agent-based modeling. The main flocc object itself isn’t used, but instead provides classes which can be initialized and used in your code. A simple model might consist of a single flocc.Environment containing a small number of flocc.Agents.

Using ES6 syntax, you can import just the classes you need:

import { Agent, Environment } from 'flocc';

const agent = new Agent();
const environment = new Environment();

Utilities

Functions