MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ Agent() [3/3]

MayaFlux::Nexus::Agent::Agent ( float  query_radius,
std::string  perception_fn_name,
PerceptionFn  perception,
std::string  influence_fn_name,
InfluenceFn  influence 
)
inline

Construct with named perception and influence functions.

Parameters
query_radiusRadius passed to the spatial index on each commit.
perception_fn_nameIdentifier for the perception function.
perceptionCalled first on every commit.
influence_fn_nameIdentifier for the influence function.
influenceCalled second on every commit.

Definition at line 74 of file Agent.hpp.

79 , m_perception_fn(std::move(perception))
81 , m_influence_fn(std::move(influence))
82 {
83 }
InfluenceFn m_influence_fn
Definition Agent.hpp:391
PerceptionFn m_perception_fn
Definition Agent.hpp:389
const std::string & influence_fn_name() const
Identifier assigned to the influence function, empty if anonymous.
Definition Agent.hpp:91
std::string m_perception_fn_name
Definition Agent.hpp:388
const std::string & perception_fn_name() const
Identifier assigned to the perception function, empty if anonymous.
Definition Agent.hpp:88
std::string m_influence_fn_name
Definition Agent.hpp:390
float query_radius() const
Return the query radius.
Definition Agent.hpp:133