source: cpp/frams/genetics/f4/conv_f4.h @ 547

Last change on this file since 547 was 286, checked in by Maciej Komosinski, 10 years ago

Updated headers

  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[286]1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
[193]4
[196]5// Copyright (C) 1999,2000  Adam Rotaru-Varga (adam_rotaru@yahoo.com), GNU LGPL
6// Copyright (C) since 2001 Maciej Komosinski
7
[193]8#ifndef _CONV_F4_H_
9#define _CONV_F4_H_
10
[196]11#include <frams/model/model.h>
12#include <frams/model/modelparts.h>
13#include <frams/genetics/genoconv.h>
[193]14#include "f4_general.h"
15
16
17// The f4->f0 converter
[196]18class GenoConv_f40 : public GenoConverter
[193]19{
[196]20public:
21        GenoConv_f40();
22        SString convert(SString &in, MultiMap * map);
[193]23};
24
25
26// a test-only f4->f1 converter, approximates only
[196]27class GenoConv_F41_TestOnly : public GenoConverter
[193]28{
[196]29public:
30        GenoConv_F41_TestOnly();
31        SString convert(SString &in, MultiMap * map);
[193]32};
33
34
35// A Model descendant, which support build from an f4 genotype.
[196]36class f4_Model : public Model
[193]37{
[196]38public:
39        f4_Model();
40        ~f4_Model();
41        int      buildFromF4(SString &geno);
42        void     toF1Geno(SString &out);       // output to f1 format, approximation
43private:
44        f4_Cells * cells;
45        int        buildModelRec(f4_Cell * ndad);
46        /**
47         * Get a cell which is a stick, by traversing dadlinks.
48         */
49        f4_Cell *  getStick(f4_Cell * C);
50        int        error;
51        int        errorpos;
[193]52};
53
54
55#endif
Note: See TracBrowser for help on using the repository browser.