BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_BEHAVIOR_SECRETION_H_
16 #define CORE_BEHAVIOR_SECRETION_H_
47 Base::Initialize(event);
66 #endif // CORE_BEHAVIOR_SECRETION_H_
void Initialize(const NewAgentEvent &event) override
Secrete substance at Agent position.
Behavior * existing_behavior
DiffusionGrid * GetDiffusionGrid(size_t substance_id) const
virtual ~Secretion()=default
Contains code required by all agents.
Secretion(DiffusionGrid *dgrid, real_t quantity=1, InteractionMode mode=InteractionMode::kAdditive)
ResourceManager * GetResourceManager()
Returns the ResourceManager instance.
Secretion(const std::string &substance, real_t quantity=1, InteractionMode mode=InteractionMode::kAdditive)
void Run(Agent *agent) override
BDM_BEHAVIOR_HEADER(Secretion, Behavior, 2)
void ChangeConcentrationBy(const Real3 &position, real_t amount, InteractionMode mode=InteractionMode::kAdditive, bool scale_with_resolution=false)
virtual const Real3 & GetPosition() const =0
static Simulation * GetActive()
This function returns the currently active Simulation simulation.