fpmas 1.6
Public Member Functions | List of all members
fpmas::api::model::Behavior Class Referenceabstract

#include <model.h>

Inheritance diagram for fpmas::api::model::Behavior:
Inheritance graph
[legend]

Public Member Functions

virtual void execute (Agent *agent) const =0
 

Detailed Description

Agent Behavior API.

The purpose of a Behavior is to be executed on Agents, for example calling a user specified method on the Agent to execute.

A single Behavior instance might be executed on many Agents: in practice, each AgentGroup is bound to a Behavior.

See also
Model::buildGroup(GroupId, const Behavior&)

Member Function Documentation

◆ execute()

virtual void fpmas::api::model::Behavior::execute ( Agent agent) const
pure virtual

Executes this behavior on the specified agent.

Parameters
agenton which this behavior must be executed.

Implemented in fpmas::model::Behavior< AgentType >, fpmas::model::DefaultBehavior, fpmas::model::BehaviorWithArgs< AgentType, Args >, and fpmas::utils::perf::ProbeBehavior.


The documentation for this class was generated from the following file: