dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename GenerationLimit to GenerationLimitCondition. Add test for this class.
[genetic.git]
/
src
/
condition
/
generationLimitCondition.h
diff --git
a/src/condition/generationLimit.h
b/src/condition/generationLimitCondition.h
similarity index 92%
rename from
src/condition/generationLimit.h
rename to
src/condition/generationLimitCondition.h
index e387669b4dc2f960e7a56b8a9d0e056a89ca0ad0..ffe977f3430a494411944cbecce1e764662b1b2e 100644
(file)
--- a/
src/condition/generationLimit.h
+++ b/
src/condition/generationLimitCondition.h
@@
-14,7
+14,7
@@
namespace genetic {
* iteration.
*/
template < typename _Chromosome>
* iteration.
*/
template < typename _Chromosome>
- class GenerationLimit : public Condition<_Chromosome> {
+ class GenerationLimit
Condition
: public Condition<_Chromosome> {
public:
protected:
/**
public:
protected:
/**
@@
-52,7
+52,7
@@
namespace genetic {
*
* @param limit number of generations after which algorithm should stop
*/
*
* @param limit number of generations after which algorithm should stop
*/
- GenerationLimit(unsigned int limit)
+ GenerationLimit
Condition
(unsigned int limit)
: maxNumberOfGenerations(limit) {
}
};
: maxNumberOfGenerations(limit) {
}
};