Class BoundaryStrategy#

Inheritance Relationships#

Derived Types#

Class Documentation#

class BoundaryStrategy

Boundary strategy base class.

Defines the interface for boundary-type classes.

BoundaryStrategy classes implement methods specific to the boundary type of the model. The simulation area is assumed to have boundary conditions at x = side_x, y = side_y, which are calculated from provided input coordinates or assumed to be 1 otherwise.

Subclassed by EdgeBoundaryStrategy, ToroidalBoundaryStrategy

Public Functions

inline BoundaryStrategy(double side_x, double side_y)

BoundaryStrategy constructor.

Parameters:
  • side_x[in] size of one side of the simulation area (x-axis)

  • side_y[in] size of one side of the simulation area (y-axis)

inline virtual ~BoundaryStrategy()
virtual double distance(const Point &p1, const Point &p2) = 0
virtual Point relative_pos(const Point &p1, const Point &p2) = 0

Protected Attributes

double side_x

Size of one side of the simulation area (x-axis).

double side_y

Size of one side of the simulation area (y-axis).