#include <ConnectionDecisionPredicate.h>
Public Member Functions | |
virtual void | init (SimObjectPopulation const &src, SimObjectPopulation const &dst, RandomEngine *rnd)=0 |
This function will be called to tell the decision predicate about the source and destination poulation. | |
virtual bool | decide (size_t src, size_t dst, RandomEngine *rnd)=0 |
This function will be called to decide whether to make a connection or not. | |
virtual | ~ConnectionDecisionPredicate () |
Destruct me. |
Definition at line 20 of file ConnectionDecisionPredicate.h.
virtual ConnectionDecisionPredicate::~ConnectionDecisionPredicate | ( | ) | [inline, virtual] |
virtual void ConnectionDecisionPredicate::init | ( | SimObjectPopulation const & | src, | |
SimObjectPopulation const & | dst, | |||
RandomEngine * | rnd | |||
) | [pure virtual] |
This function will be called to tell the decision predicate about the source and destination poulation.
An implementation of this function will check the actual type of the population and store references to the populations which will be used later on in the implementation of decide since this function just gets the indices within the populations.
Implemented in ConnectionDecisionPredicateSpecialization< S, D >, LateralLongRangeOrientationConnectionPredicate, PyConnectionDecisionPredicate, RetinotopicOrientationConnectionPredicate, ConnectionDecisionPredicateSpecialization< SimObjectPopulation, SimObjectPopulation >, ConnectionDecisionPredicateSpecialization< SpatialFamilyPopulation, SpatialFamilyPopulation >, ConnectionDecisionPredicateSpecialization< SpatialSimObjectPopulation, SpatialSimObjectPopulation >, and ConnectionDecisionPredicateSpecialization< AugmentedSpatialPopulation, AugmentedSpatialPopulation >.
virtual bool ConnectionDecisionPredicate::decide | ( | size_t | src, | |
size_t | dst, | |||
RandomEngine * | rnd | |||
) | [pure virtual] |
This function will be called to decide whether to make a connection or not.
src | The index into the source population | |
dst | The index into the destination population | |
rnd | A reference to the RandomNumberEngine to use for stochastic decisions. |
Implemented in ConnectionDecisionPredicateSpecialization< S, D >, EuclidianDistanceConnectionPredicate, LateralEuclidianDistanceConnectionPredicate, LateralLongRangeOrientationConnectionPredicate, PyConnectionDecisionPredicate, RetinotopicOrientationConnectionPredicate, SimilarAttributeConnectionPredicate, SphereConnectionPredicate, ConnectionDecisionPredicateSpecialization< SimObjectPopulation, SimObjectPopulation >, ConnectionDecisionPredicateSpecialization< SpatialFamilyPopulation, SpatialFamilyPopulation >, ConnectionDecisionPredicateSpecialization< SpatialSimObjectPopulation, SpatialSimObjectPopulation >, and ConnectionDecisionPredicateSpecialization< AugmentedSpatialPopulation, AugmentedSpatialPopulation >.