Belle II Software development
|
The CellularAutomaton class This class serves as a functor for the algorithm itself. More...
#include <CellularAutomaton.h>
Public Types | |
using | BaseClass = TrackerAlgorithmBase< ContainerType, ValidatorType > |
typedef for the baseClass to get rid of the template arguments | |
Public Member Functions | |
CellularAutomaton () | |
constructor | |
int | apply (ContainerType &aNetworkContainer) override final |
actual algorithm of Cellular Automaton, returns number of rounds needed to finish or -1 if CA was aborted | |
unsigned int | findSeeds (ContainerType &aNetworkContainer, bool strictSeeding=false) override final |
checks network given for seeds, returns number of seeds found (if strictSeeding is set to true, no subset of paths are stored, only unique ones). | |
virtual ValidatorType & | getValidator () |
getter | |
virtual std::string | printStatistics () |
returns current logging info of the algorithm (some stuff one wants to log about that algorithm | |
virtual void | setValidator (ValidatorType &aValidator) |
setter | |
Public Attributes | |
unsigned int | stopInRound = BaseClass::m_validator.nMaxIterations + 2 |
aborts CA after stopInRound iterations - mainly for debugging purposes: | |
Protected Attributes | |
ValidatorType | m_validator |
something which checks the quality of the test so far (will be applied by the apply-function | |
The CellularAutomaton class This class serves as a functor for the algorithm itself.
Definition at line 21 of file CellularAutomaton.h.
using BaseClass = TrackerAlgorithmBase<ContainerType, ValidatorType> |
typedef for the baseClass to get rid of the template arguments
Definition at line 24 of file CellularAutomaton.h.
|
inline |
constructor
Definition at line 28 of file CellularAutomaton.h.
|
inlinefinaloverridevirtual |
actual algorithm of Cellular Automaton, returns number of rounds needed to finish or -1 if CA was aborted
REDESIGNCOMMENT CELLULARAUTOMATON: optimization tip:
CAstep:
Updatestep:
catch bad case
Reimplemented from TrackerAlgorithmBase< ContainerType, ValidatorType >.
Definition at line 36 of file CellularAutomaton.h.
|
inlinefinaloverridevirtual |
checks network given for seeds, returns number of seeds found (if strictSeeding is set to true, no subset of paths are stored, only unique ones).
WARNING: requires outerNodes to be set! (bidirectional network, not only directed to inner!).
Reimplemented from TrackerAlgorithmBase< ContainerType, ValidatorType >.
Definition at line 98 of file CellularAutomaton.h.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
returns current logging info of the algorithm (some stuff one wants to log about that algorithm
Definition at line 31 of file TrackerAlgorithmBase.h.
|
inlinevirtualinherited |
setter
allows to set some condition for validating the algorithm
Definition at line 35 of file TrackerAlgorithmBase.h.
|
protectedinherited |
something which checks the quality of the test so far (will be applied by the apply-function
Definition at line 23 of file TrackerAlgorithmBase.h.
unsigned int stopInRound = BaseClass::m_validator.nMaxIterations + 2 |
aborts CA after stopInRound iterations - mainly for debugging purposes:
Definition at line 32 of file CellularAutomaton.h.