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

◆ Agent() [2/2]

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 57 of file Agent.hpp.

62 , m_perception_fn(std::move(perception))
64 , m_influence_fn(std::move(influence))
65 {
66 }
InfluenceFn m_influence_fn
Definition Agent.hpp:304
PerceptionFn m_perception_fn
Definition Agent.hpp:302
const std::string & influence_fn_name() const
Identifier assigned to the influence function, empty if anonymous.
Definition Agent.hpp:72
std::string m_perception_fn_name
Definition Agent.hpp:301
const std::string & perception_fn_name() const
Identifier assigned to the perception function, empty if anonymous.
Definition Agent.hpp:69
std::string m_influence_fn_name
Definition Agent.hpp:303
float query_radius() const
Return the query radius.
Definition Agent.hpp:105