The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cMaximumReached.h
Go to the documentation of this file.
1 /**
2  * @file cMaximumReached
3  * file name: cMaximumReached.h
4  * @author Betti Oesterholz
5  * @date 18.03.2010
6  * @mail webmaster@BioKom.info
7  *
8  * System: C++
9  *
10  * This header specifies a class for checking if enougth individuals are
11  * in the enviroment.
12  * Copyright (C) @c GPL3 2010 Betti Oesterholz
13  *
14  * This program is free software: you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License (GPL) as
16  * published by the Free Software Foundation, either version 3 of the
17  * License, or any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program. If not, see <http://www.gnu.org/licenses/>.
26  *
27  *
28  * This header specifies a class for checking if enougth individuals are
29  * in the enviroment. If the test is true, no more individuals should be
30  * added to the enviroment, befor deleting some old individuals from it.
31  * The test of this class (but not necessarily it's children) is true if:
32  * - ther are more than 65 536 individuals in the enviroment
33  * - ther are more then 16 individuals in the envirmonet and less than
34  * 10 % of the main memory free
35  *
36  * @see cEnviroment
37  */
38 /*
39 History:
40 18.03.2010 Oesterholz created
41 06.06.2010 Oesterholz method getClassName() added
42 */
43 
44 
45 #ifndef ___C_MAXIMUM_REACHED_H__
46 #define ___C_MAXIMUM_REACHED_H__
47 
48 #include "version.h"
49 
50 #include <string>
51 
52 namespace enviroment{
53 
54 
56 public:
57 
58  /**
59  * Destructor of the class cMaximumReached.
60  */
61  virtual ~cMaximumReached();
62 
63  /**
64  * @return true if no more individuals should be added to the
65  * enviroment, else false
66  */
67  virtual bool maximumReached() const;
68 
69  /**
70  * This method clones this object.
71  *
72  * @return a clone of this object
73  */
74  virtual cMaximumReached * clone() const;
75 
76  /**
77  * @return the name of this class
78  */
79  virtual std::string getClassName() const;
80 
81 };//end class cMaximumReached
82 
83 
84 };//end namespace enviroment
85 
86 #endif //___C_MAXIMUM_REACHED_H__
87 
88 
89 
90 
91 
92 
93