Skip to contents

Agent() is a helper function for constructing instances of Agent objects. It relies on predefined classes <Species> and <ModelConfig> objects to initiate its slots accordingly.

Usage

Agent(species = NULL, model_config = NULL)

Arguments

species

object of class <Species>, specifying the agent's species-level properties. If NULL (default), species-related slots in <Agent> are initialized as empty.

model_config

object of class <ModelConfig>, defining the IBM's configuration. If NULL (default), model-related slots in <Agent> are initialized as empty.

See also