Last change
on this file since 935 was
732,
checked in by Maciej Komosinski, 7 years ago
|
Added support for "checkpoints" (intermediate phases of development of the Model when converting between genetic encodings). See Model.checkpoint() and conv_f1.cpp for an example.
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Rev | Line | |
---|
[286] | 1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
[732] | 2 | // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. |
---|
[286] | 3 | // See LICENSE.txt for details. |
---|
[138] | 4 | |
---|
| 5 | #ifndef _GENOOBJ_H_ |
---|
| 6 | #define _GENOOBJ_H_ |
---|
| 7 | |
---|
| 8 | #include <frams/genetics/geno.h> |
---|
| 9 | |
---|
| 10 | extern ParamEntry geno_paramtab[]; |
---|
| 11 | |
---|
[420] | 12 | class GenoObj : public Geno |
---|
[138] | 13 | { |
---|
[420] | 14 | public: |
---|
[138] | 15 | #define STATRICKCLASS GenoObj |
---|
[420] | 16 | PARAMGETDEF(isvalid); |
---|
| 17 | PARAMSETDEF(isvalid); |
---|
| 18 | PARAMGETDEF(genotype); |
---|
| 19 | PARAMGETDEF(name); |
---|
| 20 | PARAMSETDEF(name); |
---|
| 21 | PARAMGETDEF(autoname); |
---|
| 22 | PARAMGETDEF(info); |
---|
| 23 | PARAMSETDEF(info); |
---|
| 24 | PARAMGETDEF(format); |
---|
| 25 | PARAMGETDEF(string); |
---|
| 26 | PARAMPROCDEF(p_getconvert); |
---|
[732] | 27 | PARAMPROCDEF(p_getconvert_ch); |
---|
[420] | 28 | PARAMGETDEF(f0genotype); |
---|
| 29 | PARAMPROCDEF(p_new); |
---|
| 30 | PARAMPROCDEF(p_newfrom); |
---|
| 31 | PARAMPROCDEF(p_newfromstring); |
---|
| 32 | PARAMPROCDEF(p_newfromvector); |
---|
| 33 | PARAMGETDEF(toVector); |
---|
[138] | 34 | #undef STATRICKCLASS |
---|
| 35 | |
---|
[420] | 36 | static ExtObject makeStaticObject(Geno* g); |
---|
| 37 | static ExtObject makeDynamicObject(Geno* g); |
---|
| 38 | static ExtObject makeDynamicObjectAndDecRef(Geno* g); |
---|
| 39 | static Geno* fromObject(const ExtValue& v, bool warn = true); |
---|
| 40 | static ParamInterface* getInterface(); |
---|
[516] | 41 | static char formatFromExtValue(ExtValue& v); |
---|
[138] | 42 | |
---|
[420] | 43 | static Param& getStaticParam(); |
---|
| 44 | static Param& getDynamicParam(); |
---|
[138] | 45 | }; |
---|
| 46 | |
---|
| 47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.