#include <SpatialFamilyIDGenerator.h>
Public Member Functions | |
SpatialFamilyIDGenerator () | |
Initialize a SpatialFamilyIDGenerator. | |
virtual | ~SpatialFamilyIDGenerator () |
Destruct me. | |
virtual shared_ptr< vector < familyid_t > > | generateIDs (SimNetwork &net, vector< SimObjectFactory * > const &families, Point3DSet const &locs) const |
Specifiy the families. A family is defined by its associated SimObjectFactory. |
This is an abstract class to be extended for implementation of merging several different families of objects (created by different factories) into one population. One simple implementation for combining objects generated from several factories in one population is to specify probability of occuring for each family.
Definition at line 33 of file SpatialFamilyIDGenerator.h.
SpatialFamilyIDGenerator::SpatialFamilyIDGenerator | ( | ) | [inline] |
virtual SpatialFamilyIDGenerator::~SpatialFamilyIDGenerator | ( | ) | [inline, virtual] |
virtual shared_ptr< vector<familyid_t> > SpatialFamilyIDGenerator::generateIDs | ( | SimNetwork & | net, | |
vector< SimObjectFactory * > const & | families, | |||
Point3DSet const & | locs | |||
) | const [inline, virtual] |
Specifiy the families. A family is defined by its associated SimObjectFactory.
Return for each location a family id
Reimplemented in RatioBasedFamilies.
Definition at line 53 of file SpatialFamilyIDGenerator.h.
Referenced by AugmentedSpatialPopulation::AugmentedSpatialPopulation(), and SpatialFamilyPopulation::SpatialFamilyPopulation().