PositionBased2dValueGenerator Class Reference

#include <PositionBased2dValueGenerator.h>

Inheritance diagram for PositionBased2dValueGenerator:

Inheritance graph
[legend]
Collaboration diagram for PositionBased2dValueGenerator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PositionBased2dValueGenerator (const vector< double > &values, int size_x, int size_y, double offset_x=0.0, double offset_y=0.0, double scale_x=1.0, double scale_y=1.0)
virtual ~PositionBased2dValueGenerator ()
virtual double generate (RandomEngine *rnd)
 This function will be called to decide whether to make a connection or not.
virtual PopObjectValueGeneratorclone (void) const

Protected Attributes

vector< doublevalues
int size_x
int size_y
double offset_x
double offset_y
double scale_x
double scale_y


Detailed Description

Definition at line 21 of file PositionBased2dValueGenerator.h.


Constructor & Destructor Documentation

PositionBased2dValueGenerator::PositionBased2dValueGenerator ( const vector< double > &  values,
int  size_x,
int  size_y,
double  offset_x = 0.0,
double  offset_y = 0.0,
double  scale_x = 1.0,
double  scale_y = 1.0 
)

Definition at line 20 of file PositionBased2dValueGenerator.cpp.

Referenced by clone().

PositionBased2dValueGenerator::~PositionBased2dValueGenerator (  )  [virtual]

Definition at line 29 of file PositionBased2dValueGenerator.cpp.


Member Function Documentation

double PositionBased2dValueGenerator::generate ( RandomEngine rnd  )  [virtual]

This function will be called to decide whether to make a connection or not.

Parameters:
idx The index into the population for which to generate the value Since only the indices into the source and destination populations are provided the method prepare has to store references to them.

Implements PopObjectValueGenerator.

Definition at line 34 of file PositionBased2dValueGenerator.cpp.

References SpatialSimObjectPopulation::getLocation(), PopObjectValueGeneratorSpecialization< SpatialSimObjectPopulation >::m_idx, PopObjectValueGeneratorSpecialization< SpatialSimObjectPopulation >::m_pop, offset_x, offset_y, scale_x, scale_y, size_x, size_y, values, Point3D< T >::x(), and Point3D< T >::y().

Here is the call graph for this function:

PopObjectValueGenerator * PositionBased2dValueGenerator::clone ( void   )  const [virtual]

Implements PopObjectValueGenerator.

Definition at line 58 of file PositionBased2dValueGenerator.cpp.

References offset_x, offset_y, PositionBased2dValueGenerator(), scale_x, scale_y, size_x, size_y, and values.

Here is the call graph for this function:


Member Data Documentation

Definition at line 34 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 35 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 36 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 37 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 38 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 39 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().

Definition at line 40 of file PositionBased2dValueGenerator.h.

Referenced by clone(), and generate().


The documentation for this class was generated from the following files:

Generated on Wed Jul 9 16:34:52 2008 for PCSIM by  doxygen 1.5.5