![]() |
fpmas 1.6
|
#include <model.h>
Public Member Functions | |
virtual void | execute (Agent *agent) const =0 |
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.
|
pure virtual |
Executes this behavior on the specified agent
.
agent | on 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.