ALMaSS Partridge ODdox  1.1
The partridge model description following ODdox protocol
Diffusor Class Reference

#include <pesticide.h>

Public Member Functions

 Diffusor (int a_dx, int a_dy, double a_fraction)
 
void SetFraction (double a_frac)
 
double GetFraction ()
 
int Getdx ()
 
int Getdy ()
 

Private Attributes

int m_dx
 
int m_dy
 
double m_fraction
 

Detailed Description

Definition at line 77 of file pesticide.h.

Constructor & Destructor Documentation

◆ Diffusor()

Diffusor::Diffusor ( int  a_dx,
int  a_dy,
double  a_fraction 
)
inline

Definition at line 89 of file pesticide.h.

89  {
90  m_dx = a_dx;
91  m_dy = a_dy;
92  m_fraction = a_fraction;
93  }

References m_dx, m_dy, and m_fraction.

Member Function Documentation

◆ Getdx()

int Diffusor::Getdx ( )
inline

Definition at line 97 of file pesticide.h.

97 { return m_dx; }

References m_dx.

◆ Getdy()

int Diffusor::Getdy ( )
inline

Definition at line 98 of file pesticide.h.

98 { return m_dy; }

References m_dy.

◆ GetFraction()

double Diffusor::GetFraction ( )
inline

Definition at line 96 of file pesticide.h.

96 { return m_fraction; }

References m_fraction.

◆ SetFraction()

void Diffusor::SetFraction ( double  a_frac)
inline

Definition at line 95 of file pesticide.h.

95 { m_fraction = a_frac; }

References m_fraction.

Member Data Documentation

◆ m_dx

int Diffusor::m_dx
private

Diffusor is the fraction of the total amount sprayed at 0,0 at the co-ordinates given by m_dx, and m_dy, relative to the origin at 0,0. If a pesticide dispersed 10m from the point source in all directions the grid would be 21 x 21 squares, each with its own diffusor. This grid of diffusors forms the Diffusion_mask

Definition at line 84 of file pesticide.h.

Referenced by Diffusor(), and Getdx().

◆ m_dy

int Diffusor::m_dy
private

Definition at line 85 of file pesticide.h.

Referenced by Diffusor(), and Getdy().

◆ m_fraction

double Diffusor::m_fraction
private

Definition at line 86 of file pesticide.h.

Referenced by Diffusor(), GetFraction(), and SetFraction().


The documentation for this class was generated from the following file:
Diffusor::m_fraction
double m_fraction
Definition: pesticide.h:86
Diffusor::m_dy
int m_dy
Definition: pesticide.h:85
Diffusor::m_dx
int m_dx
Definition: pesticide.h:84