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
|
Line | |
---|
1 | // This file is a part of Framsticks SDK. http://www.framsticks.com/ |
---|
2 | // Copyright (C) 1999-2018 Maciej Komosinski and Szymon Ulatowski. |
---|
3 | // See LICENSE.txt for details. |
---|
4 | |
---|
5 | #ifndef _GENOOBJ_H_ |
---|
6 | #define _GENOOBJ_H_ |
---|
7 | |
---|
8 | #include <frams/genetics/geno.h> |
---|
9 | |
---|
10 | extern ParamEntry geno_paramtab[]; |
---|
11 | |
---|
12 | class GenoObj : public Geno |
---|
13 | { |
---|
14 | public: |
---|
15 | #define STATRICKCLASS GenoObj |
---|
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); |
---|
27 | PARAMPROCDEF(p_getconvert_ch); |
---|
28 | PARAMGETDEF(f0genotype); |
---|
29 | PARAMPROCDEF(p_new); |
---|
30 | PARAMPROCDEF(p_newfrom); |
---|
31 | PARAMPROCDEF(p_newfromstring); |
---|
32 | PARAMPROCDEF(p_newfromvector); |
---|
33 | PARAMGETDEF(toVector); |
---|
34 | #undef STATRICKCLASS |
---|
35 | |
---|
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(); |
---|
41 | static char formatFromExtValue(ExtValue& v); |
---|
42 | |
---|
43 | static Param& getStaticParam(); |
---|
44 | static Param& getDynamicParam(); |
---|
45 | }; |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.