source: cpp/frams/genetics/fS/fS_conv.h @ 958

Last change on this file since 958 was 958, checked in by Maciej Komosinski, 4 years ago

Added the fS genetic encoding (for solids)

File size: 640 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 2019-2020  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _FS_CONV_H_
6#define _FS_CONV_H_
7
8#include "fS_general.h"
9#include "frams/util/multimap.h"
10
11/**
12 * Genotype converter from fS to f0.
13 */
14class GenoConv_fS0 : public GenoConverter
15{
16public:
17        GenoConv_fS0() : GenoConverter()
18        {
19                name = "Solid encoding";
20
21                in_format = 'S';
22                out_format = '0';
23                mapsupport = 1;
24        }
25
26        /// Return empty string if can not convert
27        SString convert(SString &i, MultiMap *map, bool using_checkpoints);
28
29        ~GenoConv_fS0()
30        {};
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.